Yeah, I was pretty sure the problem was caused by the UPS itself but I figured the library should handle it one way or another.
I doubt APC will be too inclined to make any hardware changes. And UPS itself seems to work fine. It's controlled by apcupsd (I assume through HID) and the software can talk to it and process all events. Quoting Dan Streetman <[EMAIL PROTECTED]>: > > Well, shows what I get for trusting hardware. > > Your device is broken, its configuration descriptor claims its > configuration is 1 while it returns 98 (a non-existent configuration) to a > get-configuration request. > > You should try to get the hardware vendor to fix their device. > > Meanwhile, the CVS code is updated to check for this specific broken > hardware bug, and if the lying device has only one configuration, it will > assume that's the active config. So it should work for your device. > > On Wed, 13 Apr 2005, Dmitri Kostioukov wrote: > > >Here's a new trace. It has NullPointer exception and UsbView no longer > displays > >any devices on that port. > > > >Quoting Dan Streetman <[EMAIL PROTECTED]>: > > > >> > >> Do send a trace without your fix. > >> > >> On Tue, 12 Apr 2005, Dmitri Kostioukov wrote: > >> > >> >> Can you send a trace? Edit the javax.usb.properties file to set the > >> >> trace > >> >> level to 5 and enable urb-tracing, and run whatever progam you have > and > >> >> redirect the error output to a file, i.e. > >> > > >> >Ok, that's a whole separate issue. There's linking but in jni (I > >> >think). I filed a bug report and fixed it in my lib. > >> > > >> >Also, I think I found another bug though I haven't filed a bug report > >> >yet. I compiled kernel 2.4.30 and it seems they fixed interrupt/bulk > >> >situation. I had to change a line in JavaxUsbKernel.c file to: > >> > > >> >#define INTERRUPT_USES_BULK_LAST_KERNEL_VERSION KERNEL_VERSION(2,4,29) > >> > > >> >Until I done that, I kept getting -22 response on any submit. > >> > > >> >Ok, now to the original issue. I'm enclosing a trace. It created using > >> >the "fix" I applied. If I don't apply the fix, I just creates > >> >NullPointer on the active configuration and the devices never shows up > >> >to begin with. But if you want, I can comment out my changes and send > >> >you another trace. BTW, it is possible that this active configuration > >> >issue has something to do with 2.4.30 - I never tried it with other > >> >versions as I had to recompile the kernel to enable usb file system and > >> >I updated to 2.4.30 at the same time. > >> > > >> > > >> > >> -- > >> Dan Streetman > >> [EMAIL PROTECTED] > >> --------------------- > >> 186,272 miles per second: > >> It isn't just a good idea, it's the law! > > > > > > > > -- > Dan Streetman > [EMAIL PROTECTED] > --------------------- > 186,272 miles per second: > It isn't just a good idea, it's the law! > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel