We are not getting more than 16 bytes from TTY call back function even tty->receive_room = 1024

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

We are not getting more than 16 bytes from TTY call back function even tty->receive_room = 1024

925件の閲覧回数
ravis5354
Contributor I

We implemented TTY Gadget driver for low level driver communication. I am using struct tty_ldisc_ops operations . We are not able to receive more than 16 bytes from tty call back function ( .receive_buf ) even  tty->receive_room is set to 1024 bytes. We are always receiving 16 bytes in the call back function even the incoming packets more than 16 bytes. But remaining bytes of the packets getting in the next call back after 25-30 milliseconds that is one tty receives another 16 bytes. Someone can you please help us about tty call back. please let us know if any other things is required

can you see below code for reference- 

1. Set tty->receive_room = 1024, in tty_open() call

2.using void tty_receive(struct tty_struct *tty,const unsigned char *cp,char *fp, int count) call back , In every call back count not getting more than 16 bytes.

Thanks...

0 件の賞賛
返信
1 返信

904件の閲覧回数
Juan-Rodarte
NXP Employee
NXP Employee

Hi Ravi,

Could you share more details? code, board, etc.

Best regards,
Diego.

0 件の賞賛
返信