EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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 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
<== Date ==> <== Thread ==>

Subject: Re: Configuration of the RGA200 communication baud rate
From: Érico Nogueira Rolim via Tech-talk <tech-talk at aps.anl.gov>
To: "Johnson, Andrew N." <anj at anl.gov>, Eric Norum <eric at norum.ca>, "Rivers, Mark L." <rivers at cars.uchicago.edu>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 13 Jan 2026 15:23:26 +0000
Just something to note if anyone wishes to use that post as reference (and the recent glibc support isn't enough). It mentions an issue with including kernel headers:

> I ran into some #include hell with asm/termios.h, especially if I already had the normal termios.h included elsewhere, so you might have to copy relevant struct definitions into your own code if you can’t get it to work (I know, nasty!). The other thing to keep in mind is that the definition of NCCS might be different between your libc and kernel, so you need to make sure you’re using the kernel’s definition of NCCS. I believe asm/termbits.h has the correct NCCS and structures defined.

The kernel docs explicitly recommend copying struct definitions into userspace code that uses syscalls/ioctls directly. That way you can be sure of what version is in use, and you can name structs appropriately in order to avoid any conflicts. This can get messy if the kernel definitions vary by architecture, and then violating that recommendation becomes more reasonable, so I hope that's not the case.

On 1/12/26 4:26 PM, 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.

- Andrew


-- 

Complexity comes for free, Simplicity you have to work for.


On 1/12/26, 12:26 PM, "Tech-talk" <tech-talk-bounces at aps.anl.gov> wrote:

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.

On Jan 12, 2026, at 9:53 AM, Mark Rivers <rivers at cars.uchicago.edu> wrote:

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







Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente.

Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying to the sender before copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately.


Replies:
Re: Configuration of the RGA200 communication baud rate J. Lewis Muir 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: SNS Data Acquisition Software for Instruments - Group Lead position Vodopivec, Klemen via Tech-talk
Next: Re: Configuration of the RGA200 communication baud rate J. Lewis Muir 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 Dmitry Yu. Bolkhovityanov via Tech-talk
Next: Re: Configuration of the RGA200 communication baud rate J. Lewis Muir 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 ·