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

Subject: Re: AsynInt32 SCAN=I/O Intr response
From: Eric Norum via Tech-talk <tech-talk at aps.anl.gov>
To: Mark Rivers <rivers at cars.uchicago.edu>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 24 Feb 2022 09:32:03 -0800
Thank you for an excellent job of sleuthing.

I was just about to post a message reporting that if I forced the associated record to process (e.g. caput SR02S:KD1:Marble:PIO_.PROC 1) then a subsequent asynReport would show the address as connected.


On Feb 24, 2022, at 7:46 AM, Mark Rivers <rivers at cars.uchicago.edu> wrote:


The problem is that asynManager assumes that connections are always made by an asyn client (e.g. device support), either by pasynManager->queueRequest to a port with autoConnect=true or directly with a call to pasynCommon->connect().  However, as you have found there can be cases where this does not happen, because device support never actually calls the driver.  The record communicates with the driver only via driver callbacks, i.e. the driver calls the client function, not the other way around.  asynManager should be fixed so that if there is a driver callback on a specific port and address it marks that device as connected.
 
This issue will typically only show up for drivers with asynMultidevice=true.  The reason is that if multiDevice is false then all operations to the driver  are on address 0, and there is typically at least one record that talks directly to the driver, i.e. is not SCAN=I/O Intr.  So address 0 will show as connected.
 
Mark

— 
Eric Norum





References:
AsynInt32 SCAN=I/O Intr response Eric Norum via Tech-talk
RE: AsynInt32 SCAN=I/O Intr response Mark Rivers via Tech-talk
RE: AsynInt32 SCAN=I/O Intr response Mark Rivers via Tech-talk

Navigate by Date:
Prev: RE: AsynInt32 SCAN=I/O Intr response Mark Rivers via Tech-talk
Next: Job Opportunities at ISIS Neutron and Muon Source: Software engineers in Experiment Controls group Freddie Akeroyd - STFC UKRI 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  <20222023  2024 
Navigate by Thread:
Prev: RE: AsynInt32 SCAN=I/O Intr response Mark Rivers via Tech-talk
Next: Recsync error Larregui, Julian 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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·