Need help setting serial port baud rate to 4800.
I am using the command "setserial /dev/ttyS0 Baud_Base 4800” to set the serial port baud rate to 4800. I get the message: Cannot set serial info: Invalid argument.
When I try to set it to 9600 or higher (up to 115200) it works. Anything lower than 9600, it fails with the above message. Does anybody know how to set the serial baud rate to 4800. I’m using Fedora Core 5, running on Compaq Pesario 7000Z. Thanks, Mathew |
The base baud rate is different than the baud rate. To set the baud rate, you need to use the stty command:
Code:
stty -F /dev/ttyS0 4800 |
Thanks for the info; works great!
|
All times are GMT -5. The time now is 09:19 PM. |