1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-02 00:35:23 +02:00

minicom, picocom, cu: add examples, sudo and generalize TTY names (#15870)

This commit is contained in:
Managor 2025-03-11 14:33:09 +02:00 committed by GitHub
parent 8768f5b4da
commit 28cadb59f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 9 deletions

View file

@ -3,10 +3,18 @@
> Minimal program to emulate serial consoles.
> More information: <https://manned.org/picocom>.
- Connect to a serial console with the default baud rate of 9600:
`sudo picocom {{/dev/ttyXYZ}}`
- Connect to a serial console with a specified baud rate:
`picocom {{/dev/ttyXYZ}} --baud {{baud_rate}}`
`sudo picocom {{/dev/ttyXYZ}} --baud {{baud_rate}}`
- Map special characters (e.g. `LF` to `CRLF`):
`picocom {{/dev/ttyXYZ}} --imap {{lfcrlf}}`
`sudo picocom {{/dev/ttyXYZ}} --imap {{lfcrlf}}`
- Exit picocom:
`<Ctrl a><Ctrl x>`

View file

@ -5,19 +5,19 @@
- Open a given serial port:
`sudo cu --line {{/dev/ttyUSB0}}`
`sudo cu --line {{/dev/ttyXYZ}}`
- Open a given serial port with a given baud rate:
`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}}`
`sudo cu --line {{/dev/ttyXYZ}} --speed {{115200}}`
- Open a given serial port with a given baud rate and echo characters locally (half-duplex mode):
`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}} --halfduplex`
`sudo cu --line {{/dev/ttyXYZ}} --speed {{115200}} --halfduplex`
- Open a given serial port with a given baud rate, parity, and no hardware or software flow control:
`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}} --parity={{even|odd|none}} --nortscts --nostop`
`sudo cu --line {{/dev/ttyXYZ}} --speed {{115200}} --parity={{even|odd|none}} --nortscts --nostop`
- Exit the `cu` session when in connection:

View file

@ -5,12 +5,16 @@
- Open a given serial port:
`sudo minicom --device {{/dev/ttyUSB0}}`
`sudo minicom --device {{/dev/ttyXYZ}}`
- Open a given serial port with a given baud rate:
`sudo minicom --device {{/dev/ttyUSB0}} --baudrate {{115200}}`
`sudo minicom --device {{/dev/ttyXYZ}} --baudrate {{115200}}`
- Enter the configuration menu before communicating with a given serial port:
`sudo minicom --device {{/dev/ttyUSB0}} --setup`
`sudo minicom --device {{/dev/ttyXYZ}} --setup`
- Exit minicom:
`<Ctrl a><x><Enter>`