[Nut-upsdev] Re: [Nut-upsuser] Ablerex 625L USB version

Jon Gough jon.gough at eclipsesystems.com.au
Wed Jan 31 05:11:24 CET 2007


Peter,
    A bit more info. I have modified your get_descriptor.c program to 
give a few more details. I have run it a few times and got the 
following information.

  ./drivers/get_descriptor 001 002 1 0 0 128 0 0
usb_get_string_simple(udev, 0, buf, 2048)

  3f

  ?
Can't get descriptor 0x00 index 0: error sending control message: Broken pipe
usb_get_descriptor(udev, 0x00, 0, buf, 2048)


Can't get endpoint 128 descriptor 0x00 index 0: error sending control 
message: Broken pipe
[root at neptune trunk]# ./drivers/get_descriptor 001 002 1 0 0 128 0 1
usb_get_string_simple(udev, 1, buf, 2048)

  55 49 53 20 41 62 6c 65 72 65 78

  UIS Ablerex
Can't get descriptor 0x00 index 1: error sending control message: Broken pipe
usb_get_descriptor(udev, 0x00, 1, buf, 2048)


Can't get endpoint 128 descriptor 0x00 index 1: error sending control 
message: Broken pipe
[root at neptune trunk]# ./drivers/get_descriptor 001 002 1 0 0 128 0 2
usb_get_string_simple(udev, 2, buf, 2048)

  41 62 6c 65 72 65 78 20 55 53 42 20 49 6e 74 65 72 66 61 63 65 20 30 34
  39 65

  Ablerex USB Interface 049e
Can't get descriptor 0x00 index 2: error sending control message: Broken pipe
usb_get_descriptor(udev, 0x00, 2, buf, 2048)


