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

Subject: Re: How to detect AsynIPPort disconnect?
From: Torsten Bögershausen via Tech-talk <[email protected]>
To: Dirk Zimoch <[email protected]>
Cc: EPICS <[email protected]>
Date: Thu, 14 Feb 2019 12:38:38 +0100
> Am 14.02.2019 um 11:51 schrieb Dirk Zimoch via Tech-talk <[email protected]>:
> 
> Hello,
> 
> I have a network device connected with drvAsynIPPort. When I switch off the device, the asyn port stays in "connected" state for about 15 minutes.

What happens then ?
> 
> Writes to the device report no error, reads time out of course. But the port is still shown as connected. I have an exceptionCallback installed, but that is not triggered.
> 

Later asyn versions (including 4.34) have an option
"disconnectOnReadTimeout"

> How can I make asyn find out within a reasonable time if the device is still connected?
> 

Stolen from asynRecord.c:

    case asynRecordDRTO:
        status = pasynRecPvt->pasynOption->setOption(pasynRecPvt->asynOptionPvt,
           pasynUser, "disconnectOnReadTimeout", drto_choices[pasynRec->drto]);
        break;


> Using asyn 4.34 and EPICS 7.0.1.
> 
> Dirk

HTH

Replies:
Re: How to detect AsynIPPort disconnect? Mark Rivers via Tech-talk
References:
How to detect AsynIPPort disconnect? Dirk Zimoch via Tech-talk

Navigate by Date:
Prev: How to detect AsynIPPort disconnect? Dirk Zimoch via Tech-talk
Next: Re: How to detect AsynIPPort disconnect? 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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: How to detect AsynIPPort disconnect? Dirk Zimoch via Tech-talk
Next: Re: How to detect AsynIPPort disconnect? 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  <20192020  2021  2022  2023  2024 
ANJ, 14 Feb 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·