[Nut-upsdev] Re: [Nut-upsuser] Ablerex 625L USB version
Jon Gough
jon.gough at eclipsesystems.com.au
Thu Feb 1 01:26:09 CET 2007
Alexander,
I have tried your technique on my system and I am now getting
partial success. I can issue the Q1 and F commands and get the
required response back. The I command gives me stuff, but it is too
short, so I am not sure what I should have here.
Now. Do you know how to issue commands to get the UPS to do
something, ie battery test ?
Regards
Jon
At 09:41 1/02/2007, Alexander I. Gordeev wrote:
>On Wed, 31 Jan 2007 09:23:02 +0300, Jon Gough
><jon.gough at eclipsesystems.com.au> wrote:
>
> > Peter,
> > I have tried the Serial-over-USB thing and got the following
> >
>
>Please, try at least the patch I sent in this post:
>http://lists.alioth.debian.org/pipermail/nut-upsdev/2007-January/001623.html
>You should change KnownDevices array. Please, use
>set_data_krauler/get_data_krauler functions this time.
>
>Our devices seem to be mostly identical! It's great,
>I think, that we can both test this new driver.
>I'm getting nearly the same string
>descriptors (look at
>http://lists.alioth.debian.org/pipermail/nut-upsdev/2006-November/001294.html).
>I have nearly the same report descriptor (I've got it with
>usbsnoop under Windows):
>
>.....
>[16 ms] UsbSnoop - DispatchAny(f4957610) : IRP_MJ_INTERNAL_DEVICE_CONTROL
>[16 ms] UsbSnoop - MyDispatchInternalIOCTL(f4958e80) : fdo=8601d5c0,
>Irp=85fd06e8, IRQL=0
>[16 ms] >>> URB 6 going down >>>
>-- URB_FUNCTION_GET_DESCRIPTOR_FROM_INTERFACE:
> TransferBufferLength = 000002b0
> TransferBuffer = 85d71d50
> TransferBufferMDL = 00000000
> Index = 00000000
> DescriptorType = 00000022 (<illegal descriptor type!>)
> LanguageId = 00000000
>[32 ms] UsbSnoop - MyInternalIOCTLCompletion(f4958db0) :
>fido=00000000, Irp=85fd06e8, Context=85d9bbe0, IRQL=2
>[32 ms] <<< URB 6 coming back <<<
>-- URB_FUNCTION_CONTROL_TRANSFER:
> PipeHandle = 85cd6cb0
> TransferFlags = 0000000b (USBD_TRANSFER_DIRECTION_IN,
> USBD_SHORT_TRANSFER_OK)
> TransferBufferLength = 00000270
> TransferBuffer = 85d71d50
> TransferBufferMDL = 86e56e60
> 00000000: 05 86 09 04 a1 01 05 84 09 1e a1 00 85 01 09 1f
> 00000010: 65 00 75 04 95 01 15 00 25 0f 65 00 b1 02 75 04
> 00000020: 95 01 b1 03 09 40 75 10 95 01 67 21 d1 f0 00 55
> 00000030: 07 15 00 26 fa 00 b1 02 09 42 75 10 95 01 66 01
> 00000040: f0 55 00 15 00 25 3c b1 02 09 53 75 10 95 01 67
> 00000050: 21 d1 f0 00 55 07 15 00 26 fa 00 b1 02 09 54 75
> 00000060: 10 95 01 67 21 d1 f0 00 55 07 15 00 26 fa 00 b1
> 00000070: 02 09 fd 09 fe 09 ff 75 08 95 03 26 ff 00 65 00
> 00000080: b1 00 c0 05 84 09 1e a1 00 85 02 09 1f 65 00 75
> 00000090: 04 95 01 15 00 25 0f 65 00 b1 02 95 01 75 04 b1
> 000000a0: 03 09 40 75 10 95 01 67 21 d1 f0 00 55 07 15 00
> 000000b0: 26 fa 00 b1 02 09 42 75 10 95 01 66 01 f0 55 00
> 000000c0: 15 00 25 3c b1 02 09 43 75 10 95 01 66 21 d1 55
> 000000d0: 07 15 00 27 fe ff 00 00 b1 02 09 44 95 01 75 10
> 000000e0: 66 21 d1 55 07 15 00 27 fe ff 00 00 b1 02 09 56
> 000000f0: 75 18 95 01 66 01 10 55 00 15 00 27 fe ff 00 00
> 00000100: b1 02 09 57 75 18 95 01 66 01 10 55 00 15 00 27
> 00000110: fe ff 00 00 b1 02 c0 05 84 09 10 a1 00 85 03 09
> 00000120: 11 65 00 75 04 95 01 15 00 25 0f 65 00 b1 02 75
> 00000130: 04 95 01 b1 03 09 02 a1 02 09 6d 09 61 75 01 95
> 00000140: 02 15 00 25 01 b1 02 75 06 95 01 b1 03 c0 09 30
> 00000150: 75 18 95 01 67 21 d1 f0 00 55 05 27 fe ff 00 00
> 00000160: b1 02 09 36 75 10 95 01 67 01 00 01 00 27 fe ff
> 00000170: 00 00 b1 02 09 58 75 01 95 06 15 00 25 01 81 02
> 00000180: 75 02 95 01 81 03 09 58 75 01 95 04 15 00 25 01
> 00000190: b1 02 75 04 95 01 b1 03 c0 05 84 09 16 a1 00 85
> 000001a0: 04 09 17 75 04 95 01 15 00 25 0f 65 00 81 02 75
> 000001b0: 04 95 01 81 03 09 1a a1 00 09 1b 09 1f 75 04 95
> 000001c0: 02 15 00 25 0f 65 00 81 02 09 02 a1 02 09 61 75
> 000001d0: 01 95 01 15 00 25 01 81 02 75 07 95 01 81 03 c0
> 000001e0: 09 30 75 10 95 01 67 21 d1 f0 00 55 05 27 fe ff
> 000001f0: 00 00 81 02 09 32 75 10 95 01 66 01 f0 55 05 27
> 00000200: fe ff 00 00 81 02 c0 09 1c a1 00 85 05 09 1d 09
> 00000210: 1f 75 04 95 02 15 00 25 0f 65 00 81 02 09 30 75
> 00000220: 10 95 01 67 21 d1 f0 00 55 05 27 fe ff 00 00 81
> 00000230: 02 09 32 75 10 95 01 66 01 f0 55 05 27 fe ff 00
> 00000240: 00 81 02 09 35 75 10 95 01 15 00 26 ff 00 81 02
> 00000250: 09 02 a1 02 09 65 09 6e 09 6f 75 01 95 03 15 00
> 00000260: 25 01 65 00 81 02 75 05 95 01 81 03 c0 c0 c0 c0
> UrbLink = 00000000
> SetupPacket =
> 00000000: 81 06 00 22 00 00 b0 02
>[32 ms] UsbSnoop - DispatchAny(f4957610) : IRP_MJ_PNP
>(IRP_MN_QUERY_CAPABILITIES)
>[32 ms] UsbSnoop - MyDispatchPNP(f4959ee0) : IRP_MJ_PNP
>(IRP_MN_QUERY_CAPABILITIES)
>[32 ms] UsbSnoop - DispatchAny(f4957610) : IRP_MJ_PNP
>(IRP_MN_QUERY_PNP_DEVICE_STATE)
>[32 ms] UsbSnoop - MyDispatchPNP(f4959ee0) : IRP_MJ_PNP
>(IRP_MN_QUERY_PNP_DEVICE_STATE)
>.....
>
>This descriptor is retrieved when Windows initializes
>the device.
>
>--
> Alexander
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 000709-1, 31/01/2007
Tested on: 1/02/2007 11:26:13 AM
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/20070201/7057083e/attachment.html
More information about the Nut-upsdev
mailing list