Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 07-04-2006, 10:55 AM   #1
LQ Newbie
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
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. Im using Fedora Core 5, running on Compaq Pesario 7000Z.
Old 07-06-2006, 03:13 AM   #2
Senior Member
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
The base baud rate is different than the baud rate. To set the baud rate, you need to use the stty command:
stty -F /dev/ttyS0 4800
Old 07-14-2006, 03:06 PM   #3
LQ Newbie
Registered: Jun 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the info; works great!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
usb to serial converter non standard baud rate scgs Linux - Kernel 3 06-13-2006 11:16 PM
Setting Baud Rate on Comm2 Question steve_f60 Linux - General 2 06-21-2005 01:30 PM
Reading Baud Rate of Serial Port zaheer031 Programming 1 09-27-2004 12:47 PM
How do I change ttyS port baud rate? joe_dejesus Linux - General 1 09-27-2001 09:50 PM
rs232 at non-standard baud rate possible? scgadgets Programming 1 09-14-2001 08:27 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration