setting non-standard baud rate on serial port

Matt Graham danceswithcrows at usa.net
Tue Apr 26 14:25:51 MST 2011


From: "Steven A. DuChene" <linux-clusters at mindspring.com>
> I have an automotive diagnostic device that seems to only want to
> communicate across the serial port at a baud rate of 8192 
> 
> stty -F /dev/ttyS0 8192
> stty: invalid argument `8192'

> Anyone have any idea how to set baud rate on a serial port to a
> non-standard baud rate like this?

http://stackoverflow.com/questions/4968529/how-to-set-baud-rate-to-307200-on-linux

...might help.  stty by itself won't do it.  Custom ioctl() appears to be
required.  I think you can make it work with some extra fiddling.

-- 
Matt G / Dances With Crows
The Crow202 Blog:  http://crow202.org/wordpress/
There is no Darkness in Eternity/But only Light too dim for us to see



More information about the PLUG-discuss mailing list