Try getting a JNI trace, and see if the device is telling javax.usb that 
its current active configuration is 0 (meaning the device is not 
configured).

The GET_CONFIGURATION request is a required request according to the USB 
spec, but some device manufacturers forget to actually implement it 
because most OSes manage the device configurations directly and never ask 
the device what configuration is active.

If your device always returns 0 for the GET_CONFIGURATION request, it's 
broken and you should try to get the manufacturer to fix it (i.e. fix its 
microcode).

You can "work around" its brokenness by manually (re-)setting the
configuration to 1 from javax.usb (i.e. use
javax.usb.util.StandardRequest.setConfiguration).  Then javax.usb should
show the device's active configuration as whatever you set it to.


However, if your device really isn't configured (the /proc/bus/usb/devices
file will show you if the device is configured or not), and you can't 
configure it from javax.usb (i.e. if the request fails) then it's a lower 
level problem, either in Linux or with your device.


On Thu, 9 Jun 2005, Tomaz Hutter wrote:

>Hello,
>
>I made a Java application which uses javax.usb to access USB device. It
>nicely runs on the Linux distributions: Suse 9.0, Mandrake 10.0, and
>RedHat 7.2.
>
>I installed javax.usb on Linux Fedora Core 3 system (kernel 2.6.9-1.667)
>and on that system my Java application doesn't work.
>
>The problem is because my USB device (programmable USB keyboard with
>bulk interface) is not configured. It has one configuration. Its index
>is 1, but it is not active. How can I make the USB configuration active?
>On other distributions it is made active automatically by the system,
>but not on Fedora.
>
>I assume that this question doesn't have to do much with javax.usb
>itself, but has anybody else encountered this problem? Is there a
>solution for it?
>
>Is there anybody using javax.usb on Fedora Core 3 system? Does it work
>fine?
>
>Thanks a lot.
>
>Regards,
>
>Tomaz
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
>a projector? How fast can you ride your desk chair down the office luge track?
>If you want to score the big prize, get to know the little guy.  
>Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
>_______________________________________________
>javax-usb-devel mailing list
>javax-usb-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
>

-- 
Dan Streetman
[EMAIL PROTECTED]
---------------------
186,272 miles per second:
It isn't just a good idea, it's the law!


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to