FTDI 设备在 minicom 上无输出

FTDI 设备在 minicom 上无输出

我在 Ubuntu 上无法使用 USB 转串口。该设备包含一个 FTDI 芯片,2232D具体来说(我可以在板上看到它)。设备有两个串行端口,因此它列为/dev/ttyUSB0& /dev/ttyUSB1

dmesg 错误地将其列为2232C

sudo dmesg
[40872.288998] usb 2-2: new full-speed USB device number 11 using xhci_hcd
[40872.441145] usb 2-2: New USB device found, idVendor=0403, idProduct=6001, bcdDevice= 5.00
[40872.441150] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[40872.441154] usb 2-2: Product: USB <-> Serial
[40872.441157] usb 2-2: Manufacturer: FTDI
[40872.444701] ftdi_sio 2-2:1.0: FTDI USB Serial Device converter detected
[40872.444783] usb 2-2: Detected FT2232C
[40872.445025] usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB0
[40872.447122] ftdi_sio 2-2:1.1: FTDI USB Serial Device converter detected
[40872.447203] usb 2-2: Detected FT2232C
[40872.447517] usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB1

Diver 加载正常,我看到了 ftdi_sio

# lsusb
Bus 002 Device 010: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC

# usb-devices    
T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 10 Spd=12  MxCh= 0                                                                                                                                           
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1                                                                                                                                                
P:  Vendor=0403 ProdID=6001 Rev=05.00        
S:  Manufacturer=FTDI                           
S:  Product=USB <-> Serial      
C:  #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=44mA 
I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio

# lsmod | grep ftdi_sio
ftdi_sio               61440  0
usbserial              49152  1 ftdi_sio

我确信我已经正确配置了端口和波特率

sudo minicom -D /dev/ttyUSB1 -b 115200

Ubuntu 详细信息

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:    18.04
Codename:   bionic

Linux ThinkPad 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

然而这在 ARCH 上运行良好。

答案1

我知道这是一个老话题,但如果有人遇到同样的问题,请检查 minicom 中的流量控制设置。在我的硬件中,流量控制已打开,导致没有传输任何内容。只需将其关闭,一切都会好起来!

相关内容