Linux serial communication => nul characters
Linux serial communication => nul characters
(OP)
Hi,
i programming (c++) a communication application using struct termios. the communication runs but the character 0 (ASCII NUL, binary 0) will ignored, always and at both streams, input and output. the communication port is /dev/ttyS0 (PC-Com1).
the essential configuration of the port is setting on "raw" (non-canonical, ...) and all input and output options are disabled (no parity checking, no OPOST, ...).
what can i do to transfer the nul character correctly??
thanks all!!!!
hostbuster
i programming (c++) a communication application using struct termios. the communication runs but the character 0 (ASCII NUL, binary 0) will ignored, always and at both streams, input and output. the communication port is /dev/ttyS0 (PC-Com1).
the essential configuration of the port is setting on "raw" (non-canonical, ...) and all input and output options are disabled (no parity checking, no OPOST, ...).
what can i do to transfer the nul character correctly??
thanks all!!!!
hostbuster





RE: Linux serial communication => nul characters
m777182
RE: Linux serial communication => nul characters
thank you for your reply. That was my first self written communication program under linux. In raw mode nul characters will transferred. The fault was between the ears :(
Now i can say (for interested programmers and beginners): programming serial communication for linux is very easy!!! easier than for windows!!!
thank you and best regards!!!