当 USB 连接时,我的电脑无法识别 FTDI 设备。我尝试安装 FTDI 2.0 驱动程序。
https://ftdichip.com/drivers/d2xx-drivers/
并且也进行了一些搜索,但都没有帮助。
Ubuntu 16.04 FTDI Usb To Serial 不显示 /dev/ttyUSB*
lsusb
我可以使用命令找到 FTDI 设备信息
Bus 002 Device 002: ID 0bda:0328 Realtek Semiconductor Corp. USB3.0-CRW
Bus 002 Device 003: ID 0bda:0411 Realtek Semiconductor Corp. 2-Port USB 3.1 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 029: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 003: ID 0bda:5411 Realtek Semiconductor Corp. 2-Port USB 2.1 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
并且还dmesg
显示FTDI
相关信息,但没有tty
相关性。
[22912.978093] usb 1-6.1: new full-speed USB device number 29 using xhci_hcd
[22913.204251] usb 1-6.1: New USB device found, idVendor=0403, idProduct=6001, bcdDevice= 6.00
[22913.204255] usb 1-6.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[22913.204257] usb 1-6.1: Product: FT232R USB UART
[22913.204259] usb 1-6.1: Manufacturer: FTDI
[22913.204261] usb 1-6.1: SerialNumber: AB0LYE9B
答案1
刚刚遇到同样的问题,已修复:
sudo apt install linux-modules-extra-`uname -r`
sudo modprobe ftdi_sio
答案2
显然驱动程序的内核模块未安装。当我在 Debian 10 系统上插入 FTDI 电缆时,dmesg
显示:
[1617898.963562] usb 4-2: new full-speed USB device number 9 using uhci_hcd
[1617899.184579] usb 4-2: New USB device found, idVendor=0403, idProduct=6001, bcdDevice= 6.00
[1617899.185006] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1617899.185469] usb 4-2: Product: TTL232R-3V3
[1617899.186221] usb 4-2: Manufacturer: FTDI
[1617899.186966] usb 4-2: SerialNumber: FT99IB1Q
[1617899.194639] ftdi_sio 4-2:1.0: FTDI USB Serial Device converter detected
[1617899.195105] usb 4-2: Detected FT232RL
[1617899.197641] usb 4-2: FTDI USB Serial Device converter now attached to ttyUSB0
请注意最后三行,它们不会出现在您的输出中。这些行是ftdi_sio
驱动程序加载。在我的 (Debian) 系统上,此驱动程序位于/lib/modules/.../kernel/drivers/usb/serial/ftdi_sio.ko
并且属于linux-image
软件包。
根据Ubuntu 软件包搜索linux-modules
,该模块是或包的一部分linux-modules-extra
,取决于您安装的平台或内核。
因此请确保您已安装该软件包,并让我们知道它是否有效。