You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Linux, the VCP driver and D2XX driver are incompatible with each other. When a FTDI device is plugged in, the VCP driver must be unloaded before a D2XX application can be run. Use the remove module (rmmod) command to do this:
$ sudo rmmod ftdi_sio
But this command doesn't work.
I also tried to add this udev rules, which didn't work either:
ACTION=="add",ATTRS{idVendor}=="0403",ATTRS{idProduct}=="6010",MODE="0666",RUN+="/sbin/rmmod ftdi_sio",OPTIONS="last_rule"
The text was updated successfully, but these errors were encountered:
The issue I have (I guess), is not about ftdi_sio, which giving correctly a Virtual Com Port (VCP) on my setup.
What I cannot do is to disable this udev service for a specific device, to use D2XX API instead.
I tried to add this udev rules, but it seems not to be possible to do it on WSL:
ACTION=="add",ATTRS{idVendor}=="0403",ATTRS{idProduct}=="6010",MODE="0666",RUN+="/sbin/rmmod ftdi_sio",OPTIONS="last_rule"
FT_Open (FTDI API) is still returning FT_DEVICE_NOT_OPENED, and not sure there's a way to make it work on WSL.
Windows Version
Microsoft Windows [Version 10.0.19045.2965]
WSL Version
1.2.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.90.1
Distro Version
Ubuntu 20.04
Other Software
FTDI D2XX - Linux X64 - library version 1.4.27 (https://ftdichip.com/drivers/d2xx-drivers/)
USBIPD - 3.0.0+361.Branch.master.Sha.89d4b327c99a4eecc9b583e1843a428aae3c9270
Repro Steps
Not sure if it's a bug or a missing feature.
the
Expected Behavior
On calling the FTDI library API, I expected the FT_Open() method to succeed (return 0)
See https://ftdichip.com/wp-content/uploads/2020/08/D2XX_Programmers_GuideFT_000071.pdf
My goal is to be able to use the FTDI driver within WSL2, if it's possible.
Actual Behavior
Calling FT_Open return FT_DEVICE_NOT_OPENED
Diagnostic Logs
$ sudo rmmod ftdi_sio
But this command doesn't work.
ACTION=="add",ATTRS{idVendor}=="0403",ATTRS{idProduct}=="6010",MODE="0666",RUN+="/sbin/rmmod ftdi_sio",OPTIONS="last_rule"
The text was updated successfully, but these errors were encountered: