Experimental Physics and Industrial Control System
|
Request for discussion:
Instead of forcing the line rate to 9600 in drvAsynSerialPortConfigure() how about just leaving it at the value already configured. Then applications that need some rate not supported by termios can set the rate (somehow) before IOC startup and ensure that the st.cmd script has no calls to set the line rate.
It would be better if this could be controlled by an ‘option/flags’ argument to drvAsynSerialPortConfigure, but as far as I can tell we’ve never documented the “default 9600 baud” anywhere so we wouldn’t be changing any explicitly-defined existing behaviour. On Jan 13, 2026, at 12:09 PM, J. Lewis Muir <jlmuir at imca-cat.org> wrote:
On 01/13, Érico Nogueira Rolim via Tech-talk wrote: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.
?? Sounds like a terrible idea to me. If kernel-related structs areneeded from userspace, the OS should provide appropriate header filesdefining those that are either shared by userspace and kernelspace thusensuring that they're consistent, or, if separate sets for userspace andkernelspace, are at least guaranteed to be consistent with each other.Lewis
— Eric Norum eric at norum.ca
|
- 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
- Re: Configuration of the RGA200 communication baud rate Érico Nogueira Rolim via Tech-talk
- Re: Configuration of the RGA200 communication baud rate J. Lewis Muir via Tech-talk
- Navigate by Date:
- Prev:
EPNix 25.11 released NICOLE Rémi via Tech-talk
- Next:
Re: [External] Re: Bacnet/IP to Modbus TCP Gateway Hardware Recommendations William Jamieson 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 Charter via Tech-talk
- Next:
Alarm Server to SMS? Paul Sichta 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
·
|