Skip to main content
Arduino

Return to Question

minor clarity in title
Link

Terminal read-only serial monitor w/owithout blocking serial port for sketch upload

Bumped by Community user
Bumped by Community user
Source Link
eudoxos
  • 169
  • 1
  • 9

Terminal read-only serial monitor w/o blocking serial port for sketch upload

I would like to have all serial output from Arduino (nano) dumped to the terminal in Linux, without blocking the serial port for uploading new sketch version (for quick debugging loop), when using Arduino-Makefile:

[Errno 16] could not open port /dev/ttyUSB0: [Errno 16] Device or resource busy: '/dev/ttyUSB0'

Is there something made for that already? I did read about 10 related questions here and elsewhere (using screen, socat and others) but none of them deals with the question how to not block the port.

I might eventually code something in Python, which will disconnect when signalled and reconnect again after a few seconds (I use custom Makefile for the upload) and I imagine Arduino's IDE serial monitor does something similar.

Other pointers on how to solve the issue are appreciated!

AltStyle によって変換されたページ (->オリジナル) /