← index #11422Issue #8736
Off-topic · high · value 0.392
QUERY · ISSUE

mpremote should not limit name shortcuts to 1st 4 devices

openby bulletmarkopened 2023-05-05updated 2025-09-05
enhancementtools

The mpremote help says you can use the following shortcuts:

  a0          connect to serial port "/dev/ttyACM0"
  a1          connect to serial port "/dev/ttyACM1"
  a2          connect to serial port "/dev/ttyACM2"
  a3          connect to serial port "/dev/ttyACM3"

  c0          connect to serial port "COM0"
  c1          connect to serial port "COM1"
  c2          connect to serial port "COM2"
  c3          connect to serial port "COM3"

  u0          connect to serial port "/dev/ttyUSB0"
  u1          connect to serial port "/dev/ttyUSB1"
  u2          connect to serial port "/dev/ttyUSB2"
  u3          connect to serial port "/dev/ttyUSB3"

That's good, but why limit them to 4? I had 5 devices connected so for the first 4 I could address easily, e.g. mpremote u3 but the 5th device I had to specify the full device path (because mpremote u4 is not accepted), i.e. I had to type mpremote connect /dev/ttyUSB4. Just seems like an unnecessary constraint and surely would be easy to fix.

This is using mpremote from master branch as of today (v1.20.0-50-g786013d46) .

CANDIDATE · ISSUE

mpremote commands select incorrect device

closedby abumalickopened 2022-06-07updated 2022-06-13
bug

I have difficulties to use mpremote, I use the connect command with the correct device, after that I would expect other commands to use the same device (or allow me to specify the device)

~/clock-py | master ?6 ▓▒░ mpremote connect /dev/cu.usbserial-0001                        ░▒▓ ✔ | 13s 
Connected to MicroPython at /dev/cu.usbserial-0001
Use Ctrl-] to exit this shell
div:2
load:[cd]fff0030,len:4540
ho 0 tail 12 room 4
load:0x40078000,len:12344
ho 0 tail 12 room 4
load:0x40080400,len:4124
entry 0x40080680
MicroPython v1.18 on 2022-01-17; ESP32 module with ESP32
Type "help()" for more information.
>>> %                                                                                                               
~/clock-py | master ?6 ▓▒░ mpremote repl                                              ░▒▓ ✔ | 4s 
Connected to MicroPython at /dev/cu.Bluetooth-Incoming-Port
Use Ctrl-] to exit this shell
~/clock-py | master ?6 ▓▒░ mpremote disconnect                                        ░▒▓ ✔ | 4s 
Connected to MicroPython at /dev/cu.Bluetooth-Incoming-Port
Use Ctrl-] to exit this shell

Why the disconnect command enters the shell?

fs commands hangs, without any result:

~/clock-py | master ?6 ▓▒░ mpremote fs cp boot.py :                                   ░▒▓ INT х | 11s 
  • Please provide as much information as possible about the version of MicroPython you're running, such as:
  • firmware file name: esp32-20220117-v1.18.bin
  • git commit hash: (how can I get this?)
  • port/board: /dev/cu.usbserial-0001 ESP32
  • version information shown in the REPL: MicroPython v1.18 on 2022-01-17; ESP32 module with ESP32

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied