node-serialport-bindings-cpp/packages/terminal
Francis Gulotta df482d3af7 v9.0.2
2020-10-16 00:01:48 -04:00
..
lib fix: uncomment node shebang line in terminal package (#2023) 2020-01-28 23:16:44 -05:00
.npmignore fix: npmignore should ignore .DS_Store files (#1954) 2019-10-03 20:37:13 -04:00
CHANGELOG.md v9.0.2 2020-10-16 00:01:48 -04:00
LICENSE feat: move cli tools to their own packages (#1664) 2018-09-15 04:58:28 -04:00
package-lock.json v9.0.2 2020-10-16 00:01:48 -04:00
package.json v9.0.2 2020-10-16 00:01:48 -04:00
README.md feat: move cli tools to their own packages (#1664) 2018-09-15 04:58:28 -04:00

SerialPort Terminal

$ npx @serialport/terminal  -p <port> [options]
# or
$ npm install -g @serialport/terminal
$ serialport-terminal  -p <port> [options]

The package @serialport/terminal will install the serialport-terminal cli tool which provides a basic terminal interface for communicating over a serial port. ctrl+c will exit.

$ serialport-terminal -h

  Usage: serialport-terminal -p <port> [options]

  A basic terminal interface for communicating over a serial port. Pressing ctrl+c exits.

  Options:

    -h, --help                     output usage information
    -V, --version                  output the version number
    -l --list                      List available ports then exit
    -p, --port, --portname <port>  Path or name of serial port
    -b, --baud <baudrate>          Baud rate default: 9600
    --databits <databits>          Data bits default: 8
    --parity <parity>              Parity default: none
    --stopbits <bits>              Stop bits default: 1
    --echo --localecho             Print characters as you type them

$ serialport-terminal -l
/dev/tty.Bluetooth-Incoming-Port
/dev/tty.usbmodem1421    Arduino (www.arduino.cc)