ftdi d2xx conflict with ftdi_sio on linux - How to remove ftdi_sio automatically

前端 未结 3 1113
再見小時候
再見小時候 2021-01-19 12:24

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

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-19 12:28

    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'"
    

提交回复
热议问题