Console From Linux Workstation: Difference between revisions

From embeddedTS Manuals
No edit summary
(Adding ACM0 breaks non-Renesas boards; {{Console_From_Linux_Workstation|USB0}} will now omit ACM0 references)
Line 4: Line 4:
There are many serial terminal applications for Linux, three common used applications are 'picocom', 'screen', and 'minicom'.  These examples demonstrate all three applications and assume that the serial device is "/dev/ttyUSB0" which is common for USB adapters. Be sure to replace the serial device string with that of the device on your workstation.
There are many serial terminal applications for Linux, three common used applications are 'picocom', 'screen', and 'minicom'.  These examples demonstrate all three applications and assume that the serial device is "/dev/ttyUSB0" which is common for USB adapters. Be sure to replace the serial device string with that of the device on your workstation.


{{#ifeq: {{{1}}} | USB0 |
'picocom' is a very small and simple client.
<source lang=bash>
picocom -b 115200 /dev/ttyUSB0
</source>
'screen' is a terminal multiplexer which happens to have serial support.
<source lang=bash>
screen /dev/ttyUSB0 115200
</source>
|
'picocom' is a very small and simple client.
'picocom' is a very small and simple client.
<source lang=bash>
<source lang=bash>
Line 13: Line 24:
picocom -b 115200 /dev/ttyACM0
picocom -b 115200 /dev/ttyACM0
</source>
</source>


'screen' is a terminal multiplexer which happens to have serial support.
'screen' is a terminal multiplexer which happens to have serial support.
Line 24: Line 34:
screen /dev/ttyACM0 115200
screen /dev/ttyACM0 115200
</source>
</source>
 
}}


Or a very commonly used client is 'minicom' which is quite powerful but requires some setup:
Or a very commonly used client is 'minicom' which is quite powerful but requires some setup:

Revision as of 16:48, 21 April 2024

Console from Linux

There are many serial terminal applications for Linux, three common used applications are 'picocom', 'screen', and 'minicom'. These examples demonstrate all three applications and assume that the serial device is "/dev/ttyUSB0" which is common for USB adapters. Be sure to replace the serial device string with that of the device on your workstation.

'picocom' is a very small and simple client.

picocom -b 115200 /dev/ttyUSB0

For Rev C hardware or newer.

picocom -b 115200 /dev/ttyACM0

'screen' is a terminal multiplexer which happens to have serial support.

screen /dev/ttyUSB0 115200

For Rev C hardware or newer.

screen /dev/ttyACM0 115200

Or a very commonly used client is 'minicom' which is quite powerful but requires some setup:

minicom -s
  • Navigate to 'serial port setup'
  • Type "a" and change location of serial device to '/dev/ttyUSB0' then hit "enter"
  • If needed, modify the settings to match this and hit "esc" when done:
     E - Bps/Par/Bits          : 115200 8N1
     F - Hardware Flow Control : No
     G - Software Flow Control : No
  • Navigate to 'Save setup as dfl', hit "enter", and then "esc"