LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices


Reply
  Search this Thread
Old 07-04-2006, 11:55 AM   #1
mathew1468
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. I’m using Fedora Core 5, running on Compaq Pesario 7000Z.
Thanks,
Mathew
 
Old 07-06-2006, 04:13 AM   #2
blackhole54
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:
Code:
stty -F /dev/ttyS0 4800
 
Old 07-14-2006, 04:06 PM   #3
mathew1468
LQ Newbie
 
Registered: Jun 2006
Posts: 2

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


Reply


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-14-2006 12:16 AM
Setting Baud Rate on Comm2 Question steve_f60 Linux - General 2 06-21-2005 02:30 PM
Reading Baud Rate of Serial Port zaheer031 Programming 1 09-27-2004 01:47 PM
How do I change ttyS port baud rate? joe_dejesus Linux - General 1 09-27-2001 10:50 PM
rs232 at non-standard baud rate possible? scgadgets Programming 1 09-14-2001 09:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

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