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  <20132014  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  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Adding error msgs to dbAccess.c
From: "Allison, Stephanie" <[email protected]>
To: "Hill, Bruce" <[email protected]>, Techtalk <[email protected]>
Date: Wed, 12 Jun 2013 16:14:55 -0700
Hi Bruce,

Regarding the problem where a record is tagged LINK INVALID when it tries to write to a read-only PV (same being true with trying to read from a no-read-access PV), instead of a message, I think both dbAccess.c and dbCa.c could be smart enough to check for the specific bad access status and set the PV to WRITE_ACCESS INVALID (or READ_ACCESS INVALID) instead of the more generic LINK INVALID.

Thanks for reminding me that a LINK status on a record does not necessarily mean some INP or OUT link with MS has an abnormal severity.  Can also mean bad status from dbGet and dbPut and will show up even if the INP or OUT is NMS.

Stephanie Allison

> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf
> Of Bruce Hill
> Sent: Friday, June 07, 2013 8:12 PM
> To: Techtalk
> Subject: Adding error msgs to dbAccess.c
> 
> We recently had an issue where an IOC that had been
> working for over a year stopped working.   On investigation,
> we found that one of the PV's was in a LINK INVALID state.
> 
> We finally traced that to dbAccess.c, and from there to a
> gateway configuration issue in which a missing hostname
> made a PV read-only that the IOC needed to write to.
> 
> I've created a small patch for 3.14.12 dbAccess.c that adds calls
> to recGblRecordError where recGblSetSevr is being called
> to set LINK INVALID due to a CA put error, along with a
> couple of other places where SEVR is set w/o any error msg.
> This would have saved us long hours of debugging if it
> had been in place earlier, so I thought it might be worth
> adding to base.
> 
> Thanks,
> - Bruce
> 
> --
> Bruce Hill
> Member Technical Staff
> SLAC National Accelerator Lab
> 2575 Sand Hill Road M/S 10
> Menlo Park, CA  94025



Replies:
Re: Adding error msgs to dbAccess.c Bruce Hill
References:
Adding error msgs to dbAccess.c Bruce Hill

Navigate by Date:
Prev: Re: pvGet timeout in sequencer 2.1.12 J. Lewis Muir
Next: Re: Changing SCAN field in many records Hinko Kočevar
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Adding error msgs to dbAccess.c Bruce Hill
Next: Re: Adding error msgs to dbAccess.c Bruce Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·