diff --git a/pages/common/picocom.md b/pages/common/picocom.md index 338581cd3a..e00a41b9e5 100644 --- a/pages/common/picocom.md +++ b/pages/common/picocom.md @@ -3,10 +3,18 @@ > Minimal program to emulate serial consoles. > More information: . +- 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: + +`` diff --git a/pages/linux/cu.md b/pages/linux/cu.md index a0ec4233df..9c112fecb1 100644 --- a/pages/linux/cu.md +++ b/pages/linux/cu.md @@ -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: diff --git a/pages/linux/minicom.md b/pages/linux/minicom.md index f17818c89f..4eab7d81c2 100644 --- a/pages/linux/minicom.md +++ b/pages/linux/minicom.md @@ -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: + +``