A small debug tool for serial port programming.
sudo pip install SerialTool
SerailTool -s com baudrate databits parity stopbits types types
- -s: save the current port configuration as default option
- com: the serial port device name
- baudrate: any standard baudrate, such as 9600, 115200, etc.
- databits: 5,6,7,8
- parity: N,E
- stopbits: 1,1.5,2
- types: Optional, TX data type, string or hex, default is string if this parameter is null.
- types: Optional, RX data type, string or hex, default is string if this parameter is null.
SerialTool /dev/ttyUSB0 115200 8 N 1