[Nut-upsdev] [Nut-upsuser] Brand new EATON 3S700DIN (mfr.date 09/28/14) doesn't wait for LB flag

Sergey Talchuk tals1975 at gmail.com
Wed Jul 29 10:47:22 UTC 2015


Hi Philip,

I've updated NUT to 2.7.3 and finally found the root cause for the
unexpected shutdown:
It is recommended to increase pollinterval to 10 seconds in ups.conf  for
usbhid-ups driver due to a known issue:
http://www.networkupstools.org/docs/man/usbhid-ups.html
Default DEADTIME=15 in upsmon.conf was triggering shutdown. Increasing the
value to 30 seconds resolved the issue.

Now when NUT receives LB flag, it shuts down all powered devices correctly.
However, upsc returns the following:
-ups.alarm: Battery voltage too low!
-ups.status: ALARM OL

Only if to power off the UPS and power on it again, correct status is
displayed:
-ups.status: OL

Dear developers,
is my understanding correct, that this might be related to the ISSUE #1
described below, since there is 'No space left on the device' and the UPS
needs to be reset by powering it off?

ISSUE# 3 seems to be resolved for me by correct configuration.
ISSUES #1 & 2 still persist.

Thanks,
Sergey



On Thu, Mar 19, 2015 at 2:01 PM, Philip Taylor <philip at kelsotowers.co.uk>
wrote:

> Sergey,
>
> I’m no expert on this but I have been reading the driver code, trying to
> sort out bigger problems with the OpenUPS driver! I can make 2 observations
> that I can’t check out myself :
>
> ‘beeper.disable’ was previously ‘beeper off’ - and ‘beeper.enable’ was
> ‘beeper.on’. Not sure if it’s worth trying the old versions?
>
> If your UPS doesn’t wait for LB, could this be because there is another
> status flag triggering shutdown? Like shutdown_imminent, or time
> limit_exceeded?
>
> I’ve been reading usbhid-ups.c this morning and had just read both  about
> both things in the first few pages of code.
>
> For what it’s worth! Someone may well tell me I’m wrong.
>
> Regards, Philip.
>
> On 19 Mar 2015, at 07:01, Sergey Talchuk <tals1975 at gmail.com> wrote:
>
> Linux-2.4.28
> libusb-0.1.8
> nut-2.6.5 [+most recent drivers from GIT] - from tarball
> EATON 3S700DIN [mfr.date 09/28/14]
> ----------------------------------
>
> ISSUES:
> I) Too many kernel logs:
> ---
> In /var/log/kernel.log
> usbdevfs: usb_submit_urb returned -28
>
> In /var/log/daemon.log:
> usbhid-ups[744]: libusb_get_interrupt: No error
> usbhid-ups[744]: libusb_get_interrupt: error submitting URB: No space left
> on device
>
> SOLUTION: pollonly in ups.conf
>
> II) Can not disable beeper (seems to be a general problem with usbhid-ups
> driver):
> ---
> upscmd -uMY_USER -pMY_PASSWORD 3s beeper.disable
>
> 'OK' returned, but no effect
>
> III)UPS doesn't wait for LB flag:
> ---
>
> a) 1st attempt: (based on LB flag)
>
> My ups.conf:
> [3s]
> driver = usbhid-ups
> port = auto
> pollinterval = 5
> override.battery.voltage.nominal = 12
> override.battery.mfr.date = 09/28/14
> override.outlet.1.desc = "BATTERY"
> override.outlet.2.desc = "FILTER"
> override.outlet.desc = "MAIN"
> override.device.serial = "G008E39401"
> override.ups.serial = "G008E39401"
> override.battery.mfr.date = 09/28/14
> pollonly
> vendorid = 0463
> productid = ffff
> desc = "Eaton 3S700DIN"
>
>
> UPS stops after 4 minutes. LB flag is not set. Battery.charge: 91
>
> b) 2nd attempt: (based on ignorelb + upslog)
> [3s]
> driver = usbhid-ups
> port = auto
> pollinterval = 5
> ignorelb
> override.battery.charge.low = 30
> override.battery.runtime.low = -1
> override.battery.voltage.nominal = 12
> override.battery.mfr.date = 09/28/14
> override.outlet.1.desc = "BATTERY"
> override.outlet.2.desc = "FILTER"
> override.outlet.desc = "MAIN"
> override.device.serial = "G008E39401"
> override.ups.serial = "G008E39401"
> override.battery.mfr.date = 09/28/14
> pollonly
> vendorid = 0463
> productid = ffff
> desc = "Eaton 3S700DIN"
>
> UPS stops after 4 minutes. LB flag is not set. Battery.charge: 92
> Last upslog:
> 20150318 074919 | CHARGE: 92 | OB DISCHRG | RUNTIME: 2760 | LOAD: 0 |
>
> c) 3rd attempt: (based on override.battery.charge.low = 95)
>
> Clean system shutdown. LB flag set = OB DISCHRG LB
>
> upsc 3s
> battery.charge: 100
> battery.charge.low: 95
> battery.mfr.date: 09/28/14
> battery.runtime: 3000
> battery.runtime.low: -1
> battery.type: PbAc
> battery.voltage.nominal: 12
> device.mfr: EATON
> device.model: Eaton 3S 700
> device.serial: G008E39401
> device.type: ups
> driver.flag.ignorelb: enabled
> driver.flag.pollonly: enabled
> driver.name: usbhid-ups
> driver.parameter.pollfreq: 30
> driver.parameter.pollinterval: 5
> driver.parameter.port: auto
> driver.parameter.productid: ffff
> driver.parameter.vendorid: 0463
> driver.version: 2.6.5
> driver.version.data: MGE HID 1.33
> driver.version.internal: 0.39
> input.transfer.high: 264
> input.transfer.low: 184
> outlet.1.desc: BATTERY
> outlet.1.id: 2
> outlet.1.status: on
> outlet.1.switchable: yes
> outlet.2.desc: FILTER
> outlet.2.id: 3
> outlet.2.status: off
> outlet.2.switchable: yes
> outlet.desc: MAIN
> outlet.id: 1
> outlet.switchable: no
> output.frequency.nominal: 50
> output.voltage: 230.0
> output.voltage.nominal: 230
> ups.beeper.status: enabled
> ups.delay.shutdown: 20
> ups.delay.start: 30
> ups.firmware: 02
> ups.load: 5
> ups.mfr: EATON
> ups.mfr.date: 09/28/14
> ups.model: Eaton 3S 700
> ups.power.nominal: 700
> ups.productid: ffff
> ups.serial: G008E39401
> ups.status: OL CHRG
> ups.timer.shutdown: -1
> ups.timer.start: -1
> ups.vendorid: 0463
>
>
> Do I have a problem with the battery or the UPS returns incorrect data?
> EATON 3S700 suppose to be fully compatible with NUT.
>
> Thanks,
> Sergey
>
>  _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20150729/78d98261/attachment.html>


More information about the Nut-upsdev mailing list