I think that adding additional asynOption key/value pairs for RS-485 to the existing driver would be OK. These can be implemented with ioctl calls after the device is opened, so it does not require changing the syntax of drvAsynSerialPortConfigure. Here is an example of how to do it:
https://www.kernel.org/doc/Documentation/serial/serial-rs485.txt
Mark
________________________________________
From: Florian Feldbauer [[email protected]]
Sent: Thursday, February 25, 2016 7:11 AM
To: EPICS Tech-Talk
Cc: Mark Rivers
Subject: drvAsynSerialPort + RS485
Hey all,
we are using an ADM2682 RS485 transceiver connected to a BeagleBone Black.
Data exchange is done via one of the uart interfaces. Data direction is
set by a GPIO
from kernel space.
Is there currently a driver available for EPICS for RS485?
Most settings could be done over the drvAsynSerialPort driver,
but for RS485 one also needs to set the struct serial_rs485 which is not
implemented in this driver.
Does it make sense to add an option to use RS485 support?
Or would it be better to create a clone of the serial port driver for RS485?
Best regards,
Florian
--
----------------------------------------
| Dr. Florian Feldbauer |
| |
| Helmholtz-Institut Mainz / |
| Johannes Gutenberg-Universität Mainz |
| Johann-Joachim-Becher-Weg 36 |
| D-55128 Mainz |
| |
| Office: SB1 / 00-213 |
| Phone: (+49)6131 / 39-29608 |
----------------------------------------
- Replies:
- Re: drvAsynSerialPort + RS485 Florian Feldbauer
- References:
- drvAsynSerialPort + RS485 Florian Feldbauer
- Navigate by Date:
- Prev:
drvAsynSerialPort + RS485 Florian Feldbauer
- Next:
Re: drvAsynSerialPort + RS485 Florian Feldbauer
- 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
- Navigate by Thread:
- Prev:
drvAsynSerialPort + RS485 Florian Feldbauer
- Next:
Re: drvAsynSerialPort + RS485 Florian Feldbauer
- 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
|