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

Subject: Re: Asyn device support does not reconnect
From: Miroslaw Dach via Tech-talk <tech-talk at aps.anl.gov>
To: Mark Rivers <rivers at cars.uchicago.edu>
Cc: EPICS Tech-Talk <tech-talk at aps.anl.gov>
Date: Thu, 7 Nov 2024 11:35:16 -0800
Hi Mark,

Many thanks for your quick reply. 

>I am using Galil 3-6 and I don’t see this problem with my DMC-4183 controllers.  When I power-cycle the controller the IOC reconnects with no problem.  These are the messages I see when I power it off for about 10 seconds.
We have observed the same problem using Galil-4-0-02 and Galil-3-0-V3-6 drivers. If the driver works for you well with reconnection then we have to check the startup script  if something is not missing.

>Have you added this line to your startup script?

asynSetOption("custom_device", 0, "disconnectOnReadTimeout", "Y")

No, we do not have this entry. I will add it to our software and see how it works.
Many thanks again for your feedback and expertise.

Best Regards
Mirek




 

On Thu, Nov 7, 2024 at 10:42 AM Mark Rivers <rivers at cars.uchicago.edu> wrote:

Hi Mirek,

 

  • 1. Galil (Galil-4-0-02) motion controller driver. When the connection is lost it reconnects and crashes straight after with the message:

 

I am using Galil 3-6 and I don’t see this problem with my DMC-4183 controllers.  When I power-cycle the controller the IOC reconnects with no problem.  These are the messages I see when I power it off for about 10 seconds.

 

Disconnected from DMC4183 Rev 1.3k at 10.54.160.161

2024/11/07 12:33:43.977 GALILSYNC2 -1 autoConnect could not connect: Can't connect to 10.54.160.161:23 TCP: No route to host

Connected to DMC4183 Rev 1.3k at 10.54.160.161

Code started successfully on model DMC4183 Rev 1.3k, address 10.54.160.161

 

  • 2. Vimba ccd camera driver simply does not reconnect when the connection with the camera  is lost.

 

That is an issue that we should look at for ADVimba, ADSpinnaker, and other areaDetector drivers with Ethernet connections.  It would be nice to solve it in a centralized place, perhaps in ADGenICam.

 

  • 3. Custom stream device support driver which uses the call:
  • drvAsynIPPortConfigure("custom_device", "HW_dev:8003",0,0,0)
  • The ioc does not reconnect when the underlying hardware is off for a longer time (2-3 hours) and powered back.

 

Have you added this line to your startup script?

 

asynSetOption("custom_device", 0, "disconnectOnReadTimeout", "Y")

 

That will close the socket on the IOC when there is a timeout.  If autoConnect is true, then it will then continuously attempt to reconnect every few seconds.

 

Mark

 

 

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Miroslaw Dach via Tech-talk
Sent: Thursday, November 7, 2024 12:02 PM
To: EPICS Tech-Talk <tech-talk at aps.anl.gov>
Subject: Asyn device support does not reconnect

 

Hi All,

 

We are using in ALS various drivers which are based on Asyn.

Some of them do not auto reconnect. I wanted to consult with you 

what could be done in order to make them auto reconnect.

 

1. Galil (Galil-4-0-02) motion controller driver. When the connection is lost it reconnects and crashes straight after with the message:

free(): invalid size

or

munmap_chunk(): invalid pointer

 

example:

Disconnected from DMC4040 Rev 1.3i-SER at 131.243.196.71
connected_=1
Connected to DMC4040 Rev 1.3i-SER at 131.243.196.71
connected set false
Disconnected from DMC4040 Rev 1.3i-SER at 131.243.196.71
2024/10/30 15:17:58.330 GALILSYNC0 -1 autoConnect could not connect: Can't connect to 131.243.196.71:23 TCP: Connection timed out
2024/10/30 15:20:09.411 GALILSYNC0 -1 port is now connected
connected_=1
Connected to DMC4040 Rev 1.3i-SER at 131.243.196.71
free(): invalid size
Aborted (core dumped)

 

2. Vimba ccd camera driver simply does not reconnect when the connection with the camera  is lost.

We use the driver for the Manta G-235B camera (with the Allied Vision 1800 U-501 NIR  cheap) and also older cameras Manta_G-145 . We used before the Prosilica driver what was doing the auto connect but Vimba does not do that. 

 

3. Custom stream device support driver which uses the call:

drvAsynIPPortConfigure("custom_device", "HW_dev:8003",0,0,0)

The ioc does not reconnect when the underlying hardware is off for a longer time (2-3 hours) and powered back.

 

Best Regards

Mirek

 


Replies:
RE: [EXTERNAL] Re: Asyn device support does not reconnect Pearson, Matthew via Tech-talk
References:
Asyn device support does not reconnect Miroslaw Dach via Tech-talk
RE: Asyn device support does not reconnect Mark Rivers via Tech-talk

Navigate by Date:
Prev: RE: Error "drvModbusAsyn::readPoller ... invalud memory request 3, max=3" of module Eurotherm2k Mark Rivers via Tech-talk
Next: RE: [EXTERNAL] Re: Asyn device support does not reconnect Pearson, Matthew 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  <20242025 
Navigate by Thread:
Prev: RE: Asyn device support does not reconnect Mark Rivers via Tech-talk
Next: RE: [EXTERNAL] Re: Asyn device support does not reconnect Pearson, Matthew 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  <20242025 
ANJ, 07 Nov 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·