9 bits uart emulation with /dev/tty*
问题 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,