raspberry-pi - Raspberry Pi,插入第二条 FTDI 电缆时丢失 /dev/ttyUSB0
问题描述
我有一个带有 1 条 FTDI 电缆的 RPi 设置。我能够/dev/ttyUSB0
毫无问题地在代码中使用
当我插入第二条具有相同供应商和产品 ID 的 FTDI 电缆时,/dev/ttyUSB1
从未出现过,而是我丢失了/dev/ttyUSB0
lsusb
表明两个设备都被正确枚举。
现在,即使我只插入一根 FTDI 电缆,/dev/ttyUSB0
仍然没有出现!
如何取回 ttyUSB0 和 ttyUSB1?
这是和的dir /dev
lsusb
输出dmesg
谢谢,
pi@raspberrypi:~ $ dir /dev
autofs hwrng loop6 null ram2 serial1 tty13 tty23 tty33 tty43 tty53 tty63 vc-mem vcsa3
block initctl loop7 ptmx ram3 shm tty14 tty24 tty34 tty44 tty54 tty7 vcs vcsa4
bus input loop-control pts ram4 stderr tty15 tty25 tty35 tty45 tty55 tty8 vcs1 vcsa5
cachefiles kmsg mem ram0 ram5 stdin tty16 tty26 tty36 tty46 tty56 tty9 vcs2 vcsa6
char log memory_bandwidth ram1 ram6 stdout tty17 tty27 tty37 tty47 tty57 ttyAMA0 vcs3 vcsm
console loop0 mmcblk0 ram10 ram7 tty tty18 tty28 tty38 tty48 tty58 ttyprintk vcs4 xconsole
cpu_dma_latency loop1 mmcblk0p1 ram11 ram8 tty0 tty19 tty29 tty39 tty49 tty59 ttyS0 vcs5 zero
disk loop2 mmcblk0p2 ram12 ram9 tty1 tty2 tty3 tty4 tty5 tty6 urandom vcs6
fb0 loop3 mqueue ram13 random tty10 tty20 tty30 tty40 tty50 tty60 vc-cma vcsa
fd loop4 network_latency ram14 raw tty11 tty21 tty31 tty41 tty51 tty61 vchiq vcsa1
full loop5 network_throughput ram15 serial0 tty12 tty22 tty32 tty42 tty52 tty62 vcio vcsa2
pi@raspberrypi:~ $ lsusb
Bus 001 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
…. dmesg
[ 208.091689] usb 1-1.5: new full-speed USB device number 5 using dwc_otg
[ 208.219273] usb 1-1.5: New USB device found, idVendor=0403, idProduct=6001
[ 208.219296] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 208.219309] usb 1-1.5: Product: FT232R USB UART
[ 208.219322] usb 1-1.5: Manufacturer: FTDI
[ 208.219334] usb 1-1.5: SerialNumber: A5052N9Z
解决方案
您的 udev 规则应该控制设备节点的创建,试试这个。
推荐阅读
- c++ - QTableWidget 信号上的无限循环 (cellChanged)
- asp.net-core - Automapper 映射的属性名称错误,或者我做错了什么
- ios - SwiftUI 打开带有数据或仅引用 Firestore 文档的视图
- r - 使用 R(和 dplyr)创建包含因子信息的多个汇总表
- c++ - boost asio exire_at 未触发
- aframe - 如何使用框架网格系统防止相机运动更新
- html - 标记不起作用。它无法识别为链接
- sql - 分组查询中的 SQL Server 总和
- javascript - 使用 2D javascript 数组中每个元素的随机值初始化新对象?
- javascript - 如何在javascript中等待具有超时的元素