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  <20162017  2018  2019  2020  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  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: StreamDevice/AsynIPPort question
From: Michael Westfall <[email protected]>
To: Mark Rivers <[email protected]>
Cc: "[email protected] Talk" <[email protected]>
Date: Fri, 11 Nov 2016 15:05:55 -0300
We are using an RTEMS MVME-2700 target, with Asyn-4-29-1 and  StreamDevice-2-6

I think it may actually be an RTEMS BSP problem, because today I ran the same test using a Linux soft IOC, and the IOC doesn't crash when the socket isn't available like it does when running the IOC on the VME target.

On Thu, Nov 10, 2016 at 6:34 PM, Mark Rivers <[email protected]> wrote:

I run many IOCs on Linux that use StreamDevice to devices that are often disconnected for weeks, and the IOCs don’t crash.

 

What version of EPICS base, StreamDevice and  asyn are you running?

 

Mark

 

 

From: [email protected] [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Michael Westfall
Sent: Thursday, November 10, 2016 2:31 PM
To: [email protected] Talk
Subject: StreamDevice/AsynIPPort question

 


We are having problems with IOC crashing when a device connected by an IP socket is unavailable.

For example, in the startup script is a line like:

drvAsynIPPortConfigure("temp", "172.16.5.218:10010")

and a StreamDevice record that uses that IP port when it calls it's protocol.

 If we unplug the ethernet cable from the device (or just power it off) the IOC crashes after a short while. No error is emitted on the console  to indicate that the connection has failed.

So, I'm wondering if there is something we need to do in setting up the AsynIPPort  or the StreamDevice protocol file in order to gracefully handle the case where the socket disappears and can't be reconnected to....


Thanks,

--

Mike Westfall

Control Systems Software Engineer


Image removed by sender.




--
Mike Westfall
Control Systems Software Engineer



Replies:
RE: StreamDevice/AsynIPPort question Mark Rivers
References:
StreamDevice/AsynIPPort question Michael Westfall
RE: StreamDevice/AsynIPPort question Mark Rivers

Navigate by Date:
Prev: RE: Asyn readFloat64 not setting record value Mark Rivers
Next: RE: StreamDevice/AsynIPPort question Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: StreamDevice/AsynIPPort question Mark Rivers
Next: RE: StreamDevice/AsynIPPort question Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 11 Nov 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·