Console From Linux Workstation: Difference between revisions

From embeddedTS Manuals
(Removed "COM" usage as that is not linux nomenclature. Cleaned up formatting, removed redundant text, etc.)
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
''' Console from Linux '''
''' 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.
There are many serial terminal applications for Linux, three common used applications are <source inline>picocom</source>, <source inline>screen</source>, and <source inline>minicom</source>. 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.
<source inline>picocom</source> is a very small and simple client.
<source lang=bash>
<source lang=bash>
picocom -b 115200 /dev/ttyUSB0
sudo picocom -b 115200 /dev/ttyUSB0
</source>
</source>


 
<source inline>screen</source> is a terminal multiplexer which happens to have serial support.
'screen' is a terminal multiplexer which happens to have serial support.
<source lang=bash>
<source lang=bash>
screen /dev/ttyUSB0 115200
sudo screen /dev/ttyUSB0 115200
</source>
</source>


 
Or a very commonly used client is <source inline>minicom</source> which is quite powerful but requires some setup:
Or a very commonly used client is 'minicom' which is quite powerful but requires some setup:
<source lang=bash>
<source lang=bash>
minicom -s
sudo minicom -s
</source>
</source>
*Navigate to 'serial port setup'
*Navigate to 'serial port setup'
*Type "a" and change location of serial device to '/dev/ttyUSB0' then hit "enter"
*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:
*If needed, modify the settings to match this and hit "esc" when done:
       E - Bps/Par/Bits          : 115200 8N1
       E - Bps/Par/Bits          : 115200 8N1

Latest revision as of 13:31, 22 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.

sudo picocom -b 115200 /dev/ttyUSB0

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

sudo screen /dev/ttyUSB0 115200

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

sudo 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"