https://github.com/nocd5/serial
CLI tool for serial port connection
https://github.com/nocd5/serial
Last synced: 4 months ago
JSON representation
CLI tool for serial port connection
- Host: GitHub
- URL: https://github.com/nocd5/serial
- Owner: nocd5
- License: mit
- Created: 2015-10-04T15:57:34.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-19T01:13:40.000Z (almost 10 years ago)
- Last Synced: 2025-02-17T03:29:11.882Z (11 months ago)
- Language: Go
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# serial
CLI tool for serial port connection
## Usage
`serial -p COM3 -b 9600`
## Options
### Required
* -p / --port
Port Name
* -b / --baud
Baud Rate
### Optional
* --data
Number of Data Bits. default **8**
* --parity
Parity Mode. `none`, `even` or `odd`. default **none**
* --stop
Number of Stop Bits. default **1**
* -y / --txbin
Binary Send Mode
parse send string as byte array
##### example
```
0x56 0x78 0x9ABC
is interpreted as
[0x56, 0x78, 0xBC, 0x9A]
```
* -Y / --rxbin
Binary Receive Mode
print receive data in HEX format
##### example
if receive character 'A', "0x41" is shown
### Others
* -l / --list
List COM Ports (**Windows Only**)