LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Need help setting serial port baud rate to 4800. (https://www.linuxquestions.org/questions/linux-hardware-18/need-help-setting-serial-port-baud-rate-to-4800-a-460929/)

mathew1468 07-04-2006 10:55 AM

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

blackhole54 07-06-2006 03:13 AM

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

mathew1468 07-14-2006 03:06 PM

Thanks for the info; works great!


All times are GMT -5. The time now is 09:19 PM.