libftdi Archives

Subject: Re: from bb-mode back to uart

From: Xiaofan Chen <xiaofanc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Sat, 16 Jul 2011 17:38:36 +0800
On Sat, Jul 16, 2011 at 5:21 PM, Ale Max <alemaxx@xxxxxxxxxx> wrote:
> Hello,
>
> I have by now written several tools to program MCUs (pic18,pic24,
> at89) using my ft232 breakout board. One thing that annoys me little
> bit is that I have to manually disconnect the ft232 in order to get
> back the ttyUSBn. So:
>
> Is here a libftdi call that quits bb-mode and gives me back my serial
> adapter?
>

There was a proposal to re-attach the kernel driver in the end for
libftdi-1.0, I think that has been implemented in libftdi-1.0.

On the other hand, it is trival to write a simple program to do what
you want with libusb-1.0 (no matter you use libftdi-0.19 or
libftdi-1.0).

You can use this one: libusb_attach_kernel_driver().
http://libusb.sourceforge.net/api-1.0/group__dev.html#ga9de769d3aeb45a07f5559c8a0597cbcc

-- 
Xiaofan

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

Current Thread