Hello Techies,

Following is the output that I am able to see when I execute the sample
TestLibUsb.exe which is provided along with the "LibUSB-Win32" package.

<OP>

DLL version:    0.1.12.1
Driver version:    0.1.12.1

bus/device  idVendor/idProduct
bus-0/\\.\libusb0-0001--0x0471-0x1201     0471/1201
- Manufacturer : Royal Philips Electronics
- Product      : Reference Design Philips Semiconductors
- Serial Number: 000000-00-000000
  wTotalLength:         92
  bNumInterfaces:       3
  bConfigurationValue:  1
  iConfiguration:       0
  bmAttributes:         c0h
  MaxPower:             250
    bInterfaceNumber:   0
    bAlternateSetting:  0
    bNumEndpoints:      0
    bInterfaceClass:    2
    bInterfaceSubClass: 8
    bInterfaceProtocol: 0
    iInterface:         4
    bInterfaceNumber:   1
    bAlternateSetting:  0
    bNumEndpoints:      1
    bInterfaceClass:    2
    bInterfaceSubClass: 2
    bInterfaceProtocol: 1
    iInterface:         5
      bEndpointAddress: 81h
      bmAttributes:     03h
      wMaxPacketSize:   16
      bInterval:        16
      bRefresh:         0
      bSynchAddress:    0
    bInterfaceNumber:   2
    bAlternateSetting:  0
    bNumEndpoints:      2
    bInterfaceClass:    10
    bInterfaceSubClass: 0
    bInterfaceProtocol: 0
    iInterface:         6
      bEndpointAddress: 03h
      bmAttributes:     02h
      wMaxPacketSize:   64
      bInterval:        0
      bRefresh:         0
      bSynchAddress:    0
      bEndpointAddress: 83h
      bmAttributes:     02h
      wMaxPacketSize:   64
      bInterval:        0
      bRefresh:         0
      bSynchAddress:    0


</OP>

On Tue, Jan 27, 2009 at 4:30 PM, 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
>



-- 
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

Reply via email to