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  <20182019  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  <20182019 
<== Date ==> <== Thread ==>

Subject: {ASYN} How to detect autoconnect or disconnect
From: "matic.pogacnik@diamond.ac.uk" <matic.pogacnik@diamond.ac.uk>
To: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Fri, 5 Oct 2018 08:53:59 +0000
Hi,

I have a device to which I must send the configuration of the data format in which I want the data to be sent to me when the connection is established otherwise all commands are ignored. Which represents a problem when a device is power-cycled and IOC keep running.

Basically, I'm between two options but none of them work for me somehow:

Autoconnect is ON: I'm not getting any data from the device as configuration was not send when reconnect happened. Is there a way to specify a callback which gets called when reconnect is successful?

Autoconnect is OFF: How to detect that device was lost to call connect() function again (and send configuration)? pasynManager->isConnected() seems to be always 1 for me, even after few minutes when the device is off.

I'm using asyn version 4-31.

Thank you,
Matic


-- 
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom


Replies:
Re: {ASYN} How to detect autoconnect or disconnect Mark Rivers

Navigate by Date:
Prev: Building epics base for a different location Lucock, Richard M
Next: PV alias with logical names Bo Jakobsen
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  <20182019 
Navigate by Thread:
Prev: Re: Building epics base for a different location Jeong Han Lee
Next: Re: {ASYN} How to detect autoconnect or disconnect Mark Rivers
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  <20182019 
ANJ, 05 Oct 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·