Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wrong baud rate

Status
Not open for further replies.

NewtownGuy

Technical User
Jul 27, 2007
146
US
Hello,

I'm running Fedora Core 3. I can't get the right baud rate on COM1 today. I'm running at root. It was working fine two days ago...

Code:
[root@-001 etc]# setserial /dev/ttyS0 baud_base 9600
[root@-001 etc]# setserial /dev/ttyS0 -a -v
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
        Baud_base: 9600, close_delay: 61568, divisor: 0
        closing_wait: 24064
        Flags: spd_normal skip_test auto_irq

[root@-001 etc]#

I'm verifying the data rate using Hyperterminal on Windows. I set up a number of connections at different speeds, and the only one that receives my data correctly is the one at 115,200.

I ran setserial /dev/ttyS0 baud_base 9600 in rc.local, and again from the command line (as shown above).

I want 9,600 baud but I'm getting 115,200. What am I doing wrong ?

Thank you.

-- NewtownGuy
 
115,200 is the default for ttyS0. I'm not sure but I seem to remember ttyS1 is set to 9600 by default.

 
TO: RhythmAce

Thank you.

As there's only one COM port on my Linux motherboard, how would I assign COM1 to ttyS1 instead of to ttyS0 ?

But why can't I control the baud rate of the port ?

-- NewtownGuy

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top