← 返回命令列表

Linux command

picocom 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Connect to serial port

picocom [/dev/ttyUSB0]

Connect with baud rate

picocom -b [115200] [/dev/ttyUSB0]

Connect with flow control

picocom -f h [/dev/ttyUSB0]

Connect with parity

picocom -y e [/dev/ttyUSB0]

Enable local echo

picocom -c [/dev/ttyUSB0]

Log session to file

picocom -g [log.txt] [/dev/ttyUSB0]

说明

picocom is a minimal serial port terminal emulator. It provides basic communication with serial devices like microcontrollers, routers, and embedded systems. The tool focuses on simplicity and reliability, useful for debugging and configuring serial devices.

参数

-b, --baud _baud_
Baud rate (default 9600).
-f, --flow _x|h|n_
Flow control: x=xon/xoff (software), h=hardware (RTS/CTS), n=none.
-y, --parity _e|o|n_
Parity: e=even, o=odd, n=none.
-d, --databits _5-8_
Data bits (5, 6, 7, or 8).
-p, --stopbits _1|2_
Stop bits (1 or 2).
-e, --escape _char_
Escape character (default: a, meaning C-a).
-c, --echo
Enable local echo.
-g, --logfile _file_
Log serial I/O to file.
-t, --initstring _str_
Send initialization string after opening port.
-i, --noinit
Skip port initialization on startup.
-r, --noreset
Don't reset the port on exit.
-q, --quiet
Quiet mode.
-s, --send-cmd _cmd_
External program for file sending (default: sz -vv).
-v, --receive-cmd _cmd_
External program for file receiving (default: rz -vv).

FAQ

What is the picocom command used for?

picocom is a minimal serial port terminal emulator. It provides basic communication with serial devices like microcontrollers, routers, and embedded systems. The tool focuses on simplicity and reliability, useful for debugging and configuring serial devices.

How do I run a basic picocom example?

Run `picocom [/dev/ttyUSB0]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -b, --baud _baud_ do in picocom?

Baud rate (default 9600).