46 lines
2.0 KiB
Markdown
46 lines
2.0 KiB
Markdown
# Serial Port tool
|
|
|
|
This is a serial tool for Linux and windows.
|
|
|
|
I am a embedded sorfware developer. USART is a very common communication protocal for communication and debug. I was using Moserial Terminal and Cutecom. But I found serveral problem in these tool. So I design this tool to help embedded software developer. This tool still work in progross. The function of this tool is limited for now.
|
|
|
|
The main thing in this tool is realiable. Tool will not crash, and get correct data from serial port. Display these data correctly and completance.
|
|
|
|
## Usage
|
|
|
|
This tool support following commands. `list`, `open`, `close`, `send`, `loop`, `loopend`, `clean`, `show`, `hide`, `set`.
|
|
|
|
1. `list`: List all avaliable port in log window
|
|
2. `open <port_name>`: Open port.
|
|
3. `close`: Close port.
|
|
4. `send <data>`: Send _data_ to port.
|
|
5. `loop <data>`: Send _data_ periodic. The period show in the status bar.
|
|
6. `loopend`: Stop send _data_ periodic.
|
|
7. `clear`: Clear log and receive data windows.
|
|
8. `show <window>`: Show log or hex window. The parameter, _window_, should be `log` or `hex`.
|
|
9. `hide <window>`" Inverse operation of `show`
|
|
|
|
10. `set <name> <value>`: Change port parameter.
|
|
|
|
### Set command
|
|
|
|
Supportted settings: `baudrate`, `databit`, `parity`, `stopbit`, `flowcontrol`, `period`.
|
|
1. `baudrate`: Change baudrate. Support any value.
|
|
2. `databit`: Change databit. Support value: 5, 6, 7, 8.
|
|
3. `parity`: Change parity. Support value: 0: None, 1: Odd, 2: Even.
|
|
4. `stopbit`" Change stopit. Support value: 1, 2.
|
|
5. `flowcontrol`: Change flowcontrol. Support value: hard, soft, none.
|
|
6. `period`: Change loop send periodic. This will work after port is open. Minimum value: 10ms for Linux, 15 ms for Windows. Because operation system can not run programming in real time, this value is not accurate.
|
|
|
|
|
|
## Feature list
|
|
|
|
- [x] open port
|
|
- [x] close port
|
|
- [x] send ascii to port
|
|
- [x] view recived data as hex
|
|
- [x] change port settings
|
|
- [x] send data periodic
|
|
- [ ] record output to file
|
|
- [ ] send hex to port
|
|
- [ ] send hex periodic |