Hi,

I am working with the Windows implementation in combination with LibUsb.
Connecting to the root hub and
discovering devices workes well. But when I try to communicate with devices
I have to retrieve the
active configuration to access the interfaces of a device. But no one of
the devices I tested gives me an
active configuration:

UsbConfiguration active = device.getActiveUsbConfiguration();

always retuns null and:

if(device.isConfigured()) {
...
}

fails!

In the file FindUsbInterface.java I found a comment saying:

/* If the UsbDevice is not configured, there is not much we can do with it.
* We could examine all its fields/properties, but the only communication
* possible is a limited set of Requests on the Default Control Pipe.
* So for this example we'll ignore unconfigured devices.
* The OS USB stack normally configures all devices, so we shouldn't run
into any
* unconfigured devices.
*/

Why does my OS USB stack not configure my devices??? How could I force this
configuration, or what am I doing wrong?

Regards,

Markus



_____________________________________________________________________________________

Hydrometer GmbH, Industriestraße 13, 91522 Ansbach,
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registriergericht: Ansbach HRB 69
Geschäftsführer: Johannes Sappa (Sprecher), Dr.-Ing. Robert Westphal

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese
E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Informieren Sie    uns bitte, wenn Sie diese E-Mail fälschlicherweise
erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede
unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung
und/oder Publikation dieser E-Mail ist strengstens untersagt.

The contents of the above mentioned e-mail is not legally binding. This
e-mail contains confidential and/or legally protected information. Please
inform us if you have received this e-mail by mistake and delete it in such
a case. Each unauthorized reproduction, disclosure, alteration,
distribution and/or publication of this e-mail is strictly prohibited.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to