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

933 次查看
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 回复

912 次查看
Juan-Rodarte
NXP Employee
NXP Employee

Hi Ravi,

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

Best regards,
Diego.

0 项奖励
回复