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  2022  2023  2024  <20252026  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  <20252026 
<== Date ==> <== Thread ==>

Subject: Re: Asyn record CNCT field does not update
From: Abdalla Ahmad via Tech-talk <[email protected]>
To: Mark Rivers <[email protected]>, "[email protected]" <[email protected]>
Date: Thu, 27 Nov 2025 17:20:34 +0000
Hello Mark

What I meant is that I set autoConnect to 0 and handle it manually why doing IO, I thought that is how autoConnect works.
Does implementing the connect() give correct feedback on the CNCT field? It would be great if you share existing drivers implementing the connect() method.

Thanks
Abdalla.


From: Mark Rivers <[email protected]>
Sent: Thursday, November 27, 2025 7:41:24 PM
To: Abdalla Ahmad <[email protected]>; [email protected] <[email protected]>
Subject: RE: Asyn record CNCT field does not update

  • Should I set autoConnect to 0 in case I want to implement a connection logic in the driver? Or it does not matter in this case of UDP?

 

I suggest setting autoConnect=1 and implementing the connect() method in your driver.  Then asynManager will call your driver periodically to try to connect.  If your driver finds that the device is available it then calls the asynPortDriver base class connect() method, which calls pasynManager->exceptionConnect().

 

Or were you thinking of some other connection logic in your driver?

 

Mark

 

 

From: Abdalla Ahmad <[email protected]>
Sent: Thursday, November 27, 2025 2:14 AM
To: Mark Rivers <[email protected]>; [email protected]
Subject: RE: Asyn record CNCT field does not update

 

Hi Mark

 

Thanks for the info. Should I set autoConnect to 0 in case I want to implement a connection logic in the driver? Or it does not matter in this case of UDP?

 

Best Regards,

Abdalla Al-Dalleh

Control Engineer

SESAME

P.O. Box 7, Allan 19252, Jordan
Tel: +96253511348 , ext. 265

Fax: +96253511423

Email : [email protected]
Website: www.sesame.org.jo

 

From: Mark Rivers <[email protected]>
Sent: Tuesday, November 25, 2025 8:58 PM
To: Abdalla Ahmad <
[email protected]>; [email protected]
Subject: RE: Asyn record CNCT field does not update

 

Hi Abdalla,

 

Sorry, I missed the fact that you are using UDP, not TCP.  In that case there is no permanent connection established between your driver and the device.  Each UDP read or write operation is completely independent.  Your driver will need to implement the logic which might be, for example, after 5 unsuccessful I/O attempts call pasynManager ->exceptionDisconnect() to tell asynManager that the device is disconnected.  Since you have set autoConnect=1 asynManager will periodically call the connect() method in your driver.  If your driver finds that the device is available, it then calls pasynManager->exceptionConnect().

 

Mark

 

From: Tech-talk <[email protected]> On Behalf Of Abdalla Ahmad via Tech-talk
Sent: Tuesday, November 25, 2025 11:37 AM
To:
[email protected]
Subject: Asyn record CNCT field does not update

 

Hi

 

I developed an asynPortDriver to control a device through UDP, I want to use asynRecord CNCT field to monitor the port connection state whether the device is connected or not. The driver is configured with auto connect flag set to 1. When I monitor the field and disconnect the device, I get error message indicating IO error, but the field does not change to disconnect. I am I missing other settings to be done?

 

Best Regards, 

Abdalla.



Replies:
RE: Asyn record CNCT field does not update Mark Rivers via Tech-talk
References:
Asyn record CNCT field does not update Abdalla Ahmad via Tech-talk
RE: Asyn record CNCT field does not update Mark Rivers via Tech-talk
RE: Asyn record CNCT field does not update Abdalla Ahmad via Tech-talk
RE: Asyn record CNCT field does not update Mark Rivers via Tech-talk

Navigate by Date:
Prev: RE: Asyn record CNCT field does not update Mark Rivers via Tech-talk
Next: RE: Asyn record CNCT field does not update 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  <20252026 
Navigate by Thread:
Prev: RE: Asyn record CNCT field does not update Mark Rivers via Tech-talk
Next: RE: Asyn record CNCT field does not update 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  <20252026 
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·