-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
27 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# @serialport/BindingAbstract | ||
# @serialport/binding-abstract | ||
|
||
The bindings package has been renamed [`@serialport/bindings-interface`](https://www.npmjs.com/package/@serialport/bindings-interface) and it's code has been moved out of the monorepo to it's [own repository](https://github.com/serialport/bindings-interface/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# @serialport/Bindings | ||
# @serialport/bindings | ||
|
||
The bindings package has been renamed [`@serialport/bindings-cpp`](https://www.npmjs.com/package/@serialport/bindings-cpp) and it's code has been moved out of the monorepo to it's [own repository](https://github.com/serialport/bindings-cpp/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,3 @@ | ||
## SerialPort List | ||
# @serialport/list | ||
|
||
```bash | ||
$ npx @serialport/list [options] | ||
# or | ||
$ npm install -g @serialport/list | ||
$ serialport-list [options] | ||
``` | ||
|
||
The package `@serialport/list` will install the `serialport-list` cli tool which lists all available serial ports in different formats. | ||
|
||
```bash | ||
$ serialport-list -h | ||
|
||
Usage: serialport-list [options] | ||
|
||
List available serial ports | ||
|
||
Options: | ||
|
||
-h, --help output usage information | ||
-V, --version output the version number | ||
-f, --format <type> Format the output as text, json, or jsonline. default: text | ||
|
||
|
||
$ serialport-list | ||
/dev/tty.Bluetooth-Incoming-Port | ||
/dev/tty.usbmodem1421 Arduino (www.arduino.cc) | ||
|
||
$ serialport-list -f json | ||
[{"path":"/dev/tty.Bluetooth-Incoming-Port"},{"path":"/dev/tty.usbmodem1421","manufacturer":"Arduino (www.arduino.cc)","serialNumber":"752303138333518011C1","locationId":"14200000","vendorId":"2341","productId":"0043"}] | ||
|
||
$ serialport-list -f jsonline | ||
{"path":"/dev/tty.Bluetooth-Incoming-Port"} | ||
{"path":"/dev/tty.usbmodem1421","manufacturer":"Arduino (www.arduino.cc)","serialNumber":"752303138333518011C1","locationId":"14200000","vendorId":"2341","productId":"0043"} | ||
``` | ||
See our api docs https://serialport.io/docs/bin-list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# @serialport/parser-byte-length | ||
|
||
See our api docs https://serialport.io/docs/api-parser-byte-length |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# CCTalk Parser | ||
# @serialport/parser-cctalk | ||
|
||
See our api docs https://serialport.io/docs/api-parser-cctalk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# @serialport/parser-delimiter | ||
|
||
See our api docs https://serialport.io/docs/api-parser-delimiter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# @serialport/parser-inter-byte-timeout | ||
|
||
See our api docs https://serialport.io/docs/api-parser-inter-byte-timeout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Parser Packet Length | ||
# @serialport/parser-packet-length | ||
|
||
The documentation at https://serialport.io/docs/api-parser-packet-length |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# @serialport/parser-readline | ||
|
||
See our api docs See our api docs https://serialport.io/docs/api-parser-readline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# @serialport/parser-ready | ||
|
||
See our api docs https://serialport.io/docs/api-parser-ready |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# @serialport/parser-regex | ||
|
||
See our api docs https://serialport.io/docs/api-parser-regex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# @serialport/parser-slip-encoder | ||
|
||
See our api docs https://serialport.io/docs/api-parser-slip-encoder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# @serialport/parser-spacepacket | ||
|
||
See our api docs https://serialport.io/docs/api-parser-spacepacket |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,3 @@ | ||
## SerialPort Repl | ||
```bash | ||
$ npx @serialport/repl <port> | ||
# or | ||
$ npm install -g @serialport/repl | ||
$ serialport-repl <port> | ||
``` | ||
# @serialport/repl | ||
|
||
The package `@serialport/repl` will install the `serialport-repl` cli tool which provides a nodejs repl for working with serialport. This is valuable when debugging. | ||
|
||
You can make use of the `serialport-repl` command with; | ||
```bash | ||
$ serialport-repl # to auto detect an arduino | ||
$ serialport-repl /dev/tty.usbmodem1421 # to connect to a specific port | ||
``` | ||
|
||
It will load a serialport object with debugging turned on. | ||
```bash | ||
$ serialport-repl | ||
serialport:binding:auto-detect loading DarwinBinding +0ms | ||
port = SerialPort("/dev/tty.usbmodem1421", { autoOpen: false }) | ||
globals { SerialPort, portName, port } | ||
> SerialPort.list() | ||
serialport:main .list +6s | ||
[ { comName: '/dev/tty.usbmodem1421', | ||
manufacturer: 'Arduino (www.arduino.cc)', | ||
serialNumber: '752303138333518011C1', | ||
pnpId: undefined, | ||
locationId: '14200000', | ||
vendorId: '2341', | ||
productId: '0043' } ] | ||
> port.write('Calling all Autobots!') | ||
true | ||
> port.read() | ||
serialport:main _read queueing _read for after open +1m | ||
null | ||
> port.open() | ||
serialport:main opening path: /dev/tty.usbmodem1421 +30s | ||
serialport:bindings open +1ms | ||
``` | ||
See the documentation at https://serialport.io/docs/bin-repl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# SerialPort Terminal | ||
# @serialport/terminal | ||
|
||
See the documentation at https://serialport.io/docs/bin-terminal |