# Serial_Monitor **Repository Path**: toumingyu/serial_monitor ## Basic Information - **Project Name**: Serial_Monitor - **Description**: 基于命令行终端的串口调试工具,可以显示彩色字符,使用python编写。模仿乐鑫idf.py命令行串口工具实现,可替代SecureCRT、Xshell等具有串口终端调试功能的工具。 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-26 - **Last Updated**: 2024-11-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # serial_monitor #### 介绍 基于命令行终端的串口调试工具,可以显示彩色字符,使用python编写。 模仿乐鑫idf.py命令行串口工具实现,可替代SecureCRT、Xshell等具有串口终端调试功能的工具。 #### 缺省的模块安装 ```bash pip install pyserial -i https://pypi.tuna.tsinghua.edu.cn/simple ``` ```bash pip install keyboard -i https://pypi.tuna.tsinghua.edu.cn/simple ``` #### 彩色输出编码 \x1b[30m - 黑 \x1b[31m - 红 \x1b[32m - 绿 \x1b[33m - 黄 \x1b[34m - 蓝 \x1b[35m - 紫 \x1b[36m - 天蓝 \x1b[37m - 白 #### 命令行示例: #### Windows ```bash python serial_monitor.py -p COM3 -b 115200 -f utf-8 ``` #### Linux ```bash python3 serial_monitor.py -p /dev/ttyUSB0 -b 115200 -f utf-8 ``` #### 端口示例: windows -- COM3 linux -- /dev/ttyUSB0 #### 波特率示例: 9600 19200 38400 57600 115200 等等 #### 编码格式示例: ansi(兼容gb2312) gbk(兼容gb2312) utf-8