multidrop-bus

9 bits uart emulation with /dev/tty*

孤街醉人 提交于 2020-01-02 15:45:54
问题 I have a uncommon protocol, which requires 9600 baud, 9 bits and one stop bit. I can't find any driver, which can implement this sending/receiving. Can I send something to /dev/tty* for emulating these queries? What should I send? How can I emulate a 9600 baud rate? 回答1: You can use sticky parity, which is also called MARK and SPACE parity. termios.h supports this. However, you need to change the parity settings before sending address or data bytes accordingly and depending on the hardware,

9 bits uart emulation with /dev/tty*

不问归期 提交于 2019-12-06 10:50:41
I have a uncommon protocol, which requires 9600 baud, 9 bits and one stop bit. I can't find any driver, which can implement this sending/receiving. Can I send something to /dev/tty* for emulating these queries? What should I send? How can I emulate a 9600 baud rate? You can use sticky parity, which is also called MARK and SPACE parity. termios.h supports this. However, you need to change the parity settings before sending address or data bytes accordingly and depending on the hardware, this may introduce undesired delays between two types of bytes. I have experienced delays from 0.4 ms to 10