LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   RHEL WS Ver. 3, Set ttyS# baud rate. (https://www.linuxquestions.org/questions/linux-enterprise-47/rhel-ws-ver-3-set-ttys-baud-rate-596690/)

fnixon 11-02-2007 03:02 PM

RHEL WS Ver. 3, Set ttyS# baud rate.
 
I have been searching around for the answer to this for quite a few hours and never really seem to get the results I need.

I have been able to send data across the ttyS0 & ttyS1 from the Linux station to my laptop (XP Pro) in Hyper-Term by ls -l > /dev/ttyS0 (or S1) and it works fine at 9600-8-N-1. Then as root I try: setserial /dev/ttyS0 uart 16550A port 0x03f8 irq 4 baud_rate 19200, but when I set Hyper-Term to 19200-8-N-1, I get nothing performing ls -l > /dev/ttyS0. I reboot and then perform setserial -G /dev/ttyS0 to verify my baud rate and I see that the baud_base value has gone back to 115200. I have also tried stty 19200 > /dev/ttyS0 and get the same results.

I am sure it must be a simple flag or option I am missing. Any help you can offer will be greatly appreciated.

farslayer 11-04-2007 12:46 AM

I don't see baud_rate as an option.. however baud_base is listed.. http://linux.die.net/man/8/setserial

setserial /dev/ttyS0 baud_base 19200


All times are GMT -5. The time now is 11:05 PM.