Am 04.04.19 um 20:32 schrieb Mark Rivers via Tech-talk:
> The asyn record does NOT work with SCAN=I/O Intr for TCP devices. The
> problem is that drvAsynIPPort does not have a mechanism to do
> callbacks when there is new data, so asyn client needs to poll. The
> only code I know of that does this is StreamDevice.
It is easy to add this capability to drvAsynIPPort. But when I call
pasynManager->registerInterruptSource I get an error
"asynManager:registerInterruptSource already registered". Apparently
there is a mechanism in place that generically registers an interrupt
source for /every/ asynOctet interface (and all other standard asyn
interfaces, too). This effectively blocks this feature for all standard
asyn interfaces, so it becomes impossible to add I/O Intr support to
drvAsynIPPort. The code that calls registerInterruptSource in this
generic manner is guarded by an "if (octetCanInterrupt)" but I was
unable to find out what I should do for this flag to be reset. It gets
set by the constructor for class asynPortDriver, but I found no place
where this class actually gets instantiated to an object, i.e. a call to
the constructor takes place. I find all this pretty confusing and would
appreciate hints...
Cheers
Ben
Attachment:
signature.asc
Description: OpenPGP digital signature
- Replies:
- RE: drvAsynIPPortConfigure and I/O Intr with asynRecord possible? Mark Rivers via Tech-talk
- References:
- drvAsynIPPortConfigure and I/O Intr with asynRecord possible? Christoph Schroeder via Tech-talk
- Re: drvAsynIPPortConfigure and I/O Intr with asynRecord possible? Mark Rivers via Tech-talk
- RE: drvAsynIPPortConfigure and I/O Intr with asynRecord possible? Mark Rivers via Tech-talk
- Navigate by Date:
- Prev:
Re: asynMotor device support and the motor specific driver (asynMotorContorller) Mark Rivers via Tech-talk
- Next:
Re: asynMotor device support and the motor specific driver (asynMotorContorller) Peterson, Kevin M. 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
- Navigate by Thread:
- Prev:
RE: drvAsynIPPortConfigure and I/O Intr with asynRecord possible? Mark Rivers via Tech-talk
- Next:
RE: drvAsynIPPortConfigure and I/O Intr with asynRecord possible? Mark Rivers 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
|