user41468: I have an arduino uno connected via USB to a raspberry pi, the raspi is accessible via ssh only.
Just started a bit with arduino-cli ; I upload a sketch which reads my analog pins. How can I access the serial monitor to get the data??

user72120: I also had the problem that arduino-cli includes no serial monitor. I tried out screen, minicom and other but they are a bit difficult to get used with them. So I created a small python script which works as an serial monitor in the command line:
https://github.com/PBahner/Serial-Monitor

user4143: I use minicom.
$ sudo apt-get install minicom
... blah blah blah ...
$ minicom -D /dev/ttyACM0 -b 115200

Minicom can take a bit of getting used to. Use CTRL-A to initiate a command sequence. CTRL-A X is exit. CTRL-A O is configuration ("Options") where you can configure flow control and such.
Many people also use screen to do the same job, but I like the interface that minicom gives - it's more terminal-like.

user7508: Programs such as screen, minicom or (my favorite)
picocom are useful if you want bidirectional communication
between the Arduino and the host computer. If you only want to read
what the Arduino sends, that can be done with cat:
stty -F /dev/ttyACM0 raw 115200
cat /dev/ttyACM0


41468: <p>I have an arduino uno connected via USB to a raspberry pi, the raspi is accessible via ssh only.</p>
<p>Just started a bit with arduino-cli ; I upload a sketch which reads my analog pins. How can I access the serial monitor to get the data??</p>
 72120: <p>I also had the problem that arduino-cli includes no serial monitor. I tried out screen, minicom and other but they are a bit difficult to get used with them. So I created a small python script which works as an serial monitor in the command line:
<a href="https://github.com/PBahner/Serial-Monitor" rel="nofollow noreferrer">https://github.com/PBahner/Serial-Monitor</a></p>
 4143: <p>I use <code>minicom</code>.</p>
<pre><code>$ sudo apt-get install minicom
... blah blah blah ...
$ minicom -D /dev/ttyACM0 -b 115200
</code></pre>
<p>Minicom can take a bit of getting used to. Use <code>CTRL-A</code> to initiate a command sequence. <code>CTRL-A X</code> is exit. <code>CTRL-A O</code> is configuration (&quot;<em>O</em>ptions&quot;) where you can configure flow control and such.</p>
<p>Many people also use <code>screen</code> to do the same job, but I like the interface that <code>minicom</code> gives - it's more terminal-like.</p>
 7508: <p>Programs such as <code>screen</code>, <code>minicom</code> or (my favorite)
<a href="https://github.com/npat-efault/picocom" rel="noreferrer"><code>picocom</code></a> are useful if you want bidirectional communication
between the Arduino and the host computer. If you only want to <em>read</em>
what the Arduino sends, that can be done with <code>cat</code>:</p>
<pre><code>stty -F /dev/ttyACM0 raw 115200
cat /dev/ttyACM0
</code></pre>
