ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Tools: uploader: open serial port in exclusive mode

Open Williangalvani opened this issue 3 months ago • 2 comments

This helps preventing other software from attempting to use the serial ports while flashing a new firmware

Williangalvani avatar Nov 09 '25 17:11 Williangalvani

This helps preventing other software from attempting to use the serial ports while flashing a new firmware

Does this break if MAVProxy currently has that port open?

peterbarker avatar Nov 09 '25 22:11 peterbarker

This helps preventing other software from attempting to use the serial ports while flashing a new firmware

Does this break if MAVProxy currently has that port open?

No, this will only fail if both pyserial instances try to open the port using exclusive=True, which mavproxy doesn't

Williangalvani avatar Dec 04 '25 16:12 Williangalvani

It only prevents another instance of pyserial from opening a new "exclusive=True" instance on the same port: (The top panel opened the port before the second panel, and kept it open)

Screenshot 2025-12-16 at 12 57 04

Williangalvani avatar Dec 16 '25 15:12 Williangalvani