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

Subject: Re: Time interval for Asyn auto reconnect
From: "Hu, Yong" <yhu@bnl.gov>
To: Mark Rivers <rivers@cars.uchicago.edu>, "'Paduan Donadio, Marcio'" <marcio@slac.stanford.edu>, "Tech-talk@aps.anl.gov" <Tech-talk@aps.anl.gov>
Date: Mon, 17 Jul 2017 21:23:35 +0000
A side note as a last resort: logrotate the log file.

Yong 
NSLS-II Controls Group

From: <tech-talk-bounces@aps.anl.gov> on behalf of Mark Rivers <rivers@cars.uchicago.edu>
Date: Monday, July 17, 2017 at 4:19 PM
To: "'Paduan Donadio, Marcio'" <marcio@slac.stanford.edu>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Subject: RE: Time interval for Asyn auto reconnect

Hi Márcio,

 

Your first question is whether it is possible to control when it retries a connection.  That is not currently possible.  If the port is disconnected then it will try to reconnect each time there is an attempt to communicate with that port.  This is typically when periodically processed records process. There is not a separate asyn thread that is doing the reconnect attempts.

 

Your second question is whether you can reduce the number of error messages.  The drvAsynIPPort driver does not print any error messages when ports disconnect and reconnect.  asynManager also does not print any error messages when ports disconnect and reconnect.  Both of them simply format error message strings that they pass back to device support when they detect an error. Since the error messages are coming from device support (or some other layer above asyn), the answer to your questions depends on what device support you are using.

 

There is standard asyn device support that comes with asyn.  In asyn R4-27 I made the following change:

  • Changed error reporting if pasynManager->queueRequest returned an error. Previously error messages were printed on every call, which would cause a large number of messages if the port was disconnected and records were periodically processing. Now an error message is only printed when the status return from pasynManager->queueRequest changes, so there will be single message for each record when a port disconnects and a single message when it reconnects.

Here are some questions for you:

 

- What version of asyn are you using?

- What device support are you using?  Standard asyn device support, streamDevice, etc.?

- Can you send the error messages you are getting so we can tell where they are coming from?

 

Mark

 

 

From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Paduan Donadio, Marcio
Sent: Monday, July 17, 2017 1:39 PM
To: Tech-talk@aps.anl.gov
Subject: Time interval for Asyn auto reconnect

 

Hello.

 

I am using Asyn with IPPort, in auto connect mode, and set it to disconnect if no messages arrive after a timeout. What happens when the connected equipment is switched off is that Asyn waits for the timeout and than closes the connection. After this, auto connection keep trying to connect until the equipment is switched on again. 

 

This is perfectly what I need, but the problem is the frequency that the auto connection is being done. We are receiveing a lot of reconnection messages in the IOC console and all of this are being logged in a file.

 

Is there a way to configure this to retry a connection only after some minutes? Or even to reduce the amount of messages being sent to the IOC console?

 

Thank you,

 

Márcio Paduan Donadio

Control Systems Engineer

SLAC National Accelerator Laboratory

Advanced Instrumentation for Research Division

2575 Sand Hill Rd

Menlo Park CA 94025

Office (650) 926-5007​


References:
Time interval for Asyn auto reconnect Paduan Donadio, Marcio
RE: Time interval for Asyn auto reconnect Mark Rivers

Navigate by Date:
Prev: RE: Time interval for Asyn auto reconnect Mark Rivers
Next: GeniCam support for CamLink cameras Bruce Hill
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
Navigate by Thread:
Prev: RE: Time interval for Asyn auto reconnect Mark Rivers
Next: Re: Time interval for Asyn auto reconnect Paduan Donadio, Marcio
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
ANJ, 18 Jul 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·