[Nut-upsdev] APC Smart-UPS 1000 RM USB problems with newhidups

Peter Selinger selinger at mathstat.dal.ca
Mon Feb 13 22:58:30 UTC 2006


George,

I just dissected the lsusb sources and nut sources, and while they use
very similar ioctl's to retrieve the hid descriptor, I think I may be
onto something that they do differently, and I am hoping it might be
the key to why lsusb shows the correct report descriptor size and nut
does not.

Could you please show me, one more time, the output of the following
from your Smart-UPS (the one with a descriptor length of 1040):

./get_descriptor 002 002 1 0 0 128 0x02 0
./get_descriptor 002 002 1 0 0 128 0x21 0
./get_descriptor 002 002 1 0 0 129 0x02 0
./get_descriptor 002 002 1 0 0 129 0x21 0

OK, I already have the output of the second line, but I really need to
see all four of them together. It is ok if two of them give errors
(but I also need to know which two).

Thanks, -- Peter

George Ross wrote:
> 
> --==_Exmh_1138968133_6462P
> Content-Type: text/plain; charset=us-ascii
> 
> > I am attaching below a program that one can use (as root) to read
> > descriptors from a USB device and dump them to stdout.
> 
> If that's the same program that I got from Charles Lepple in January, then 
> I expect the output will still be:
> 
> > [haitink+]root: ./get_descriptor 002 002 1 0 0 128 0x21 0
> > Bus 002 device 002 configuration 1 interface 0 altsetting 0 endpoint 128 descriptor 0x21 index 0:
> > 
> >  09 21 10 01 21 01 22 f3 f1
> > 
> >  .!..!."..
> > 
> > (which corresponds with what I'd got when I hacked newhidups's libusb.c to
> > print out the HID descriptor contents).  The "f3 f1" looks wrong, both here
> > and as obtained by newhidups -- I would have expected "10 04".  Linux with 
> > a 2.6.12-1.1381_FC3 kernel and libusb-0.1.10a, btw.
> 
> (I see that was on the nut-upsuser list, probably as a result of following 
> up a message thread which started out there.)
> 
> -- 
> Dr George D M Ross, School of Informatics, University of Edinburgh
>     Kings Buildings, Mayfield Road, Edinburgh, Scotland, EH9 3JZ
> Mail: gdmr at inf.ed.ac.uk   Voice: +44 131 650 5147   Fax: +44 131 667 7209
>  PGP: 1024D/AD758CC5  B91E D430 1E0D 5883 EF6A  426C B676 5C2B AD75 8CC5



More information about the Nut-upsdev mailing list