Re: [Nut-upsuser] EATON 9SX not display battery.charge
Privet Yaroslav, all my apologies for the eternity taken to answer. 2014-12-30 18:22 GMT+01:00 Charles Lepple: > On Dec 29, 2014, at 10:03 AM, Ярослав Бабаянц wrote: > > Any news? > > Send dubug with explore one more time > in attach > > > Unless I am mistaken, there is no new information in the latest debug > output. > > One odd thing in the HID dump is that DesignCapacity appears twice, with > very different values: > > Path: UPS.BatterySystem.Battery.*DesignCapacity*, ReportID: 0x23, Offset: > 0, Size: 32, Value: 18000 > ... > Path: UPS.PowerSummary.CapacityGranularity1, ReportID: 0x0c, Offset: 0, > Size: 8, Value: 1 > Path: UPS.PowerSummary.CapacityMode, ReportID: 0x0c, Offset: 8, Size: 8, > Value: 2 > Path: UPS.PowerSummary.*DesignCapacity*, ReportID: 0x0c, Offset: 16, > Size: 8, Value: 100 > Path: UPS.PowerSummary.FullChargeCapacity, ReportID: 0x0c, Offset: 24, > Size: 8, Value: 100 > > (These are both 'Type: Feature'.) > > From pdcv10.pdf, UPS.BatterySystem.Battery.DesignCapacity should be in > CapacityMode units, and CapacityMode==2 is %. But since CapacityMode is in > UPS.PowerSummary, maybe it refers to UPS.PowerSummary.DesignCapacity instead. > The 18000 might be mAh or mWh. > > It is also possible that one of UPS.PowerSummary.DesignCapacity > or UPS.PowerSummary.FullChargeCapacity was intended to > be RemainingCapacity. You can verify this by forcing the UPS onto battery > power until the front panel displays a charge lower than 100%. > > I do not see any items which are likely to be runtime. > Charles' audit is fully right. After some more review and local testing: - would you be able to test with the latest NUT revision (2.7.4)? Note that it's not mandatory, since no change here should be impacting your issue. - the firmware revision is bad (ups.firmware: 9SX5Ki) - I've tested locally with a 9SX (ups.firmware: 02.17.0040, previous official FW) and the needed data is present (UPS.PowerSummary.RemainingCapacity). - I'm convinced that your issue comes from an outdated FW. would you be able to upgrade the firmware of your unit? If so, everything is available here (for Windows only though): h ttp://powerquality.eaton.com/Support/Software-Drivers/Downloads/9SX-UPS-firmware.asp I hope the above information will help you in solving your issue. Best regards, Arnaud -- Eaton Data Center Automation Solutions - Opensource Leader - http://42ity.org NUT (Network UPS Tools) Project Leader - http://www.networkupstools.org Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.fr ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] EATON 9SX not display battery.charge
On Dec 29, 2014, at 6:38 PM, Janez Kremzer janez...@gmail.com wrote: Charels get me e hint about comment out root user and add $ sudo adduser nut dialout. In Ярослав's case (FreeBSD), the group would be uucp (and I don't think the adduser command supports this syntax). -- Charles Lepple clepple@gmail ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] EATON 9SX not display battery.charge
On Dec 29, 2014, at 10:03 AM, Ярослав Бабаянц free...@gmail.com wrote: Any news? Send dubug with explore one more time in attach Unless I am mistaken, there is no new information in the latest debug output. One odd thing in the HID dump is that DesignCapacity appears twice, with very different values: Path: UPS.BatterySystem.Battery.DesignCapacity, ReportID: 0x23, Offset: 0, Size: 32, Value: 18000 ... Path: UPS.PowerSummary.CapacityGranularity1, ReportID: 0x0c, Offset: 0, Size: 8, Value: 1 Path: UPS.PowerSummary.CapacityMode, ReportID: 0x0c, Offset: 8, Size: 8, Value: 2 Path: UPS.PowerSummary.DesignCapacity, ReportID: 0x0c, Offset: 16, Size: 8, Value: 100 Path: UPS.PowerSummary.FullChargeCapacity, ReportID: 0x0c, Offset: 24, Size: 8, Value: 100 (These are both 'Type: Feature'.) From pdcv10.pdf, UPS.BatterySystem.Battery.DesignCapacity should be in CapacityMode units, and CapacityMode==2 is %. But since CapacityMode is in UPS.PowerSummary, maybe it refers to UPS.PowerSummary.DesignCapacity instead. The 18000 might be mAh or mWh. It is also possible that one of UPS.PowerSummary.DesignCapacity or UPS.PowerSummary.FullChargeCapacity was intended to be RemainingCapacity. You can verify this by forcing the UPS onto battery power until the front panel displays a charge lower than 100%. I do not see any items which are likely to be runtime. -- Charles Lepple clepple@gmail ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] EATON 9SX not display battery.charge
Any news? Send dubug with explore one more time in attach 19.12.2014 15:39, Charles Lepple пишет: On Dec 19, 2014, at 5:16 AM, Ярослав Бабаянц free...@gmail.com wrote: # /usr/local/libexec/nut/usbhid-ups -DD -a eaton9sx -u root -x explore -x vendorid=0x0463 21 | tee /tmp/eaton9sx-explore.log Ah, I forgot about the vendorid. The string is a regex which must match what is printed by the debug output (case-insensitive) rather than a numerical match, so it should be -x vendorid=0463. I did not see a potential match for battery.charge in the non-explore output, but can you try again with the fixed vendorid and -DDD? -- С уважением, Ярослав. eaton9sx-explore-DDD.tar.gz Description: GNU Zip compressed data ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] EATON 9SX not display battery.charge
Hi; Charels get me e hint about comment out root user and add $ sudo adduser nut dialout. This was work, Kind regards, Janez 2014-12-29 16:03 GMT+01:00 Ярослав Бабаянц free...@gmail.com: Any news? Send dubug with explore one more time in attach 19.12.2014 15:39, Charles Lepple пишет: On Dec 19, 2014, at 5:16 AM, Ярослав Бабаянц free...@gmail.com wrote: # /usr/local/libexec/nut/usbhid-ups -DD -a eaton9sx -u root -x explore -x vendorid=0x0463 21 | tee /tmp/eaton9sx-explore.log Ah, I forgot about the vendorid. The string is a regex which must match what is printed by the debug output (case-insensitive) rather than a numerical match, so it should be -x vendorid=0463. I did not see a potential match for battery.charge in the non-explore output, but can you try again with the fixed vendorid and -DDD? -- С уважением, Ярослав. ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] EATON 9SX not display battery.charge
19.12.2014 05:40, Charles Lepple пишет: /usr/local/libexec/nut/usbhid-ups -DD -a eaton9sx -x explore 21 | tee /tmp/eaton9sx-explore.log After run, output: 0.00 debug level is '2' 0.000665 upsdrv_initups... 0.000675 must specify vendorid when using explore Network UPS Tools - Generic HID driver 0.38 (2.7.2) USB communication driver 0.32 Ok, I run whit vendorid: # /usr/local/libexec/nut/usbhid-ups -DD -a eaton9sx -u root -x explore -x vendorid=0x0463 21 | tee /tmp/eaton9sx-explore.log 0.00 debug level is '2' 0.000646 upsdrv_initups... 0.001154 Checking device (0463/) (/dev/usb//dev/ugen1.3) 0.266807 - VendorID: 0463 0.266819 - ProductID: 0.266824 - Manufacturer: EATON 0.266828 - Product: Eaton 9SX 0.266833 - Serial Number: G200E36025 0.266838 - Bus: /dev/usb 0.266843 Trying to match device 0.266865 Device does not match - skipping 0.266890 Checking device (046D/C31C) (/dev/usb//dev/ugen1.2) 0.295825 - VendorID: 046d 0.295846 - ProductID: c31c 0.295851 - Manufacturer: Logitech 0.295856 - Product: USB Keyboard 0.295860 - Serial Number: unknown 0.295865 - Bus: /dev/usb 0.295870 Trying to match device 0.295881 Device does not match - skipping 0.295919 Checking device (04B4/6560) (/dev/usb//dev/ugen3.2) 0.295987 - VendorID: 04b4 0.295995 - ProductID: 6560 0.296000 - Manufacturer: unknown 0.296004 - Product: unknown 0.296008 - Serial Number: unknown 0.296013 - Bus: /dev/usb 0.296026 Trying to match device 0.296048 Device does not match - skipping 0.296065 Checking device (/) (/dev/usb//dev/ugen3.1) 0.296123 - VendorID: 0.296131 - ProductID: 0.296136 - Manufacturer: Intel 0.296140 - Product: EHCI root HUB 0.296145 - Serial Number: unknown 0.296150 - Bus: /dev/usb 0.296163 Trying to match device 0.296173 Device does not match - skipping 0.296192 Checking device (/) (/dev/usb//dev/ugen2.1) 0.296255 - VendorID: 0.296263 - ProductID: 0.296267 - Manufacturer: Intel 0.296271 - Product: UHCI root HUB 0.296275 - Serial Number: unknown 0.296279 - Bus: /dev/usb 0.296284 Trying to match device 0.296290 Device does not match - skipping 0.296305 Checking device (/) (/dev/usb//dev/ugen1.1) 0.296351 - VendorID: 0.296359 - ProductID: 0.296363 - Manufacturer: Intel 0.296367 - Product: UHCI root HUB 0.296371 - Serial Number: unknown 0.296375 - Bus: /dev/usb 0.296396 Trying to match device 0.296402 Device does not match - skipping 0.296417 Checking device (/) (/dev/usb//dev/ugen0.1) 0.296462 - VendorID: 0.296467 - ProductID: 0.296471 - Manufacturer: Intel 0.296474 - Product: UHCI root HUB 0.296478 - Serial Number: unknown 0.296482 - Bus: /dev/usb 0.296486 Trying to match device 0.296491 Device does not match - skipping 0.296504 No appropriate HID device found Network UPS Tools - Generic HID driver 0.38 (2.7.2) USB communication driver 0.32 0.296524 No matching HID UPS found But whitout explore mode, debug started: /usr/local/libexec/nut/usbhid-ups -DD -u root -a eaton9sx 21 | tee /tmp/eaton9sx-explore.log Output in attached file. I'm tested device whith rs232 cable and on Synology DS213+ (usb) - result is the same, device detected perfect and ups.status present, but no battery.charge and no runtime, etc. -- С уважением, Ярослав. eaton9sx-without-explore-log.tar.gz Description: GNU Zip compressed data ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] EATON 9SX not display battery.charge
On Dec 19, 2014, at 5:16 AM, Ярослав Бабаянц free...@gmail.com wrote: # /usr/local/libexec/nut/usbhid-ups -DD -a eaton9sx -u root -x explore -x vendorid=0x0463 21 | tee /tmp/eaton9sx-explore.log Ah, I forgot about the vendorid. The string is a regex which must match what is printed by the debug output (case-insensitive) rather than a numerical match, so it should be -x vendorid=0463. I did not see a potential match for battery.charge in the non-explore output, but can you try again with the fixed vendorid and -DDD? -- Charles Lepple clepple@gmail ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] EATON 9SX not display battery.charge
Ok. Thats new command (all done in explore mode fine): /usr/local/libexec/nut/usbhid-ups -DDD -a eaton9sx -u root -x explore -x vendorid=0463 21 | tee /tmp/eaton9sx-explore.log and output in attach. Thnx 19.12.2014 15:39, Charles Lepple пишет: On Dec 19, 2014, at 5:16 AM, Ярослав Бабаянц free...@gmail.com wrote: # /usr/local/libexec/nut/usbhid-ups -DD -a eaton9sx -u root -x explore -x vendorid=0x0463 21 | tee /tmp/eaton9sx-explore.log Ah, I forgot about the vendorid. The string is a regex which must match what is printed by the debug output (case-insensitive) rather than a numerical match, so it should be -x vendorid=0463. I did not see a potential match for battery.charge in the non-explore output, but can you try again with the fixed vendorid and -DDD? -- С уважением, Ярослав. eaton9sx-explore-DDD.tar.gz Description: GNU Zip compressed data ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] EATON 9SX not display battery.charge
On Dec 17, 2014, at 6:58 AM, Ярослав Бабаянц free...@gmail.com wrote: OS version: FreeBSD 8.4-RELEASE-p19 NUT version: nut-2.7.2_6 NUT installation method: from freebsd pkg system Device info: EATON 9SX 5000i, manufacturing date: 05.09.2014 ups.firmware: 9SX5Ki ... there're lot of data in output, if it needed i can attach in file... Not sure why it is not reporting load - the HID descriptor is certainly long enough. Can you please send the output of explore mode? /usr/local/libexec/nut/usbhid-ups -DD -a eaton9sx -x explore 21 | tee /tmp/eaton9sx-explore.log Let it run for about 60 seconds, then please gzip the log before sending it to the list. Thanks, -- Charles Lepple clepple@gmail ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
[Nut-upsuser] EATON 9SX not display battery.charge
OS version: FreeBSD 8.4-RELEASE-p19 NUT version: nut-2.7.2_6 NUT installation method: from freebsd pkg system Device info: EATON 9SX 5000i, manufacturing date: 05.09.2014 ups.firmware: 9SX5Ki When i try to see battery charge, in output it have not such variable, and i can't control my server and other clients connected to them. Any options cannot power of server. How to see current battery state or battery runtime by nut? Thanks. # usbconfig | grep EATON ugen1.3: Eaton 9SX EATON at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON # cat /usr/local/etc/nut/ups.conf [eaton9sx] driver = usbhid-ups port = auto desc = EATON 9-SX 5000i # ls -la /usr/local/etc/nut/ | grep .conf | grep -v sample -rw-r- 1 uucp uucp1543 Dec 15 17:03 nut.conf -rw-r- 1 uucp uucp3890 Dec 17 12:39 ups.conf -rw-r- 1 uucp uucp4604 Dec 15 17:19 upsd.conf -rw-r- 1 uucp uucp 15273 Dec 15 17:14 upsmon.conf # cat /etc/devfs.conf permugen1.3 0660 own ugen1.3 root:uucp # cat /etc/devfs.rules [nutusb=10] add path 'usb/1.3.0' group uucp mode 0660 upsc eaton9sx battery.capacity: 5.00 battery.energysave: no battery.protection: battery.type: PbAc device.mfr: EATON device.model: Eaton 9SX 5000i device.serial: G200E36025 device.type: ups driver.flag.maxreport: enabled driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.7.2 driver.version.data: MGE HID 1.33 driver.version.internal: 0.38 input.bypass.current: 1.20 input.bypass.frequency: 50.0 input.bypass.frequency.nominal: 50 input.bypass.voltage: 223.5 input.frequency: 50.0 input.frequency.nominal: 50 input.voltage: 223.2 input.voltage.nominal: 223 outlet.1.autoswitch.charge.low: 0 outlet.1.delay.shutdown: 10 outlet.1.delay.start: 3 outlet.1.desc: PowerShare Outlet 1 outlet.1.id: 1 outlet.1.status: on outlet.1.switchable: yes outlet.2.autoswitch.charge.low: 0 outlet.2.delay.shutdown: 20 outlet.2.delay.start: 6 outlet.2.desc: PowerShare Outlet 2 outlet.2.id: 2 outlet.2.status: on outlet.2.switchable: no outlet.desc: Main Outlet outlet.id: 0 outlet.switchable: no output.current: 1.10 output.frequency: 0.0 output.frequency.nominal: 50 output.powerfactor: 0.00 output.voltage: 0.0 output.voltage.nominal: 230 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.efficiency: 0 ups.firmware: 9SX5Ki ups.load: 5 ups.mfr: EATON ups.model: Eaton 9SX 5000i ups.power: 264 ups.power.nominal: 5000 ups.productid: ups.realpower: 226 ups.realpower.nominal: 4500 ups.serial: G200E36025 ups.start.auto: yes ups.start.battery: yes ups.start.reboot: yes ups.status: OL CHRG BYPASS ups.test.interval: 2592000 ups.test.result: No test initiated ups.timer.shutdown: 0 ups.timer.start: 0 ups.type: online ups.vendorid: 0463 # /usr/local/libexec/nut/usbhid-ups -DD -a eaton9sx Network UPS Tools - Generic HID driver 0.38 (2.7.2) USB communication driver 0.32 0.00 debug level is '2' 0.000636 upsdrv_initups... 0.000852 Checking device (0463/) (/dev/usb//dev/ugen1.3) 0.256952 - VendorID: 0463 0.256983 - ProductID: 0.256990 - Manufacturer: EATON 0.256996 - Product: Eaton 9SX 0.257002 - Serial Number: G200E36025 0.257007 - Bus: /dev/usb 0.257014 Trying to match device 0.257025 Device matches 6.138965 HID descriptor length 3369 9.069961 Report Descriptor size = 3369 9.071173 Using subdriver: MGE HID 1.33 there're lot of data in output, if it needed i can attach in file... -- Best regards, Yaroslav. ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser