Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-25-2007, 05:40 AM   #1
LQ Newbie
Registered: Aug 2007
Posts: 2

Rep: Reputation: 0
[help]how to set baud rate up to 230400 in linux?

I do a serial commucation in a embedded which cpu is s3c2410,and run 2.4.18 linux,I want to set a baud rate to 230400 or high, but it is said that the high baud rate in linux is 115200, if you want set higher baud rate you should change kernel.In fact, i didn't change kernel and compile the program in 230400 baud rate , but it does't work,what should i do?
Old 10-25-2007, 07:58 AM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
You haven't said how you are trying to set the baud rate.
The basic shell command to set the baud rate of the nth serial port is
setserial /dev/ttySn baud_base 230400
You should probably try this and see if it makes any difference. If not, it could be that you also neet to set the uart. For details try:
man setserial
Looking around on Google, it seems like there are several ways to get high-speed serial comms, and it largely depends on what kind of serial port hardware you are using. is one example.

You might also try upgrading your kernel; newly supported hardware features are being added all the time and 2.4.18 was released in Febuary 2002 (the current "backport" version is 2.4.35, which may be your safest bet). I don't know if high-speed serial support has been added, but this may be an easier upgrade than having to apply kernel patches and so on by hand.

Hope that's of some help,

—Robert J Lee


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
serial port (and baud-rate) problem kafix Linux - Newbie 8 07-26-2007 04:54 PM
Change the network baud rate zaheer031 Linux - Software 1 05-15-2006 11:37 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
rs232 at non-standard baud rate possible? scgadgets Programming 1 09-14-2001 08:27 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration