micro-ROS / micro-ROS/micro_ros_setup

How to specify an override for the default serial port used for flashing firmware via flash_firmware.sh?

未关闭
#450 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Shell
星标
509
派生
183
平均合并
22 小时 26 分钟
30 天内合并 PR
7

描述

Issue template

  • Hardware description: Ubuntu 20.04 (Agent), ESP32 (Client)
  • RTOS: FreeRTOS
  • Installation type: micro_ros_setup flash_firmware.sh
  • Version or commit hash: galactic
Steps to reproduce the issue

Running ros2 run micro_ros_setup flash_firmware.sh defaults to the first available USB serial port. However, if I have a few MCUs connected -- say USB0, USB1, USB2 -- and I only want to flash the one connected to USB1, how would I go about doing this?

Expected behavior

flash_firmware.sh should offer an option (eg, --dev /dev/ttyUSB1) to flash to a particular port

Actual behavior

No such option exists. flash_firmware.sh flashes to the first available USB port

Additional information

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先检查 flash_firmware.sh 和入口点 ros2 run micro_ros_setup flash_firmware.sh,了解默认 USB 串行端口是如何选择的。添加传入诸如 /dev/ttyUSB1 之类设备的方式,然后验证在连接多个 USB 设备时,刷写会针对请求的端口。

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
cli, embedded-iot
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。