Can't get endpoint 128 descriptor 0x00 index 2: error sending control 
message: Broken pipe
[root at neptune trunk]# ./drivers/get_descriptor 001 002 1 0 0 128 0 3
usb_get_string_simple(udev, 3, buf, 2048)

  28 32 34 38 2e 30 20 31 34 30 2e 30 20 32 34 38 2e 30 20 30 31 32 20 35
  30 2e 30 20 32 37 2e 30 20 32 35 2e 30 20 30 30 30 30 31 30 30 30 0d

  (248.0 140.0 248.0 012 50.0 27.0 25.0 00001000.
Can't get descriptor 0x00 index 3: error sending control message: Broken pipe
usb_get_descriptor(udev, 0x00, 3, buf, 2048)


Can't get endpoint 128 descriptor 0x00 index 3: error sending control 
message: Broken pipe
[root at neptune trunk]# ./drivers/get_descriptor 001 002 1 0 0 128 0 4
usb_get_string_simple(udev, 4, buf, 2048)

  55 50 53 20 4e 6f 20 41 63 6b

  UPS No Ack
Can't get descriptor 0x00 index 4: error sending control message: Broken pipe
usb_get_descriptor(udev, 0x00, 4, buf, 2048)


Can't get endpoint 128 descriptor 0x00 index 4: error sending control 
message: Broken pipe

On the last one ('UPS No Ack') it seemed to put the UPS into a test 
state where it disconnected from the mains power for about 10s then 
reconnected again. I am not sure what the last two parameters mean on 
this command, but it looks like it does get some info back from it. 
Option '0 3' seems to give some numbers which look like voltage and 
frequency, but this is just a guess.

Regards
    Jon

At 14:29 31/01/2007, Peter Selinger wrote:
>Hi Jon,
>
>this doesn't look as good as I had hoped. Although you don't get any
>more error messages, notice that the "Value:" for every single
>variable shows 0.000000.
>
>The lines starting with "Report[r]" show the actual raw data read from
>the UPS, and indeed, it is all zeros (except some bytes towards the
>end that are unfortunately not used). For each feature, the
>"ReportID", "Offset" and "Size" (in bits) tell you which parts of the
>raw data that variables corresponds to.
>
>This looks buggy to me. Did anything else happen after "Waiting for
>notifications..."? Like, for example, did the device receive any data
>notifications? This could happen infrequently, like once per
>minute. But there is a chance that the device would send correct data
>voluntarily (on the interrupt pipeline), whereas it is apparently
>sending incorrect data when asked for it.
>
>-- Peter
>
>Jon Gough wrote:
>
> > Using subdriver: EXPLORE HID 0.1
> > Report[r]: (16 bytes) => 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 b0
> > Path: 00860004.Flow.FlowID, Type: Feature, ReportID: 0x01, Offset: 0,
> > Size: 4, Value: 0.000000
> > Path: 00860004.Flow.ConfigVoltage, Type: Feature, ReportID: 0x01,
> > Offset: 8, Size: 16, Value: 0.000000
> > Path: 00860004.Flow.ConfigFrequency, Type: Feature, ReportID: 0x01,
> > Offset: 24, Size: 16, Value: 0.000000
> > Path: 00860004.Flow.LowVoltageTransfer, Type: Feature, ReportID:
> > 0x01, Offset: 40, Size: 16, Value: 0.000000
> > Path: 00860004.Flow.HighVoltageTransfer, Type: Feature, ReportID:
> > 0x01, Offset: 56, Size: 16, Value: 0.000000
> > Path: 00860004.Flow.iManufacturer, Type: Feature, ReportID: 0x01,
> > Offset: 72, Size: 8, Value: 0.000000
> > Path: 00860004.Flow.iProduct, Type: Feature, ReportID: 0x01, Offset:
> > 80, Size: 8, Value: 0.000000
> > Path: 00860004.Flow.iSerialNumber, Type: Feature, ReportID: 0x01,
> > Offset: 88, Size: 8, Value: 0.000000
> > Path: 00860004.Flow.FlowID, Type: Feature, ReportID: 0x02, Offset: 0,
> > Size: 4, Value: 0.000000
> > Path: 00860004.Flow.ConfigVoltage, Type: Feature, ReportID: 0x02,
> > Offset: 8, Size: 16, Value: 0.000000
> > Path: 00860004.Flow.ConfigFrequency, Type: Feature, ReportID: 0x02,
> > Offset: 24, Size: 16, Value: 0.000000
> > Report[r]: (16 bytes) => 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> > Path: 00860004.Flow.ConfigApparentPower, Type: Feature, ReportID:
> > 0x02, Offset: 40, Size: 16, Value: 0.000000
> > Path: 00860004.Flow.ConfigActivePower, Type: Feature, ReportID: 0x02,
> > Offset: 56, Size: 16, Value: 0.000000
> > Path: 00860004.Flow.DelayBeforeStartup, Type: Feature, ReportID:
> > 0x02, Offset: 72, Size: 24, Value: 0.000000
> > Path: 00860004.Flow.DelayBeforeShutdown, Type: Feature, ReportID:
> > 0x02, Offset: 96, Size: 24, Value: 0.000000
> > Report[r]: (16 bytes) => 00 00 00 00 00 00 00 00 00 a1 fa b7 31 00 00 00
> > Path: 00860004.BatterySystem.BatterySystemID, Type: Feature,
> > ReportID: 0x03, Offset: 0, Size: 4, Value: 0.000000
> > Path: 00860004.BatterySystem.PresentStatus.Used, Type: Feature,
> > ReportID: 0x03, Offset: 8, Size: 1, Value: 0.000000
> > Path: 00860004.BatterySystem.PresentStatus.Good, Type: Feature,
> > ReportID: 0x03, Offset: 9, Size: 1, Value: 0.000000
> > Path: 00860004.BatterySystem.Voltage, Type: Feature, ReportID: 0x03,
> > Offset: 16, Size: 24, Value: 0.000000
> > Path: 00860004.BatterySystem.Temperature, Type: Feature, ReportID:
> > 0x03, Offset: 40, Size: 16, Value: 0.000000
> > Path: 00860004.BatterySystem.Test, Type: Input, ReportID: 0x03,
> > Offset: 0, Size: 1, Value: 0.000000
> > Path: 00860004.BatterySystem.Test, Type: Feature, ReportID: 0x03,
> > Offset: 56, Size: 1, Value: 0.000000
> > Can't find object 00860004.PowerConverter.PowerConverterID
> > Path: 00860004.PowerConverter.PowerConverterID, Type: Input,
> > ReportID: 0x04, Offset: 0, Size: 4
> > Can't find object 00860004.PowerConverter.Input.InputID
> > Path: 00860004.PowerConverter.Input.InputID, Type: Input, ReportID:
> > 0x04, Offset: 8, Size: 4
> > Can't find object 00860004.PowerConverter.Input.FlowID
> > Path: 00860004.PowerConverter.Input.FlowID, Type: Input, ReportID:
> > 0x04, Offset: 12, Size: 4
> > Can't find object 00860004.PowerConverter.Input.PresentStatus.Good
> > Path: 00860004.PowerConverter.Input.PresentStatus.Good, Type: Input,
> > ReportID: 0x04, Offset: 16, Size: 1
> > Can't find object 00860004.PowerConverter.Input.Voltage
> > Path: 00860004.PowerConverter.Input.Voltage, Type: Input, ReportID:
> > 0x04, Offset: 24, Size: 16
> > Can't find object 00860004.PowerConverter.Input.Frequency
> > Path: 00860004.PowerConverter.Input.Frequency, Type: Input, ReportID:
> > 0x04, Offset: 40, Size: 16
> > Can't find object 00860004.PowerConverter.Output.OutputID
> > Path: 00860004.PowerConverter.Output.OutputID, Type: Input, ReportID:
> > 0x05, Offset: 0, Size: 4
> > Can't find object 00860004.PowerConverter.Output.FlowID
> > Path: 00860004.PowerConverter.Output.FlowID, Type: Input, ReportID:
> > 0x05, Offset: 4, Size: 4
> > Can't find object 00860004.PowerConverter.Output.Voltage
> > Path: 00860004.PowerConverter.Output.Voltage, Type: Input, ReportID:
> > 0x05, Offset: 8, Size: 16
> > Can't find object 00860004.PowerConverter.Output.Frequency
> > Path: 00860004.PowerConverter.Output.Frequency, Type: Input,
> > ReportID: 0x05, Offset: 24, Size: 16
> > Can't find object 00860004.PowerConverter.Output.PercentLoad
> > Path: 00860004.PowerConverter.Output.PercentLoad, Type: Input,
> > ReportID: 0x05, Offset: 40, Size: 16
> > Can't find object 00860004.PowerConverter.Output.PresentStatus.Overload
> > Path: 00860004.PowerConverter.Output.PresentStatus.Overload, Type:
> > Input, ReportID: 0x05, Offset: 56, Size: 1
> > Can't find object 00860004.PowerConverter.Output.PresentStatus.Boost
> > Path: 00860004.PowerConverter.Output.PresentStatus.Boost, Type:
> > Input, ReportID: 0x05, Offset: 57, Size: 1
> > Can't find object 00860004.PowerConverter.Output.PresentStatus.Buck
> > Path: 00860004.PowerConverter.Output.PresentStatus.Buck, Type: Input,
> > ReportID: 0x05, Offset: 58, Size: 1
> > Report[r]: (16 bytes) => 00 00 00 00 00 d0 be 9d bf 10 00 00 00 a0 0f 00
> > Path: 00860004.PowerConverter.Output.PresentStatus.00840039, Type:
> > Feature, ReportID: 0x05, Offset: 0, Size: 8, Value: 0.000000




---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 000709-0, 30/01/2007
Tested on: 31/01/2007 3:14:39 PM
avast! is copyright (c) 2000-2007 ALWIL Software.
http://www.avast.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20070131/6e0e493c/attachment.html


More information about the Nut-upsdev mailing list