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
eric at norum.ca