Re: [Nut-upsuser] blazer_usb - short reply

2009-03-21 Thread Alexander I. Gordeev
On Wednesday 18 March 2009 00:58:31 Andrew Zabolotny wrote:
> Hello!
>
> I'm trying to use nut with a Ippon Smart Winner 3000 UPS
> (http://shop.key.ru/photo/items/45535.jpg) which looks like a
> custom-labeled OEM model of the megatec branch.
>
> I tried both the megatec_usb and the blazer_usb drivers for it, with a
> obvious config section:
[snip]
>
> ...and over and over again...
>
> So it looks like the driver talks properly with the UPS (and reads the
> voltage, temperature etc properly), but at some point the interaction is
> being suddenly interrupted (blazer_rating: short reply), then it
> reconnects again and so on in a endless loop.
>
> What I can do to locate and fix the problem?

I've just commited a fix for the blazer_usb driver. I'm still trying to fix 
megatec_usb also. There is a very odd and interesting problem which I want to 
resolve.
The device actually hangs if not read until timeout. BTW the same logic is in 
megatec_usb's phoenix subdriver.

--
  Alexander

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


[Nut-upsuser] Weird Load and Battery Temp Readings

2009-03-21 Thread Bob Blackwell
---> On 21/03/2009 4:35 PM, nut-upsuser-requ...@lists.alioth.debian.org 
wrote:

Citeren Bob Blackwell http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser>>:

>>>/ The dump you posted only contained the report descriptor, however the
/>>>/ initial dump of the data was missing. We need both to get an idea what
/>>/> is going on. The report descriptor itself looks good (I was able to
/>>>/ successfully parse it).
/>/> Sorry about that. Here's more!
/
> OK, that looks good too, so the problem must be in the calculation of  
> the unit exponent (probably got something to do with erroneous type  
> casting). I updated the SVN trunk with some more debugging info. Can  
> you check out if this solves this issue?

Will do however it may be a week or so before I'm able to report back as I'm 
relying on another party to build and package an installer.


Bob Blackwell
Pickering, Ontario

www.afticarr.com

Organ donation can save a life. Please sign your organ donor card.



___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Weird Load and Battery Temp Readings

2009-03-21 Thread Arjen de Korte
Citeren Bob Blackwell :

>> The dump you posted only contained the report descriptor, however the
>> initial dump of the data was missing. We need both to get an idea what
>> is going on. The report descriptor itself looks good (I was able to
>> successfully parse it).
> Sorry about that. Here's more!

OK, that looks good too, so the problem must be in the calculation of  
the unit exponent (probably got something to do with erroneous type  
casting). I updated the SVN trunk with some more debugging info. Can  
you check out if this solves this issue?

Best regards, Arjen
-- 
Please keep list traffic on the list


___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


[Nut-upsuser] Weird Load and Battery Temp Readings

2009-03-21 Thread Bob Blackwell

---> On 21/03/2009 2:33 PM, nut-upsuser-requ...@lists.alioth.debian.org 
wrote:

> Citeren Bob Blackwell  >:

>>>/ If you post debug output, make sure to include the report descriptor,
/>>>/ which would be the most valueable part, together with the initial dump
/>>/> of the variables.
/
> The dump you posted only contained the report descriptor, however the  
> initial dump of the data was missing. We need both to get an idea what  
> is going on. The report descriptor itself looks good (I was able to  
> successfully parse it).

> Best regards, Arjen
> -- 
> Please keep list traffic on the list

Sorry about that. Here's more!


send_to_all: SETINFO driver.parameter.port "AUTO"
debug level is '5'
upsdrv_initups...
Checking device (051D/0002) (001/004)
- VendorID: 051d
- ProductID: 0002
- Manufacturer: American Power Conversion
- Product: Back-UPS RS 900 FW:9.o2 .D USB FW:o2
- Serial Number: 5B0743U08220 
- Bus: 001
Trying to match device
Device matches
HID descriptor, method 1: (9 bytes) => 09 21 10 01 21 01 22 c1 04
i=0, extra[i]=09, extra[i+1]=21
HID descriptor, method 2: (9 bytes) => 09 21 10 01 21 01 22 c1 04
HID descriptor length 1217
Report Descriptor size = 1217
Report Descriptor: (1217 bytes) => 05 84 09 04 a1 01 09 24 a1 02 85 01 09
 fe 79 01 75 08 95 01 15 00 26 ff 00 b1 22 85 02 09 ff 79 02 b1 22 85 03 09
 fd 79 03 b1 22 05 85 85 04 09 8f 79 03 b1 22 85 05 09 89 79 04 b1 22 85 06
 09 8b b1 22 09 2c b1 22 85 0e 09 83 25 64 b1 22 09 67 b1 22 85 0c 09 66 81
 22 09 66 b1 a2 85 10 09 8d b1 22 09 8e b1 22 85 0f 09 8c b1 22 85 11 09 29
 b1 a2 85 09 09 85 75 10 27 ff ff 00 00 b1 a2 85 0d 09 68 27 ff ff 00 00 66
 01 10 55 00 81 22 09 68 b1 a2 05 84 85 12 09 57 16 ff ff 26 ff 7f b1 a2 85
 13 09 55 75 18 17 ff ff ff ff 27 18 c5 13 00 b1 a2 05 85 85 08 09 2a 75 10
 27 64 05 00 00 16 78 00 b1 a2 05 84 85 0a 09 40 15 00 27 ff ff 00 00 67 21
 d1 f0 00 55 05 b1 22 85 0b 09 30 b1 a2 85 14 09 5a 75 08 15 01 25 03 65 00
 55 00 b1 a2 09 02 a1 02 85 07 05 85 09 44 75 01 15 00 25 01 81 a2 09 44 b1
 a2 09 45 81 a2 09 45 b1 a2 09 d0 81 a2 09 d0 b1 a2 09 d1 81 a2 09 d1 b1 a2
 09 42 81 a2 09 42 b1 a2 05 84 09 68 81 a2 09 68 b1 a2 09 69 81 a2 09 69 b1
 a2 05 85 09 43 81 a2 09 43 b1 a2 05 84 09 73 81 a2 09 73 b1 a2 05 85 09 4b
 81 a2 09 4b b1 a2 05 84 09 65 81 a2 09 65 b1 a2 05 85 09 db 81 a2 09 db b1
 a2 06 86 ff 09 80 81 a2 09 80 b1 a2 95 03 81 01 b1 01 c0 c0 05 84 09 12 a1
 00 85 16 09 58 75 08 95 01 25 06 81 a2 09 58 b1 a2 06 86 ff 85 17 09 19 25
 5a b1 a2 85 1b 09 1a 25 03 b1 a2 85 1c 09 1b 26 ff 00 b1 a2 85 45 09 16 75
 18 27 ff ff ff 00 b2 a2 01 05 85 85 15 09 85 75 10 27 ff ff 00 00 b1 a2 85
 18 09 66 55 0f b1 a2 85 1a 09 2a 27 64 05 00 00 16 78 00 66 01 10 55 00 b1
 a2 85 19 27 ff ff 00 00 15 00 09 68 b1 a2 05 84 85 1e 09 36 67 01 00 01 00
 55 0f b1 a2 85 1f 09 40 67 21 d1 f0 00 55 05 b1 22 85 1d 09 30 b1 a2 85 47
 06 86 ff 09 24 75 08 16 e9 00 26 fe 00 65 00 55 00 b1 a2 85 48 09 18 75 20
 17 01 00 00 80 27 ff ff ff 7f b2 a2 01 c0 05 84 09 1a a1 00 85 20 09 30 15
 00 27 ff ff 00 00 67 21 d1 f0 00 55 06 b1 a2 85 46 09 40 75 08 15 00 26 ff
 00 67 21 d1 f0 00 55 07 b1 22 06 86 ff 85 21 09 52 75 08 25 0a 65 00 55 00
 b1 a2 85 22 09 61 25 02 b1 a2 85 42 09 24 16 75 00 26 8b 00 65 00 55 00 b1
 a2 c0 05 84 09 1c a1 00 85 2c 09 35 75 10 15 00 27 ff ff 00 00 55 0f b1 a2
 85 52 09 44 66 21 d1 55 07 b1 a2 85 2a 09 32 66 01 f0 55 0e b1 a2 85 2b 09
 30 67 21 d1 f0 00 55 06 b1 a2 85 2d 09 40 16 78 00 26 78 00 55 07 b1 a2 85
 23 09 54 16 88 00 26 8e 00 b1 a2 85 24 09 53 16 5e 00 26 68 00 b1 a2 06 86
 ff 85 25 09 7e 15 00 27 a4 01 00 00 66 01 10 55 00 b1 a2 85 26 09 76 27 76
 02 00 00 b1 a2 05 84 85 27 09 57 16 ff ff 26 ff 7f b1 a2 85 28 09 56 b1 a2
 85 29 09 55 75 18 17 ff ff ff ff 27 18 c5 13 00 b1 a2 06 86 ff 85 40 09 7c
 75 08 25 01 b1 a2 85 41 09 7d 75 10 16 ff ff 26 ff 7f 66 01 10 b1 a2 c0 05
 84 85 2e 09 fe 79 05 75 08 15 00 26 ff 00 65 00 b1 22 85 2f 09 ff 79 02 b1
 22 85 30 09 fd 79 03 b1 22 85 31 09 01 79 06 b1 a2 06 86 ff 85 34 09 42 79
 07 b1 22 06 86 ff 85 37 09 79 79 08 b1 22 85 32 09 72 25 01 b1 a2 05 85 85
 35 09 85 75 10 27 ff ff 00 00 b1 22 06 86 ff 85 3e 09 27 75 20 15 00 27 ff
 ff ff 7f b1 a2 85 3f 09 28 b1 a2 05 84 85 36 09 5a 75 08 15 01 25 03 b1 a2
 09 02 a1 02 85 33 05 85 09 44 75 01 15 00 25 01 81 a2 09 44 b1 a2 09 45 81
 a2 09 45 b1 a2 09 d0 81 a2 09 d0 b1 a2 09 d1 81 a2 09 d1 b1 a2 09 42 81 a2
 09 42 b1 a2 05 84 09 68 81 a2 09 68 b1 a2 09 69 81 a2 09 69 b1 a2 05 85 09
 43 81 a2 09 43 b1 a2 05 84 09 73 81 a2 09 73 b1 a2 05 85 09 4b 81 a2 09 4b
 b1 a2 05 84 09 65 81 a2 09 65 b1 a2 05 85 09 db 81 a2 09 db b1 a2 06 86 ff
 09 80 81 a2 09 80 b1 a2 95 03 81 01 b1 01 c0 06 86 ff 09 01 a1 00 85 60 09
 23 75 10 95 01 15 00 27 ff ff 00 00 65 00 55 00 b1 a2 85 61 09 26 75 08 16
 18 00 26 18 00 b1 a2 85 62 09 25 75 20 17 01 00 00 80 27 ff ff ff 7f b2 a2
 01 c0 05 84 09 16 a1 00 85 51 06 86 ff 09 24 16 be 00 26 fe 00 95 01 75 08
 b1 a2 c0 c0
Using subdrive

Re: [Nut-upsuser] Weird Load and Battery Temp Readings

2009-03-21 Thread Arjen de Korte
Citeren Bob Blackwell :

>> If you post debug output, make sure to include the report descriptor,
>> which would be the most valueable part, together with the initial dump
>> of the variables.

The dump you posted only contained the report descriptor, however the  
initial dump of the data was missing. We need both to get an idea what  
is going on. The report descriptor itself looks good (I was able to  
successfully parse it).

Best regards, Arjen
-- 
Please keep list traffic on the list


___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser