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:
parent
8768f5b4da
commit
28cadb59f7
3 changed files with 21 additions and 9 deletions
|
@ -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>`
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
|
@ -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>`
|
||||
|
|
Loading…
Add table
Reference in a new issue