Eric Lundby wrote:
>
> I have spent hours now trying to get communication working with a
> custom USB device on Windows using libusbx. I have communication
> working through a virtual com port so I believe the device is
> functioning as expected.
>
> My device reports that it has 3 interfaces (0, 1, 2) and a total of 5
> open pipes (see below for the complete output). However my calls to
>  libusb_claim_interface return -12 for all interfaces except 2 which
> is HID. I am able to get two way communication over HID, but the USB
> device i'm using only supports minimal functionality over HID (or
> atleast thats my understanding).  I'm not sure if this is due to some
> driver configuration, bugs in my code, bugs in windows backend etc.  
> My code is as follows:
>
> r = libusb_init(&ctx);//Success
> libusb_set_debug(ctx, 3);
> dev_handle = libusb_open_device_with_vid_pid(ctx, 0x04D8,
> 0x00DF);//Success
> r = libusb_claim_interface(dev_handle, interface_number);//Returns -12
> for interfaces 0 and 1,

Interfaces 0 and 1 are CDC (communication class).  It's possible those
interfaces are already being claimed by a virtual COM port driver.

How did you install the libbusb driver?

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to