create_session
Create a terminal session on an open serial port for interactive communication with serial devices. Configure line ending type and local echo to match your device's requirements.
Instructions
在已打开串口上创建终端会话,支持配置换行符和本地回显
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | 串口路径,如 /dev/ttyUSB0 或 COM1 | |
| line_ending | No | 换行符类型:CR(回车)、LF(换行)、CRLF(回车换行) | CRLF |
| local_echo | No | 是否本地回显发送的命令 | |
| buffer_size | No | 输出缓冲区大小(字节),默认 64KB |