<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Bonjour Arnaud,<br>
<br>
Arnaud Quette a écrit :
<blockquote
 cite="mid:CAFm_bUhxKgruhf16z653=dqn2OazzZ=SMLG2mSf-NcduFPno6Q@mail.gmail.com"
 type="cite">
  <pre wrap="">2012/2/21 Laurent Lesage <a class="moz-txt-link-rfc2396E" href="mailto:laurent@lesagepono.be"><laurent@lesagepono.be></a>:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi all,
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Bonjour Laurent,

  </pre>
  <blockquote type="cite">
    <pre wrap="">I just changed my old MGE ellipse for a evolution 850 (now eaton). I can
connect using mge-shut (newmge-shut doesn't work). But I have a few
issues. I looked around on NUT web-site and googled with no luck.
Using debian lenny on 2.6.18 kernel (due to some ISDN driver that
doesn't work with earlier kernels)
1) the most annoying is that I cannot shutdown the UPS. here is a trace :
    </pre>
    <blockquote type="cite">
      <pre wrap="">Network UPS Tools - MGE UPS SYSTEMS/SHUT driver 0.66 (2.2.2)
debug level is '2'
entering upsdrv_initups()
entering shut_ups_start()

Communication with UPS established
entering shut_get_descriptor(n 21, 9)
shut_wait_ack(): ACK received
entering shut_get_descriptor(n 01, 18)
shut_wait_ack(): ACK received
Device Descriptor:
bLength:         0x12
bDescriptorType:                    0x01
bcdUSB:         0x0110
bDeviceClass:         0x00
bDeviceSubClass:                    0x00
bDeviceProtocol:     0x00
bMaxPacketSize0:                    0x08
idVendor:         0x0463
idProduct:         0xffff
bcdDevice:                        0x0100
iManufacturer:         0x01
iProduct:                        0x02
iSerialNumber:         0x03
bNumConfigurations:     0x01

entering shut_get_descriptor(n 22, 1811)
shut_wait_ack(): ACK received
Unable to get Report Descriptor
      </pre>
    </blockquote>
    <pre wrap="">If I put more "D", I see it stucks on "need more data!" like this :
    </pre>
    <blockquote type="cite">
      <pre wrap="">need more data (1691)!
Receive: (2 bytes) => 04 88
Receive: (8 bytes) => 10 b1 82 c0 05 84 09 11
shut_checksum: 7a => OK
sent: (1 bytes) => 06
need more data (1683)!
      </pre>
    </blockquote>
    <pre wrap="">2) I tried to set some variables. The drivers accept to do it (upsrw)
but the actually do not change. some change but not with the value I set
in the command and come back to their initial value after a few seconds.

Any help appreciated.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
sure, but I need more info.
first, issue (1) means that the driver can't start, while (2) implies
that the driver is started...
is (1) a repeatable issue?
  </pre>
</blockquote>
Yes. It happens only when trying to shutdown (upsdrvctl shutdown)<br>
<blockquote
 cite="mid:CAFm_bUhxKgruhf16z653=dqn2OazzZ=SMLG2mSf-NcduFPno6Q@mail.gmail.com"
 type="cite">
  <pre wrap="">or is is only that when you're trying to shutdown the UPS (Ie
'upsdrvctl shutdown' or 'mge-shut -k ...'), it fails?

can you please send back a full trace, with debug level 5 (Ie -DDDDD),
in compressed form?
  </pre>
</blockquote>
here it is (attached). I have to type ''/lib/nut/mge-shut -a evolution
-k  -DDDDD  > shutdown.trace 2>&1'' to get it (upsdrvctl
gives no detail).<br>
<blockquote
 cite="mid:CAFm_bUhxKgruhf16z653=dqn2OazzZ=SMLG2mSf-NcduFPno6Q@mail.gmail.com"
 type="cite">
  <pre wrap="">
Finally, note that 2.2.2 is quite oldish now, so you may also consider
an update.

  </pre>
</blockquote>
Sure.... :-) (It's the "lenny" version for the moment)<br>
<br>
I also noticed sthg strange : the variables and values listed with
"upsrw" seem to be defautl values. I changed some with the windows
configurator but they stil seem to be the same. If I restart the window
MGE software, it gets the modified values, not the default ones. So, it
seems (it seems only!) that the values the "mge-shut" driver gets are
wrong. But the variable names are meaningful and totally related to the
functionnalities of the UPS  - so their names must be correct.<br>
<br>
for example, upsrw gives (but for example, the "outlet.2.delay.start"
should be 120, as configured by the windows software - and here it is
"-1") :<br>
<br>
<blockquote type="cite">[battery.charge.low]<br>
Remaining battery level when UPS switches to LB (percent)<br>
Type: STRING<br>
Value: 20<br>
  <br>
[outlet.0.desc]<br>
Outlet description<br>
Type: STRING<br>
Value: Main Outlet<br>
  <br>
[outlet.1.autoswitch.charge.low]<br>
Remaining battery level to power off this outlet (percent)<br>
Type: STRING<br>
Value: 0<br>
  <br>
[outlet.1.delay.shutdown]<br>
Interval to wait before shutting down this outlet (seconds)<br>
Type: STRING<br>
Value: -1<br>
  <br>
[outlet.1.delay.start]<br>
Interval to wait before restarting this outlet (seconds)<br>
Type: STRING<br>
Value: -1<br>
  <br>
[outlet.1.desc]<br>
Outlet description<br>
Type: STRING<br>
Value: PowerShare Outlet 1<br>
  <br>
[outlet.1.switch]<br>
Outlet switch control<br>
Type: STRING<br>
Value: 1<br>
  <br>
[outlet.2.autoswitch.charge.low]<br>
Remaining battery level to power off this outlet (percent)<br>
Type: STRING<br>
Value: 0<br>
  <br>
[outlet.2.delay.shutdown]<br>
Interval to wait before shutting down this outlet (seconds)<br>
Type: STRING<br>
Value: -1<br>
  <br>
[outlet.2.delay.start]<br>
Interval to wait before restarting this outlet (seconds)<br>
Type: STRING<br>
Value: -1<br>
  <br>
[outlet.2.desc]<br>
Outlet description<br>
Type: STRING<br>
Value: PowerShare Outlet 2<br>
  <br>
[outlet.2.switch]<br>
Outlet switch control<br>
Type: STRING<br>
Value: 1<br>
  <br>
[ups.delay.shutdown]<br>
Interval to wait after shutdown with delay command (seconds)<br>
Type: STRING<br>
Value: -1<br>
  <br>
[ups.delay.start]<br>
Interval to wait before (re)starting the load (seconds)<br>
Type: STRING<br>
Value: -1<br>
</blockquote>
Laurent<br>
</body>
</html>