libftdi Archives

Subject: Re: How to open the second channel on a FT2232H device?

From: Thomas Heller <theller@xxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 30 Apr 2012 14:43:58 +0200
1. Using the FTDI driver, and installed libusb-win32 filter driver for
the USB-Compound device "vid:0403 pid6010 rev:0700" - both A) and B) work.

This is good.
BTW, it is not a USB Compound device, but rather a USB composite
device.

Sorry for that; I have a german windows and obviously used the wrong
translation for 'USB-Verbundgerät'.


3. Using libusb-win32 drivers only, for both "USB Serial Converter
(Interface 0)" and "USB Serial Converter (Interface 1)".
A) works, B) doesn't work.


For case 3, I tried to open the channels using direct libusb-win32
calls and succeeded.

The difference to the libftdi approach was that get_devices() returns
2 different usb_device structures; and I was able to call usb_open(), usb_set_configuration() and usb_claim_interface() on these two devices; while libftdi tries to open the first device that is found for ALL interfaces.

Apparently this works only for the composite device, but not for the
single devices (or how are they called?).

Could this be an explanation?

Thomas

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
Current Thread