2024-08-12 02:28:29 +10:00
|
|
|
# cu
|
|
|
|
|
|
|
|
> Call Up another system and act as a dial-in/serial terminal or perform file transfers with no error checking.
|
|
|
|
> More information: <https://manned.org/cu>.
|
|
|
|
|
|
|
|
- Open a given serial port:
|
|
|
|
|
2025-03-11 14:33:09 +02:00
|
|
|
`sudo cu --line {{/dev/ttyXYZ}}`
|
2024-08-12 02:28:29 +10:00
|
|
|
|
|
|
|
- Open a given serial port with a given baud rate:
|
|
|
|
|
2025-03-11 14:33:09 +02:00
|
|
|
`sudo cu --line {{/dev/ttyXYZ}} --speed {{115200}}`
|
2024-08-12 02:28:29 +10:00
|
|
|
|
|
|
|
- Open a given serial port with a given baud rate and echo characters locally (half-duplex mode):
|
|
|
|
|
2025-03-11 14:33:09 +02:00
|
|
|
`sudo cu --line {{/dev/ttyXYZ}} --speed {{115200}} --halfduplex`
|
2024-08-12 02:28:29 +10:00
|
|
|
|
|
|
|
- Open a given serial port with a given baud rate, parity, and no hardware or software flow control:
|
|
|
|
|
2025-03-11 14:33:09 +02:00
|
|
|
`sudo cu --line {{/dev/ttyXYZ}} --speed {{115200}} --parity={{even|odd|none}} --nortscts --nostop`
|
2024-08-12 02:28:29 +10:00
|
|
|
|
|
|
|
- Exit the `cu` session when in connection:
|
|
|
|
|
2025-03-09 14:03:08 +02:00
|
|
|
`<Enter><~><.>`
|