Serial ports and devices have considerable underlying configuration that is obscured from ordinary shell commands. For this reason, I consider the shell to be a very clumsy vehicle for performing serial communications. Neverthless,
stty implements a shell interface to the
termios API to fine tune the behavior of the serial port. I suggest that you study the following online tomes:
Serial-Howto
Serial Programming Howto
Serial Programming Guide for POSIX OS's
From that, you should be able to divine that the
VMIN &
VTIME settings will probably address your read delay issues. In
stty-speak, these seem to correspond to the 'min' and 'time' options.
I'm not sure how to reduce the buffering of output data. Perhaps simply using
raw mode will suffice.
--- rod.