使用 CP2102 的 TTL 串行 USB 转换器时出现问题
Trouble using TTL serial USB converter with CP2102
我买了一个串行 TTL 转 USB 转换器来监控我的树莓派,但在启动时卡住了。我的 OS 是 Ubuntu 14.04,内核为 4.4.6
(树莓派 raspbian)
nano /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootflags=commit=120 elevator=deadline noatime nodiratime fsck.repair=yes data=writeback rootwait
驱动程序工作正常。
lsusb
Bus 002 Device 006: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
记录:
dmsg
[19265.407597] usb 2-1.2: New USB device found, idVendor=10c4, idProduct=ea60
[19265.407603] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19265.407606] usb 2-1.2: Product: CP2102 USB to UART Bridge Controller
[19265.407609] usb 2-1.2: Manufacturer: Silicon Labs
[19265.407612] usb 2-1.2: SerialNumber: 0001
[19265.408610] cp210x 2-1.2:1.0: cp210x converter detected
[19265.408791] usb 2-1.2: cp210x converter now attached to ttyUSB1
连接线:
- 发送 <-> 接收
- 接收 <-> 发送
- GRD <-> GRD
开始腻子:sudo putty
设置:
- 要连接到 /dev/ttyUSB1
的串行线
- 速度(波特)115200
- 数据位 8
- 停止位 1
- 奇偶校验None
- 流量控制None
串行终端只显示一行并且get停止工作:
Uncompressing Linux... done, booting the kernel.
没有更多文字..而且我无法按任何键。
任何建议,如何解决这个问题?
请尝试使用 console=ttyAMA0,115200
。假设您的串行适配器连接正确(从早期的线路来看,它是),您刚刚配置了 console
bootarg 不正确。
详细地说,你得到这一行的原因是因为早期的引导代码不关心 console
bootarg,它会使用嵌入在解压缩程序例程中的小型 UART 驱动程序来编写该行。
我买了一个串行 TTL 转 USB 转换器来监控我的树莓派,但在启动时卡住了。我的 OS 是 Ubuntu 14.04,内核为 4.4.6
(树莓派 raspbian)
nano /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootflags=commit=120 elevator=deadline noatime nodiratime fsck.repair=yes data=writeback rootwait
驱动程序工作正常。
lsusb
Bus 002 Device 006: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
记录:
dmsg
[19265.407597] usb 2-1.2: New USB device found, idVendor=10c4, idProduct=ea60
[19265.407603] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19265.407606] usb 2-1.2: Product: CP2102 USB to UART Bridge Controller
[19265.407609] usb 2-1.2: Manufacturer: Silicon Labs
[19265.407612] usb 2-1.2: SerialNumber: 0001
[19265.408610] cp210x 2-1.2:1.0: cp210x converter detected
[19265.408791] usb 2-1.2: cp210x converter now attached to ttyUSB1
连接线:
- 发送 <-> 接收
- 接收 <-> 发送
- GRD <-> GRD
开始腻子:sudo putty
设置:
- 要连接到 /dev/ttyUSB1 的串行线
- 速度(波特)115200
- 数据位 8
- 停止位 1
- 奇偶校验None
- 流量控制None
串行终端只显示一行并且get停止工作:
Uncompressing Linux... done, booting the kernel.
没有更多文字..而且我无法按任何键。
任何建议,如何解决这个问题?
请尝试使用 console=ttyAMA0,115200
。假设您的串行适配器连接正确(从早期的线路来看,它是),您刚刚配置了 console
bootarg 不正确。
详细地说,你得到这一行的原因是因为早期的引导代码不关心 console
bootarg,它会使用嵌入在解压缩程序例程中的小型 UART 驱动程序来编写该行。