LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-12-2006, 09:48 PM   #1
scgs
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
usb to serial converter non standard baud rate


I am using a sealvel USB to serial converter on a Fedora Core 5. I need to set the baud rate of the serial port to 500k. How can i do that? I tried setserial with speed_cust but it did not work. I have read about using tty -> alt_speed or using TIOCGSERIAL ioctl but i do not really understand how to implement them. Can anybody please help. Thanks
 
Old 06-13-2006, 02:03 AM   #2
jineshkj
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 33

Rep: Reputation: 15
http://www.linuxquestions.org/questi...ead.php?t=6532
 
Old 06-13-2006, 08:09 AM   #3
scgs
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Original Poster
Rep: Reputation: 0
what's the value of baud_base and divisor?

I have read through the above post but in my case the baud rate to be set is 500k. And what i understand from the serial_struct is that the divisor should be an int. I also inderstand that there are restrictions to the max value of baud_base (I might be wrong, I don't know). Can you recemmend me what value should i use for the baud_base and for the divisor to get a 500kbps.
 
Old 06-13-2006, 11:16 PM   #4
jineshkj
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 33

Rep: Reputation: 15
hi,

i'm not that good in serial programming, but from my experience, what i know is that every serial port controller will have some clock source to drive it. if u know the rate of the clock, u can calculate the divisor by which to divide the clock.

the exact formula infact depends upon the manufacturer specification. i hope if u can get the clk rate and the formula for calculating the divisor, then the rest would be easy.

i hope i'm right.
 
  


Reply



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
pilot-link not working with USB Serial-USB Converter with m105 calmofthestorm Linux - Laptop and Netbook 0 09-03-2005 02:03 PM
USB to Serial Converter on Serial Modem bongski55 Linux - General 3 08-29-2005 10:04 AM
Reading Baud Rate of Serial Port zaheer031 Programming 1 09-27-2004 12:47 PM
USB serial converter problem linuxBill Linux - Software 3 04-23-2003 08:14 AM
rs232 at non-standard baud rate possible? scgadgets Programming 1 09-14-2001 08:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:32 AM.

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