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