Experimental Physics and Industrial Control System
|
|
On 1/12/26 11:26 AM, Johnson, Andrew N.
via Tech-talk wrote:
This blog post might be helpful on
how to modify Asyn to request non-standard baud rates on some
Linux systems at least.
A quick glance at "man termios" makes mention of "ioctl(TCSETS2)"
in conjunction with "c_cflag |= BOTHER" (a great name!) to request
arbitrary baud rates. Might make a nice codeathon project to add
this as a fallback, if only for Linux.
See EXAMPLES from:
https ://www.man7.org/linux/man-pages/man2/tcsets2.2const.html
-
Andrew
--
Complexity
comes for free, Simplicity you have to work for.
My quick google search suggests that it’s necessary to write a
program to do this.
For
python it recommends:
import
serial
ser
= serial.Serial('/dev/ttyS0', 28800)
print(ser.baudrate)
I
tried this on Debian and it ran with no complaints.
Hi Eric,
I have an RHEL 9 system. How do I set an arbitrary baud
rate using termios2 from the shell? When I use stty I get
an error:
[epics@13idd ~]$ stty -F /dev/ttyUSB0 28800
stty: invalid argument ‘28800’
Try 'stty --help' for more information.
Thanks,
Mark
—
Eric Norum
|
- Replies:
- Re: Configuration of the RGA200 communication baud rate Dmitry Yu. Bolkhovityanov via Tech-talk
- References:
- Configuration of the RGA200 communication baud rate LONG FENG via Tech-talk
- Re: Configuration of the RGA200 communication baud rate Eric Norum via Tech-talk
- Re: Configuration of the RGA200 communication baud rate Mark Rivers via Tech-talk
- Re: Configuration of the RGA200 communication baud rate Eric Norum via Tech-talk
- Re: Configuration of the RGA200 communication baud rate Johnson, Andrew N. via Tech-talk
- Navigate by Date:
- Prev:
Re: Problems with clang under MacOS Michael Davidsaver via Tech-talk
- Next:
Re: Configuration of the RGA200 communication baud rate Dmitry Yu. Bolkhovityanov via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
<2026>
- Navigate by Thread:
- Prev:
Re: Configuration of the RGA200 communication baud rate Johnson, Andrew N. via Tech-talk
- Next:
Re: Configuration of the RGA200 communication baud rate Dmitry Yu. Bolkhovityanov via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
<2026>
|
|
ANJ, 19 Mar 2026 |
·
Home
·
News
·
About
·
Talk
·
Base
·
Modules
·
Extensions
·
·
Distributions
·
Download
·
Documents
·
Links
·
Licensing
·
|