Quote:
Originally Posted by
Bashingaway
The intrinsic problem with serial comms is that the handshaking is never very reliable and using anything other then chat too often leads to a 'hanging' state in the script which is waiting for something to happen or didn't receive an ACK properly.
In case you didn't read it too closely, my last couple versions of my serial comms script included -- and relied on --
TTY timeouts. If any serial read hung it would just die after a configurable number of tenths of a second.
Reading from /var/log/messages sounds like a very poor solution. For one thing, it could break from changing the configuration of your system logger and isn't likely to work on a system where it differs even slightly. For another thing this means your serial communications program probably needs root access to work!