ESP32-WROVER CAM 模块未通过 USB 连接到 Linux

问题描述 投票:0回答:1

尝试对 ESP32-WROVER CAM 模块进行编程(就像这个 https://randomnerdtutorials.com/getting-started-freenove-esp32-wrover-cam/ ),但我无法将其连接到我的 Linux 计算机.

我还有标准的 esp32-CAM 板(一个没有 USB 端口)和 USB 屏蔽,但它的行为相同。

我在这两个板上运行了

dmsg -w
,它似乎立即断开连接(?)。我还使用 ESP32-WROVER(无凸轮)板进行了测试,以供参考。

订单为 ESP32-WROVER CAM、ESP32-CAM、ESP32-WROVER。 我运行

dmsg -w
,插入开发板,按一次 Enter 键,断开开发板的连接,按几次 Enter 键,然后转到下一个开发板:

[1787858.783193] usb 1-3.4.2: new full-speed USB device number 23 using xhci_hcd
[1787858.897409] usb 1-3.4.2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice=81.34
[1787858.897413] usb 1-3.4.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[1787858.897414] usb 1-3.4.2: Product: USB Serial
[1787858.906444] ch341 1-3.4.2:1.0: ch341-uart converter detected
[1787858.907030] usb 1-3.4.2: ch341-uart converter now attached to ttyUSB0
[1787859.443365] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input51
[1787859.720112] usb 1-3.4.2: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[1787859.720662] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[1787859.720673] ch341 1-3.4.2:1.0: device disconnected

[1787862.652770] usb 1-3.4.2: USB disconnect, device number 23



[1787867.231225] usb 1-3.4.2: new full-speed USB device number 24 using xhci_hcd
[1787867.345512] usb 1-3.4.2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[1787867.345516] usb 1-3.4.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[1787867.345516] usb 1-3.4.2: Product: USB Serial
[1787867.353801] ch341 1-3.4.2:1.0: ch341-uart converter detected
[1787867.354349] usb 1-3.4.2: ch341-uart converter now attached to ttyUSB0
[1787867.911055] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input52
[1787868.183971] usb 1-3.4.2: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[1787868.184642] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[1787868.184657] ch341 1-3.4.2:1.0: device disconnected

[1787871.090153] usb 1-3.4.2: USB disconnect, device number 24




[1787876.967177] usb 1-3.4.2: new full-speed USB device number 25 using xhci_hcd
[1787877.110152] usb 1-3.4.2: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
[1787877.110156] usb 1-3.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1787877.110157] usb 1-3.4.2: Product: CP2102 USB to UART Bridge Controller
[1787877.110158] usb 1-3.4.2: Manufacturer: Silicon Labs
[1787877.110158] usb 1-3.4.2: SerialNumber: 0001
[1787877.123535] cp210x 1-3.4.2:1.0: cp210x converter detected
[1787877.124340] usb 1-3.4.2: cp210x converter now attached to ttyUSB0

[1787880.562053] usb 1-3.4.2: USB disconnect, device number 25
[1787880.562143] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[1787880.562151] cp210x 1-3.4.2:1.0: device disconnected

我正在 VSCode 中运行 platformIO。

我还尝试让 platformIO 通过“设备”搜索来检测板,但只显示了 ESP32-WROVER(无凸轮)板。

哦,我可以对 ESP32-WROVER(无凸轮)板进行编程。

我的platformio.ini文件是这样的:

[env:esp-wrover-kit]
platform = [email protected]
board = esp-wrover-kit
framework = arduino
board_build.f_flash= 80000000L
board_build.flash_mode = qio
board_build.partitions = huge_app.csv
build_flags = -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue
monitor_speed = 115200

upload_port = /dev/ttyUSB0

非常感谢任何帮助!

camera esp32 platformio
1个回答
0
投票

找到答案了。

很明显有一个名为 BRLLTY 的程序正在干扰它。

BRLLTY(Braille Ready Linux Terminal Toolkit Y)是一款软件程序,使盲人和视障用户能够使用可刷新的盲文显示器访问计算机系统并与之交互。 我又不瞎,所以不需要。

我通过停止它解决了这个问题:

sudo systemctl stop brltty-udev.service
sudo systemctl mask brltty-udev.service
sudo systemctl stop brltty.service
sudo systemctl disable brltty.service

然后我重新运行

dmsg -w
以查看它连接到哪个端口。

对我来说,它附加到

ttyCH341USB0
,所以我将
upload_port = /dev/ttyCH341USB0
添加到
platformio.ini

希望这有帮助!

© www.soinside.com 2019 - 2024. All rights reserved.