<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi Philip,<br><br></div>I've updated NUT to 2.7.3 and finally found the root cause for the unexpected shutdown:<br></div>It is recommended to increase pollinterval to 10 seconds in ups.conf  for usbhid-ups driver due to a known issue: <a href="http://www.networkupstools.org/docs/man/usbhid-ups.html">http://www.networkupstools.org/docs/man/usbhid-ups.html</a><br></div>Default DEADTIME=15 in upsmon.conf was triggering shutdown. Increasing the value to 30 seconds resolved the issue.<br><br></div>Now when NUT receives LB flag, it shuts down all powered devices correctly. However, upsc returns the following:<br>-ups.alarm: Battery voltage too low! <br>-ups.status: ALARM OL<br><br></div>Only if to power off the UPS and power on it again, correct status is displayed:<br>-ups.status: OL<br><br></div>Dear developers,<br></div>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?<br><br></div>ISSUE# 3 seems to be resolved for me by correct configuration.<br></div>ISSUES #1 & 2 still persist.<br><br><div><div><div><div><div><div>Thanks,<br></div><div>Sergey<br><div><div><div><div><div><br><br><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 19, 2015 at 2:01 PM, Philip Taylor <span dir="ltr"><<a href="mailto:philip@kelsotowers.co.uk" target="_blank">philip@kelsotowers.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Sergey,<div><br></div><div>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 :</div><div><br></div><div>‘beeper.disable’ was previously ‘beeper off’ - and ‘beeper.enable’ was ‘beeper.on’. Not sure if it’s worth trying the old versions?</div><div><br></div><div>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?</div><div><br></div><div>I’ve been reading usbhid-ups.c this morning and had just read both  about both things in the first few pages of code.</div><div><br></div><div>For what it’s worth! Someone may well tell me I’m wrong.</div><div><br></div><div>Regards, Philip.</div><div><br><div><blockquote type="cite"><div><div class="h5"><div>On 19 Mar 2015, at 07:01, Sergey Talchuk <<a href="mailto:tals1975@gmail.com" target="_blank">tals1975@gmail.com</a>> wrote:</div><br></div></div><div><div dir="ltr"><div><div class="h5"><p style="margin-bottom:0in;font-weight:normal;line-height:100%">
<font face="Courier New, monospace">Linux-2.4.28<br>libusb-0.1.8<br>nut-2.6.5
[+most recent drivers from GIT] - from tarball<br>EATON 3S700DIN
[mfr.date 09/28/14]<br>----------------------------------<br><br>ISSUES:<br>I) Too many kernel logs:<br>---<br>In
/var/log/kernel.log<br>usbdevfs: usb_submit_urb returned -28<br><br>In
/var/log/daemon.log:<br>usbhid-ups[744]: libusb_get_interrupt: No
error<br>usbhid-ups[744]:
libusb_get_interrupt: error submitting URB: No space left on
device<br><br>SOLUTION: pollonly in ups.conf<br><br>II) Can not
disable beeper (seems to be a general problem with usbhid-ups
driver):<br>---<br>upscmd -uMY_USER -pMY_PASSWORD 3s beeper.disable</font></p></div></div><p style="margin-bottom:0in;font-weight:normal;line-height:100%">
<font face="Courier New, monospace"></font></p><div><div class="h5"><font face="Courier New, monospace">'OK' returned, but no effect<br><br>III)UPS
doesn't wait for LB flag:<br>---<br><br>a) 1st attempt: (based on LB
flag)<br><br>My ups.conf:<br>[3s]<br>driver = usbhid-ups<br>port = auto<br>pollinterval = 5<br>override.battery.voltage.nominal
= 12<br>override.battery.mfr.date =
09/28/14<br>override.outlet.1.desc =
"BATTERY"<br>override.outlet.2.desc = "FILTER"<br>override.outlet.desc = "MAIN"<br>override.device.serial =
"G008E39401"<br>override.ups.serial =
"G008E39401"<br>override.battery.mfr.date =
09/28/14<br>pollonly<br>vendorid = 0463<br>productid = ffff<br>desc = "Eaton
3S700DIN"<br><br><br>UPS stops after 4 minutes. LB flag is not set.
Battery.charge: 91<br><br>b) 2nd attempt: (based on ignorelb +
upslog)<br>[3s]<br>driver = usbhid-ups<br>port = auto<br>pollinterval = 5<br>ignorelb<br>override.battery.charge.low = 30<br>override.battery.runtime.low = -1<br>override.battery.voltage.nominal
= 12<br>override.battery.mfr.date =
09/28/14<br>override.outlet.1.desc =
"BATTERY"<br>override.outlet.2.desc = "FILTER"<br>override.outlet.desc = "MAIN"<br>override.device.serial =
"G008E39401"<br>override.ups.serial =
"G008E39401"<br>override.battery.mfr.date =
09/28/14<br>pollonly<br>vendorid = 0463<br>productid = ffff<br>desc = "Eaton
3S700DIN"<br><br>UPS stops after 4 minutes.  LB flag is not set.
Battery.charge: 92<br>Last upslog:<br>20150318 074919 | CHARGE: 92 |
OB DISCHRG | RUNTIME: 2760 | LOAD: 0 |<br><br>c) 3rd attempt: (based
on override.battery.charge.low = 95)<br><br>Clean system shutdown. LB
flag set = OB DISCHRG LB<br><br>upsc 3s<br>battery.charge: 100<br>battery.charge.low: 95<br>battery.mfr.date: 09/28/14<br>battery.runtime: 3000<br>battery.runtime.low: -1<br>battery.type: PbAc<br>battery.voltage.nominal: 12<br>device.mfr: EATON<br>device.model: Eaton 3S 700<br>device.serial: G008E39401<br>device.type: ups<br>driver.flag.ignorelb: enabled<br>driver.flag.pollonly: enabled<br></font></div></div><font face="Courier New, monospace"><a href="http://driver.name/" target="_blank">driver.name</a>: usbhid-ups<span class=""><br>driver.parameter.pollfreq: 30<br>driver.parameter.pollinterval: 5<br>driver.parameter.port: auto<br>driver.parameter.productid: ffff<br>driver.parameter.vendorid: 0463<br>driver.version: 2.6.5<br>driver.version.data: MGE HID 1.33<br>driver.version.internal: 0.39<br>input.transfer.high: 264<br>input.transfer.low: 184<br>outlet.1.desc: BATTERY<br></span><a href="http://outlet.1.id/" target="_blank">outlet.1.id</a>: 2<span class=""><br>outlet.1.status: on<br>outlet.1.switchable: yes<br>outlet.2.desc: FILTER<br></span><a href="http://outlet.2.id/" target="_blank">outlet.2.id</a>: 3<span class=""><br>outlet.2.status: off<br>outlet.2.switchable: yes<br>outlet.desc: MAIN<br></span><a href="http://outlet.id/" target="_blank">outlet.id</a>: 1<span class=""><br>outlet.switchable: no<br>output.frequency.nominal: 50<br>output.voltage: 230.0<br>output.voltage.nominal: 230<br>ups.beeper.status: enabled<br>ups.delay.shutdown: 20<br>ups.delay.start: 30<br>ups.firmware: 02<br>ups.load: 5<br>ups.mfr: EATON<br>ups.mfr.date: 09/28/14<br>ups.model: Eaton 3S 700<br>ups.power.nominal: 700<br>ups.productid: ffff<br>ups.serial: G008E39401<br>ups.status: OL CHRG<br>ups.timer.shutdown: -1<br>ups.timer.start: -1<br>ups.vendorid: 0463<br><br><br>Do
I have a problem with the battery or the UPS returns incorrect
data?<br>EATON 3S700 suppose to be fully compatible with
NUT.<br><br>Thanks,<br>Sergey</span></font><p></p>

</div>
_______________________________________________<br>Nut-upsuser mailing list<br><a href="mailto:Nut-upsuser@lists.alioth.debian.org" target="_blank">Nut-upsuser@lists.alioth.debian.org</a><br><a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser</a></div></blockquote></div><br></div></div></blockquote></div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>