libftdi Archives

Subject: Re: Multiple interface issues

From: Anders Larsen <al@xxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 30 May 2014 10:02:36 +0200
Hi,

On 2014-05-30 07:03, Xiaofan Chen wrote:
On Thu, May 29, 2014 at 7:18 AM, Steve Soloski <ssoloski@xxxxxxxxxxxxxx> wrote:
>         ftdi_set_interface(dev, INTERFACE_B);
>         ftdi_usb_open(dev, PICAM_USB_VID, PICAM_USB_PID);

I believe you need to reverse the order of the previous two
calls. You need to open the device and then set_interface.

no, the order is correct.

With the order reversed ftdi_set_interface() errors out with:
"Interface can not be changed on an already open device"

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

Current Thread