PlatformIO 无法打开 ftdi 设备(带有 esp32 的 Arduino)

2023-10-18C/C++开发问题
83

本文介绍了PlatformIO 无法打开 ftdi 设备(带有 esp32 的 Arduino)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我是 Arduino 的新手并使用 esp32,我正在使用 PlatformIO 通过 VSCode 在 C++ 中命令我的项目.我刚刚下载了我的项目文件夹并在 PlatformIO 中打开它并尝试运行旨在命令外骨骼的现有代码(超过 1000 行).但是,当我运行该程序时,出现错误消息,如下所示:

I am new to Arduino and using the esp32 and I am using PlatformIO to command my project in C++ through VSCode. I just downloaded my project folder and opened it in PlatformIO and attempted to run the existing code (over 1000 lines) which is meant to command an exoskeleton. When I run the program, however, I get error messages, as follows:

错误:未找到设备错误:无法在总线位置"打开带有 vid 0403、pid 6010、描述"、串行"的 ftdi 设备错误:未找到设备错误:无法打开带有 vid 0403、pid 6014、描述 ''、串行 '' 的 ftdi 设备,位于总线位置 ''

Error: no device found Error: unable to open ftdi device with vid 0403, pid 6010, description '', serial '' at bus location '' Error: no device found Error: unable to open ftdi device with vid 0403, pid 6014, description '', serial '' at bus location ''

我觉得我遗漏了一些非常基本的东西,但我搜索的所有内容都给我带来了非常高级的问题,我希望有人能帮我解决这个问题.

I feel like I am missing something very basic, but everything I search for gives me very advanced problems, and I am hoping someone could dumb this down for me.

感谢任何帮助,谢谢.

顺便说一句,我实际用的是Mac,输入ls -ls/dev/tty.usbserial-1410时的输出是:

By the way, I am actually using Mac, and the output when I enter the ls -ls /dev/tty.usbserial-1410 is:

0 crw-rw-rw- 1 根轮 18, 2 7 Dec 14:13/dev/tty.usbserial-1410

0 crw-rw-rw- 1 root wheel 18, 2 7 Dec 14:13 /dev/tty.usbserial-1410

推荐答案

您可能使用了与原始设计不同类型的 esp32 模块(市场上有很多变体).您有 2 个选择,

You may used a different type of esp32 module (there're lots of variants in the market) from the original design. You have 2 options,

  • 如果软件可以运行并且您不想修改它,那么尝试找到设计指定的相同类型的 esp32 模块.
  • 从您当前的 esp32 模块中找出 vid/pid 并更新软件以进行连接.请参阅以下程序.

更新usb串口绑定的程序,

The procedures to update usb serial binding,

  1. 运行 lsusb 找出 vid/pidlsusb 命令
  2. 将 vid 0403 和 pid 6010 指定的现有规则更新为您当前的 vid/pid,通常规则文件在 /etc/udev/rules.d/ 下.
  3. 运行 sudo udevadm control --reload-rules 以激活.
  1. Run lsusb to find out vid/pid lsusb commands
  2. update the existing rule specified with vid 0403 and pid 6010 to your current vid/pid, usually the rule file is under /etc/udev/rules.d/.
  3. Run sudo udevadm control --reload-rules to activate.

这篇关于PlatformIO 无法打开 ftdi 设备(带有 esp32 的 Arduino)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

无法访问 C++ std::set 中对象的非常量成员函数
Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)...
2024-08-14 C/C++开发问题
17

从 lambda 构造 std::function 参数
Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)...
2024-08-14 C/C++开发问题
25

STL BigInt 类实现
STL BigInt class implementation(STL BigInt 类实现)...
2024-08-14 C/C++开发问题
3

使用 std::atomic 和 std::condition_variable 同步不可靠
Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)...
2024-08-14 C/C++开发问题
17

在 STL 中将列表元素移动到末尾
Move list element to the end in STL(在 STL 中将列表元素移动到末尾)...
2024-08-14 C/C++开发问题
9

为什么禁止对存储在 STL 容器中的类重载 operator&()?
Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)...
2024-08-14 C/C++开发问题
6