I've used libusb's *libusb_set_auto_detach_kernel_driver* http://libusb.sourceforge.net/api-1.0/group__dev.html# ga1656d6b7272d4c82f842b20a834b1467
to automatically detach and attach the kernel driver. Patch here https://github.com/robbymckilliam/libftdi/commit/ 75a9219b7e3160bca863911d2790f646bc8243ee This should leave the driver unattached (same behaviour as before) in the case that the host does not support auto attaching/detaching. Tested on linux (Ubuntu 16.04 and Raspbian Stretch) with an FT230X. On OSX it still appears to be necessary to unload the kernels FTDI drivers as described here https://github.com/libusb/libusb/wiki/FAQ#How_can_I_run_libusb_applications_under_Mac_OS_X_if_there_is_already_a_kernel_extension_installed_for_the_device Cheers, Robby Dr Robby McKilliam Senior Communications Engineer Myriota Pty Ltd 25 Chesser St Adelaide, SA, 5000 [email protected] myriota.com [image: F] <https://www.facebook.com/myriota> [image: T] <https://twitter.com/myriotaglobal> [image: L] <https://www.linkedin.com/company/myriota> [image: MYRIOTA] <http://myriota.com/> -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
