2021-09-26 16:38:56 -04:00

88 lines
1.6 KiB
Markdown

# Serial Port tool
This is a serial tool for Linux and windows.
## Motivation
I am a embedded sorfware developer. Usart is a very common communication protocal which used for debug.
I was using `Moserial Terminal` and `cutecom`. But I found serveral problem when I was using these tools.
So I write this tool to help embedded software developer. This tool may not have all function you need, it only design for personal use.
It will contain all function I need. If you requst some function and I think it is useful I will add it to TODO list.
## Usage
1. Only 1 input window. All function are provide by input command.
Following command are support now.
### set commnad
Command `set` used for setup port configuration
```
set baudrate 115200
set databit 8
set parity 0 // None
set stopbit 1
```
### open command
Command `open` used for open serialport
For Linux system, the port looks like `/dev/ttyUSB0`. We don't need type `/dev/tty`
Example for Linux System
```
open USB0
```
Example for Windows System
```
open COM0
```
### close command
command `close` used for close an opened serial port.
### list command
Command `list` used for list all avaliable port
### send command
Command `send` used for send message to port
```
send hello world // "hello world" will send to port
```
### clean command
Command `clean` used for clean ReceiveView and LogView
```
clean log
clean rec
```
## feature list
port function
- [x] open port
- [x] close port
- [x] send ascii to port
- [ ] send hex to port
- [ ] save output to port
- [ ] view recived data as hex
ui function
- [ ] show recived data as hex
- [ ] clean command