cp2101 converter now attached to ttyUSB0

本文介绍了一种情况,即使用USB转串口板连接开发板后,系统未能自动生成ttyUSB0设备文件的问题及解决方案。文章指出,虽然内核已经识别到了设备并尝试进行连接,但缺少了必要的ttyUSB0文件。通过手动执行mknod命令来创建这个文件,从而解决了调试过程中遇到的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

接上usb转串口的板子后,开发板调试信息如下:

 usb 1-2: reset full speed USB device using at91_ohci and address 2                                                

usb 1-2: cp2101 converter now attached to ttyUSB0

但是没有自动生成文件ttyUSB0

可能是内核的问题,但是不会改;

手动执行命令: mknod/dev/ttyUSB0 c 188 0

                           可以创建该文件;

Ubuntu绑定设备失败(3dmem) zrt@zrt:~$ sudo dmesg | grep ch34x [23948.109110] usbcore: registered new interface driver ch34x [23948.109121] usbserial: USB Serial support registered for ch34x [23948.109134] ch34x 1-8.4:1.0: ch34x converter detected [23948.109168] Modules linked in: ch34x(OE+) usbserial snd_usb_audio snd_usbmidi_lib snd_ump mc pcspkr ccm rfcomm nvidia_uvm(PO) mvfgvirtualserial(OE) cmlframegrabber(OE) cmac xofframegrabber(OE) algif_hash algif_skcipher af_alg cxpframegrabber(OE) bnep gevframegrabber(OE) gevfilter(OE) intel_rapl_msr intel_rapl_common intel_uncore_frequency intel_uncore_frequency_common intel_tcc_cooling x86_pkg_temp_thermal intel_powerclamp coretemp nvidia_drm(PO) nvidia_modeset(PO) nvidia(PO) snd_sof_pci_intel_tgl snd_sof_intel_hda_common soundwire_intel snd_sof_intel_hda_mlink soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof binfmt_misc kvm_intel snd_sof_utils snd_soc_hdac_hda rtw89_8851be snd_hda_ext_core snd_soc_acpi_intel_match rtw89_8851b snd_soc_acpi snd_hda_codec_realtek soundwire_generic_allocation nls_iso8859_1 snd_hda_codec_generic soundwire_bus rtw89_pci snd_hda_codec_hdmi kvm snd_soc_core snd_compress irqbypass ac97_bus rtw89_core snd_pcm_dmaengine crct10dif_pclmul btusb polyval_clmulni [23948.109280] ch34x_attach+0x1a6/0x3d0 [ch34x] [23948.109304] ? __pfx_ch34x_init+0x10/0x10 [ch34x] [23948.109305] ch34x_init+0x23/0xff0 [ch34x] [23948.109762] usb 1-8.4: ch34x converter now attached to ttyUSB0 [23951.195800] usb 1-8.4: usbfs: interface 0 claimed by ch34x while 'brltty' sets config #1 [23951.196419] ch34x ttyUSB0: ch34x converter now disconnected from ttyUSB0 [23951.196427] ch34x 1-8.4:1.0: device disconnected [24071.682644] ch34x 1-8.4:1.0: ch34x converter detected [24071.683064] usb 1-8.4: ch34x converter now attached to ttyUSB0 [24072.212788] usb 1-8.4: usbfs: interface 0 claimed by ch34x while 'brltty' sets config #1 [24072.213372] ch34x ttyUSB0: ch34x converter now disconnected from ttyUSB0 [24072.213389] ch34x 1-8.4:1.0: device disconnected [24137.264924] ch34x 1-8.4:1.0: ch34x converter detected [24137.265809] usb 1-8.4: ch34x converter now attached to ttyUSB0 [24137.798412] usb 1-8.4: usbfs: interface 0 claimed by ch34x while 'brltty' sets config #1 [24137.798977] ch34x ttyUSB0: ch34x converter now disconnected from ttyUSB0 [24137.798985] ch34x 1-8.4:1.0: device disconnected [24143.229930] ch34x 1-8.4:1.0: ch34x converter detected [24143.230327] usb 1-8.4: ch34x converter now attached to ttyUSB0 [24143.756662] usb 1-8.4: usbfs: interface 0 claimed by ch34x while 'brltty' sets config #1 [24143.757207] ch34x ttyUSB0: ch34x converter now disconnected from ttyUSB0 [24143.757215] ch34x 1-8.4:1.0: device disconnected
最新发布
07-18
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

为伊痴狂

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值