I have a serial device that works at 2400 baud and I need to access it
from a script. How can I set the baud rate of my serial port before
accessing the device?
I've tried setserial but I get this result
#> setserial /dev/ttyS0 baud_base 2400
Cannot set serial info: Invalid argument
Yet man setserial seems to indicate this is the correct syntax. If I
connect to the serial port using minicom and configure the serial
parameters then quit minicom with no reset, then the device works
perfectly. However, if the machine is rebooted, then I have to go
through minicom to set it all up again. What I want to do is have the
script set the serial device baud rate.
Suggestions?
TIA's
Pete.
P.S FC4, kernel 2.6.11-1.1369_FC4
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html