I'm not very familiar with the details of the libusb implementation. Can anyone else on the list who has used the libusb imp help?
On Tue, Jan 27, 2009 at 6:00 AM, Sumeet Chakraborty <[email protected]> wrote: > Hello Techies, > > I have a USB Modem and I want to send some AT Commands to the Modem Using my > Java Application. I have done the following so far. > > 1) I have downloaded the package javax usb and have put the DLL in the path > for JRE to recognise it. > 2) I have downloaded the LibUSB-Win32 package for the Windows implementation > after which I generated the "Mydevice.inf" and "Mydevice.cat" files using > the inf-wizard.exe > 3) In my Java code firstly I traverse the RootHub to get access to all my > USB Devices after which I try putting something to the console for each of > the devices that I find. > 4) I also set the USBConfiguration to 1 and then I traverse through all the > USB Interfaces after which I try to claim the interface, it works fine till > now but when I try to access the endpoints it gives me an error. > > <Output> > > log4j:WARN No appenders could be found for logger > (com.mcreations.usb.windows.JavaxUsb). > log4j:WARN Please initialize the log4j system properly. > Manufacturer String: Royal Philips Electronics > Product String: Reference Design Philips Semiconductors > Interfaces Size: 3 > BConfiguration Value: 1 > USB Configuration is: true > USB Interface is true > totalEndpoints size: 0 > BConfiguration Value: 1 > USB Configuration is: true > USB Interface is true > totalEndpoints size: 1 > Direction: -128 > Type: 3 > javax.usb.UsbException: submitIrp: Error during interrupt read, error code > -116: usb_reap: timeout error > at > com.mcreations.usb.windows.WindowsPipeOsImp.submitIrp(WindowsPipeOsImp.java:314) > at > com.mcreations.usb.windows.WindowsPipeOsImp.asyncSubmit(WindowsPipeOsImp.java:342) > at com.ibm.jusb.UsbPipeImp.asyncSubmit(UsbPipeImp.java:215) > at com.ibm.jusb.UsbPipeImp.asyncSubmit(UsbPipeImp.java:167) > at com.sripaisit.USB.JavaxUSBTest.testIO(JavaxUSBTest.java:91) > at com.sripaisit.USB.JavaxUSBTest.traverse(JavaxUSBTest.java:39) > at com.sripaisit.USB.JavaxUSBTest.main(JavaxUSBTest.java:25) > > > </Output> > > Can anyone of you please guide me as to where I am going wrong? Any inputs > would indeed be of great help to me. Thanks in advance > > -- > Warmest Regards, > Sumeet C > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > javax-usb-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ javax-usb-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
