When a terminal device (/dev/tty*) is in canonical input processing mode, the kernel waits for newline (or end-of-file) before it passes input to the local process. It also allows the remote user to correct typos in various basic ways, again before the application sees the input.Is a newline always required? Is the Linux machine defaulting to certain settings?
Although this is called "canonical" mode and is the default, it is wholly inappropriate if the line is connected to anything other than a human typist, and it should be disabled. Most software that is intended for use with serial communications will do this automatically. If you wanted to use generic utilities like cat you would first do something like:
Code:
stty -icanon -echo -isig -opost -hupcl -F /dev/ttyACM0Statistics: Posted by jojopi — Wed Oct 23, 2024 12:06 am