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

Subject: SNMP device support
From: 吴煊 <wux@ihep.ac.cn>
To: priller@frib.msu.edu, priller@nscl.msu.edu
Cc: tech-talk@aps.anl.gov
Date: Mon, 11 Jun 2018 16:57:17 +0800 (GMT+08:00)

Hi Priller and all,

Thanks for the excellent device support "snmp-nscl-1.0.0.1" which is used to control ISEG/MPOD modules. Everything works fine. Howerver, there is a requirement that we need 9 digits after decimal point for reading "outputMeasurementCurrent" which is 6 digits decimal by default. It can read 9 digits deciaml by using snmpget command when we update NET-SNMP to newest version net-snmp-5.8.rc3. The result is shown below

moxa@RTCOWNS126:~/app$ snmpget -v 2c -M /usr/share/snmp/mibs:/usr/local/share/snmp/mibs -m +WIENER-CRATE-MIB -c guru 192.168.1.120 outputMeasurementCurrent.u400
WIENER-CRATE-MIB::outputMeasurementCurrent.u400 = Opaque: Float: 0.000000 A
moxa@RTCOWNS126:~/app$ snmpget -Op .9 -v 2c -M /usr/share/snmp/mibs:/usr/local/share/snmp/mibs -m +WIENER-CRATE-MIB -c guru 192.168.1.120 outputMeasurementCurrent.u400
WIENER-CRATE-MIB::outputMeasurementCurrent.u400 = Opaque: Float: 0.000000088 A

The difference between the two command lines is "-Op .9" which means output precision 9 digits after decimal point. I can't find anything to set the paramenter in SNMP device support user manual. So my question is how to set paramenter "-Op .9" in snmp device support or how can I get higher precision using snmp device support?

Base verison:3.14.12.5, The record is like this:

record(ai, "$(GEO):$(SYS):$(CRATE):M$(SLOT):$(CH):Cur:Raw")
{
field(DTYP, "Snmp")
field(INP,  "@$(IP) %(COMMUNITY)outputMeasurementCurrent.$(N) Float: 100")
field(EGU,  "A")
field(PREC, "9")
field(SCAN, ".1 second")
}

Cheers,

Xuan



Navigate by Date:
Prev: Fanout PV to many records Abdalla Ahmad
Next: RE:Fanout PV to many records GAGET Alexis
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  <20182019  2020 
Navigate by Thread:
Prev: RE: Fanout PV to many records Abdalla Ahmad
Next: Re: SNMP device support Priller, John
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  <20182019  2020 
ANJ, 25 Sep 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·