How to send some text to the Arduion via a Serial monitor?
The Arduino IDE has a “Serial monitor” with an input line, and in VS Code + platformio I can’t enter anything there. Ctrl + C/T/H key combinations do not work.
The serial monitor is just miniterm.py
that is auto-started by PlatformIO. Read its documentation to get familiar with it: Tools — pySerial 3.4 documentation
In the platformio.ini
, you can configure several options for miniterm, as they are documented here: Redirecting...
In miniterm.py
, the characters are sent as you type (by default; this is also changable, see post below). The line ending is controlled by the --eol
option, which is by default "ENTER sends CRLF"
(\r\n
), as per docs above.
Ctrl + 5 to exit. Can also be controlled by the --exit-char=<num>
parameter.
You are also always free to use a different serial monitor tool like hterm.
Have a read here: Is there anyway to send manually typing messages to arduino through serial port in platformio? - #16 by NormanDunbar
And also here, further up the thread: Is there anyway to send manually typing messages to arduino through serial port in platformio? - #2 by NormanDunbar
Those should help. As indeed the whole thread will.
Failing that, pop back again.
Cheers,
Norm.
Thanks for help <3
Solved.