Linux serial port reading - can I change size of input buffer?

后端 未结 2 984
时光说笑
时光说笑 2021-02-20 15:39

I am writing an application on Ubuntu Linux in C++ to read data from a serial port. It is working successfully by my code calling select() and then ioctl(fd,F

2条回答
  •  我寻月下人不归
    2021-02-20 16:17

    You can try to play with the VMIN and VTIME values of the c_cc member of the termios struct. Some info here, especially in the section 3.2.

提交回复
热议问题