libftdi Archives

Subject: Re: USB Device file disappeared after ftdi library open its port

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Cc: Mohamed Abou Samra <my_abousamra@xxxxxxxxx>
Date: Tue, 30 Aug 2022 16:54:56 +0200
Hi Mohamed,

You wrote on Wed, Mar 16, 2022 at 04:40:52PM +0000:
> I wrote this program to assert ftdi pins using bitbang feature but when it 
> opens the usb port, the device file (/dev/ttyUSBx) doesn't appear again for 
> ever (until a reboot). It seems it fails to close it properly. Any ideas?

this is highly likely the "reattach" behavior that can be configured.

Look for AUTO_DETACH_REATACH_SIO_MODULE. It's part since libftdi 1.5:

"Add kernel driver auto attach/detach.
See new AUTO_DETACH_REATACH_SIO_MODULE option"

Cheers,
Thomas

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

Current Thread