I have a rf-reader with ftdio usb to serial chip. I was able to write a program to control it using ftdi d2xx library. So far so good.
The issue is that when the rea
is idVendor and idProduct correct ?
Then try:
ACTION=="add", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE="0666", RUN+="/bin/sh -c 'rmmod ftdi_sio && rmmod usbserial'"
If you know the device number you can try this script instead:
RUN+="/bin/sh -c 'echo -n 1-1:1.0 > /sys/bus/usb/drivers/ftdi_sio/unbind'"
Insted of adding a new file .rules, i added that new rule line in the 70-persistent-ipoib.rules already existent and worked for me. :)
I was able to fix the problem by using a different library.
Instead of d2xx
library, I started using pylibftdi
which is based on libftdi
and it's not sensitive to ftdi_sio
.