Differences between revisions 2 and 3
Revision 2 as of 2015-08-17 01:58:05
Size: 346
Editor: CarlNobile
Comment:
Revision 3 as of 2015-08-17 02:01:36
Size: 1182
Editor: CarlNobile
Comment:
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:

{{{
$ ./sterm.py -h
usage: sterm.py [-h] [-b BAUD] [-c CSVFILE] [-D] [-d DEVICE] [-l] [-n]
                [-s STREAM]

Serial console

optional arguments:
  -h, --help show this help message and exit
  -b BAUD, --baud BAUD Baud rate number, use -l to display available baud
                        rates.
  -c CSVFILE, --csv CSVFILE
                        CSV output filename
  -D, --debug Debug output
  -d DEVICE, --device DEVICE
                        Serial device
  -l, --blist List available baud rates.
  -n, --line-numbers Prefix line numbers to each line.
  -s STREAM, --stream STREAM
                        Raw stream filename
}}}

The current baud rate list:

{{{
$ ./sterm.py -l
1 4800
2 9600
3 19200
4 38400
5 57600
6 115200
7 230400
8 250000
}}}

Python Serial Terminal

This is a simple serial terminal program.

Features

  1. Generates a CSV file from the serial data.
  2. Add line numbers to the screen and CSV output.
  3. Set baud rate.
  4. Set serial device.
  5. Set output stream, default is current display terminal.

Serial Terminal

$ ./sterm.py -h
usage: sterm.py [-h] [-b BAUD] [-c CSVFILE] [-D] [-d DEVICE] [-l] [-n]
                [-s STREAM]

Serial console

optional arguments:
  -h, --help            show this help message and exit
  -b BAUD, --baud BAUD  Baud rate number, use -l to display available baud
                        rates.
  -c CSVFILE, --csv CSVFILE
                        CSV output filename
  -D, --debug           Debug output
  -d DEVICE, --device DEVICE
                        Serial device
  -l, --blist           List available baud rates.
  -n, --line-numbers    Prefix line numbers to each line.
  -s STREAM, --stream STREAM
                        Raw stream filename

The current baud rate list:

$ ./sterm.py -l
1 4800
2 9600
3 19200
4 38400
5 57600
6 115200
7 230400
8 250000

PythonTerminal (last edited 2015-08-31 14:38:06 by CarlNobile)