On Mon, 14 Oct 2024, Robert Elz wrote:
| $ stty -f /dev/ttyU0 9600 raw; cat /dev/ttyU0The terminal device needs to be held open, otherwise when it closes (when stty exits) all the modes are reset back to the default for the next open.
Ah yes--had a feeling I was forgetting something...
Something like (stty 9600 raw; cat) </dev/ttyU0 might work, perhaps.
Shell might get stuck on open. This should work, I think: $ { sleep 1; stty -f /dev/ttyU0 ... ; } & cat /dev/ttyU0 -RVP