Unload VCP usb driver for selected device

Jan 07 2015 Published under Linux

To disable autoloading of VCP driver for particular USB device:

1. Run the following command to checkout usb device info

$ udevadm info -a -p $(udevadm info -q path -n ttyUSB0) | egrep -i "ATTRS{serial}|ATTRS{idVendor}|ATTRS{idProduct    }" -m 3

2. create a udev rule as follow:

# /etc/udev/rules.d/10-ftdi-rules
ATTRS{idVendor}=="VENDORID", ATTRS{idProduct}=="PRODUCTID", ATTRS{serial}=="SERIALNAME", RUN+="/bin/sh -c 'echo $kernel > /s    ys/bus/usb/drivers/ftdi_sio/unbind'"

Ref:
[1] http://www.ikalogic.com/ftdi-d2xx-linux-overcoming-big-problem/
[2] http://aeturnalus.com/robotics/mapping-ftdi-to-files-with-udev/

Comments Off

Comments are closed at this time.

Login