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  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: asyn messages
From: "Mark Rivers" <[email protected]>
To: "Benjamin Franksen" <[email protected]>, <[email protected]>
Date: Fri, 16 Oct 2009 08:08:21 -0500
You can turn off the error messages completely with
 
asynSetTraceMask("L3", 0)
 
I don't think you can only print connection status change messages.
 
Right now the asyn trace mask bits are:
 
#define ASYN_TRACE_ERROR     0x0001
#define ASYN_TRACEIO_DEVICE  0x0002
#define ASYN_TRACEIO_FILTER  0x0004
#define ASYN_TRACEIO_DRIVER  0x0008
#define ASYN_TRACE_FLOW      0x0010

I have been thinking that it would be good to add
ASYN_TRACE_WARNING
 
which would print messages for conditions that are less severe than ASYN_TRACE_ERROR, but still not "normal" which is when ASYN_TRACE_FLOW should print.
 
I don't think that would solve your problem though, since presumably you would like to see a message on reconnect, which would not be characterized as an error or warning.
 
Mark
 
 

________________________________

From: [email protected] on behalf of Benjamin Franksen
Sent: Fri 10/16/2009 7:34 AM
To: [email protected]
Subject: asyn messages



The log files of some of our IOCs are spammed with failed reconnect messages
like this:

[Fri Oct 16 09:30:15 2009]2009/10/16 09:30:15.139
asynManager::asynConnectCallback, port L3 error calling asynCommon->connect
[Fri Oct 16 09:30:21 2009]2009/10/16 09:30:21.147 L3 vxiConnectPort error
gpibc1cp.mlscs.bessy.de: RPC: Remote system error - No route to host
[Fri Oct 16 09:30:21 2009]
[Fri Oct 16 09:30:21 2009]2009/10/16 09:30:21.147  L3 -1 autoConnect could
not connect
[Fri Oct 16 09:30:27 2009]2009/10/16 09:30:27.156 L3 vxiConnectPort error
gpibc1cp.mlscs.bessy.de: RPC: Remote system error - No route to host


whenever e.g. a gpib box is turned off.

Is there a way to tell asyn to shut up and output mesasages only when
connection status changes?

Cheers
Ben




References:
asyn messages Benjamin Franksen

Navigate by Date:
Prev: asyn messages Benjamin Franksen
Next: Re: StripTool build errors: SDDS.h? Janet
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: asyn messages Benjamin Franksen
Next: Incorrect get_precision Schoeneburg, Bernd
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·