Experimental Physics and Industrial Control System
|
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 Abdalla Ahmad via Tech-talk
- References:
- Asyn record CNCT field does not update Abdalla Ahmad via Tech-talk
- Navigate by Date:
- Prev:
RE: Asyn record CNCT field does not update Mark Rivers via Tech-talk
- Next:
Re: Get notified of alarms internally to IOC w/o requiring record fields Michael Davidsaver 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
<2025>
2026
- 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 Abdalla Ahmad 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
<2025>
2026
|
|
ANJ, 19 Mar 2026 |
·
Home
·
News
·
About
·
Talk
·
Base
·
Modules
·
Extensions
·
·
Distributions
·
Download
·
Documents
·
Links
·
Licensing
·
|