Bonjour Arnaud,

Arnaud Quette a écrit :
> 2012/2/21 Laurent Lesage <[email protected]>:
>   
>> Hi all,
>>     
>
> Bonjour Laurent,
>
>   
>> 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 :
>>     
>>> 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
>>>       
>> If I put more "D", I see it stucks on "need more data!" like this :
>>     
>>> 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)!
>>>       
>> 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.
>>     
>
> 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?
>   
Yes. It happens only when trying to shutdown (upsdrvctl shutdown)
> 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?
>   
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).
> Finally, note that 2.2.2 is quite oldish now, so you may also consider
> an update.
>
>   
Sure.... :-) (It's the "lenny" version for the moment)

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.

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") :

> [battery.charge.low]
> Remaining battery level when UPS switches to LB (percent)
> Type: STRING
> Value: 20
>
> [outlet.0.desc]
> Outlet description
> Type: STRING
> Value: Main Outlet
>
> [outlet.1.autoswitch.charge.low]
> Remaining battery level to power off this outlet (percent)
> Type: STRING
> Value: 0
>
> [outlet.1.delay.shutdown]
> Interval to wait before shutting down this outlet (seconds)
> Type: STRING
> Value: -1
>
> [outlet.1.delay.start]
> Interval to wait before restarting this outlet (seconds)
> Type: STRING
> Value: -1
>
> [outlet.1.desc]
> Outlet description
> Type: STRING
> Value: PowerShare Outlet 1
>
> [outlet.1.switch]
> Outlet switch control
> Type: STRING
> Value: 1
>
> [outlet.2.autoswitch.charge.low]
> Remaining battery level to power off this outlet (percent)
> Type: STRING
> Value: 0
>
> [outlet.2.delay.shutdown]
> Interval to wait before shutting down this outlet (seconds)
> Type: STRING
> Value: -1
>
> [outlet.2.delay.start]
> Interval to wait before restarting this outlet (seconds)
> Type: STRING
> Value: -1
>
> [outlet.2.desc]
> Outlet description
> Type: STRING
> Value: PowerShare Outlet 2
>
> [outlet.2.switch]
> Outlet switch control
> Type: STRING
> Value: 1
>
> [ups.delay.shutdown]
> Interval to wait after shutdown with delay command (seconds)
> Type: STRING
> Value: -1
>
> [ups.delay.start]
> Interval to wait before (re)starting the load (seconds)
> Type: STRING
> Value: -1
Laurent
debug level is '5'
entering upsdrv_initups()
entering setline(1)

entering shut_ups_start()

sent: (1 bytes) => 16
sent: (1 bytes) => 16
received: 16
Syncing and notification setting done
Communication with UPS established
entering shut_get_descriptor(n 21, 9)
entering shut_packet_send (8)
shut_checksum = af
sent: (11 bytes) => 81 88 81 06 00 21 00 00 09 00 af
received: 06
shut_wait_ack(): ACK received
received ACK
entering shut_packet_recv (9)
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 09
received: 21
received: 10
received: 01
received: 21
received: 01
received: 22
received: 13
Receive: (8 bytes) => 09 21 10 01 21 01 22 13
received: 28
shut_checksum: 28 => OK
sent: (1 bytes) => 06
need more data (1)!
received: 84
received: 11
Receive: (2 bytes) => 84 11
received: 07
Receive: (1 bytes) => 07
received: 07
shut_checksum: 07 => OK
sent: (1 bytes) => 06
shut_get_descriptor: (9 bytes) => 09 21 10 01 21 01 22 13 07
shut_get_descriptor(hid): (9 bytes) => 09 21 10 01 21 01 22 13 07
HID Descriptor: 
bLength:                0x09
bDescriptorType:        0x21

bcdHID:                 0x0110
bCountryCode:           0x21
bNumDescriptors:        0x01

bReportDescriptorType:  0x22
wDescriptorLength:      0x0713
entering shut_get_descriptor(n 01, 18)
entering shut_packet_send (8)
shut_checksum = 95
sent: (11 bytes) => 81 88 80 06 00 01 00 00 12 00 95
received: 06
shut_wait_ack(): ACK received
received ACK
entering shut_packet_recv (18)
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 12
received: 01
received: 10
received: 01
received: 00
received: 00
received: 00
received: 08
Receive: (8 bytes) => 12 01 10 01 00 00 00 08
received: 0a
shut_checksum: 0a => OK
sent: (1 bytes) => 06
need more data (10)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 63
received: 04
received: ff
received: ff
received: 00
received: 01
received: 01
received: 02
Receive: (8 bytes) => 63 04 ff ff 00 01 01 02
received: 65
shut_checksum: 65 => OK
sent: (1 bytes) => 06
need more data (2)!
received: 84
received: 22
Receive: (2 bytes) => 84 22
received: 03
received: 01
Receive: (2 bytes) => 03 01
received: 02
shut_checksum: 02 => OK
sent: (1 bytes) => 06
shut_get_descriptor: (18 bytes) => 12 01 10 01 00 00 00 08 63 04 ff ff 00
 01 01 02 03 01
shut_get_descriptor(device): (18 bytes) => 12 01 10 01 00 00 00 08 63 04 ff
 ff 00 01 01 02 03 01
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)
entering shut_packet_send (8)
shut_checksum = b1
sent: (11 bytes) => 81 88 81 06 00 22 00 00 13 07 b1
received: 06
shut_wait_ack(): ACK received
received ACK
entering shut_packet_recv (1811)
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 05
received: 84
received: 09
received: 04
received: a1
received: 01
received: 09
received: 10
Receive: (8 bytes) => 05 84 09 04 a1 01 09 10
received: 35
shut_checksum: 35 => OK
sent: (1 bytes) => 06
need more data (1803)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: a1
received: 00
received: 09
received: 12
received: a1
received: 00
received: 09
received: 5a
Receive: (8 bytes) => a1 00 09 12 a1 00 09 5a
received: 48
shut_checksum: 48 => OK
sent: (1 bytes) => 06
need more data (1795)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 85
received: 28
received: 75
received: 08
received: 95
received: 01
received: 15
received: 00
Receive: (8 bytes) => 85 28 75 08 95 01 15 00
received: 51
shut_checksum: 51 => OK
sent: (1 bytes) => 06
need more data (1787)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 26
received: ff
received: 00
received: 65
received: 00
received: 55
received: 00
received: b1
Receive: (8 bytes) => 26 ff 00 65 00 55 00 b1
received: 58
shut_checksum: 58 => OK
sent: (1 bytes) => 06
need more data (1779)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 82
received: 09
received: 13
received: 85
received: 20
received: b1
received: 03
received: 06
Receive: (8 bytes) => 82 09 13 85 20 b1 03 06
received: 89
shut_checksum: 89 => OK
sent: (1 bytes) => 06
need more data (1771)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: ff
received: ff
received: 09
received: 90
received: 85
received: 21
received: b1
received: 82
Receive: (8 bytes) => ff ff 09 90 85 21 b1 82
received: 0e
shut_checksum: 0e => OK
sent: (1 bytes) => 06
need more data (1763)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 09
received: 49
received: 85
received: 22
received: b1
received: 82
received: 05
received: 85
Receive: (8 bytes) => 09 49 85 22 b1 82 05 85
received: 54
shut_checksum: 54 => OK
sent: (1 bytes) => 06
need more data (1755)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 09
received: 83
received: 85
received: 23
received: 75
received: 20
received: 27
received: ff
Receive: (8 bytes) => 09 83 85 23 75 20 27 ff
received: a1
shut_checksum: a1 => OK
sent: (1 bytes) => 06
need more data (1747)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: ff
received: ff
received: 7f
received: 67
received: 01
received: 10
received: 10
received: 00
Receive: (8 bytes) => ff ff 7f 67 01 10 10 00
received: 19
shut_checksum: 19 => OK
sent: (1 bytes) => 06
need more data (1739)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: b1
received: 82
received: 05
received: 84
received: 09
received: 02
received: a1
received: 02
Receive: (8 bytes) => b1 82 05 84 09 02 a1 02
received: 1a
shut_checksum: 1a => OK
sent: (1 bytes) => 06
need more data (1731)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 09
received: 60
received: 85
received: 27
received: 75
received: 08
received: 26
received: ff
Receive: (8 bytes) => 09 60 85 27 75 08 26 ff
received: 6f
shut_checksum: 6f => OK
sent: (1 bytes) => 06
need more data (1723)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 00
received: 65
received: 00
received: b1
received: 83
received: 09
received: 60
received: 81
Receive: (8 bytes) => 00 65 00 b1 83 09 60 81
received: bf
shut_checksum: bf => OK
sent: (1 bytes) => 06
need more data (1715)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 83
received: c0
received: 09
received: 58
received: 85
received: 24
received: b1
received: 82
Receive: (8 bytes) => 83 c0 09 58 85 24 b1 82
received: 80
shut_checksum: 80 => OK
sent: (1 bytes) => 06
need more data (1707)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 06
received: ff
received: ff
received: 09
received: 45
received: 85
received: 25
received: 75
Receive: (8 bytes) => 06 ff ff 09 45 85 25 75
received: 9f
shut_checksum: 9f => OK
sent: (1 bytes) => 06
need more data (1699)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 20
received: 27
received: ff
received: ff
received: ff
received: 7f
received: 66
received: 01
Receive: (8 bytes) => 20 27 ff ff ff 7f 66 01
received: e0
shut_checksum: e0 => OK
sent: (1 bytes) => 06
need more data (1691)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 10
received: b1
received: 82
received: c0
received: 05
received: 84
received: 09
received: 11
Receive: (8 bytes) => 10 b1 82 c0 05 84 09 11
received: 7a
shut_checksum: 7a => OK
sent: (1 bytes) => 06
need more data (1683)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 85
received: 20
received: 75
received: 08
received: 26
received: ff
received: 00
received: 65
Receive: (8 bytes) => 85 20 75 08 26 ff 00 65
received: 64
shut_checksum: 64 => OK
sent: (1 bytes) => 06
need more data (1675)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 00
received: b1
received: 03
received: 09
received: 14
received: a1
received: 00
received: 09
Receive: (8 bytes) => 00 b1 03 09 14 a1 00 09
received: 07
shut_checksum: 07 => OK
sent: (1 bytes) => 06
need more data (1667)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 15
received: b1
received: 03
received: 09
received: 02
received: a1
received: 02
received: 09
Receive: (8 bytes) => 15 b1 03 09 02 a1 02 09
received: 06
shut_checksum: 06 => OK
sent: (1 bytes) => 06
need more data (1659)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 62
received: 85
received: 27
received: b1
received: 83
received: 09
received: 62
received: 81
Receive: (8 bytes) => 62 85 27 b1 83 09 62 81
received: 18
shut_checksum: 18 => OK
sent: (1 bytes) => 06
need more data (1651)!
received: 04
received: 88
Receive: (2 bytes) => 04 88
received: 83
received: 06
received: ff
received: ff
received: 09
received: 74
received: b1
received: 83
Receive: (8 bytes) => 83 06 ff ff 09 74 b1 83
received: ca
shut_checksum: ca => OK
sent: (1 bytes) => 06
need more data (1643)!
received: 06
received: 84
Unable to get Report Descriptor
Network UPS Tools - MGE UPS SYSTEMS/SHUT driver 0.66 (2.2.2)
_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to