中文说明请移步:grid650 Array模块串口通信工具 文档
- Custom text modification (introduced in v1.0.0)
- Validation of text input
- Time sync (introduced in v1.0.1)
- System performance info sync
You can use this config to map your device and http server settings.
The example config looks like this:
http:
listen: "0.0.0.0:80"
tls:
enable: false
listen: "0.0.0.0:443"
certificate_chain: "/path/to/your/cert.pem"
private_key: "/path/to/your/cert.pem"
device:
name: "/dev/tty.usbmodem14233301"
baud: 115200
http
defines http server info, tls supported (not impl yet).device
defines which grid650 needs to connect with.
TBD
You can find your grid650 device with following steps:
- plug your grid650
- open
Terminal.app
(oriTerm2.app
) - locate your device by commanding
ls -l /dev/tty*
- you should see a bunch of entry in the terminal
- locate something like
tty.usbmodem14233301
(number section may various depending on your device) - assemble your device name as
/dev/tty.usbmodem14233301
and fill to config - fill baud in device section, grid650 array serial bit rate should be 115200 according to the user manual
TBD
TBD
$ ./grid650-array-serial
grid 650 array module serial-comm server
Usage:
grid650-array-serial [flags]
grid650-array-serial [command]
Available Commands:
config Print config parse result
help Help about any command
send Send one custom text to the grid650 array device
version Print version information
Flags:
--baud int Specific device bit rate [env BAUD]
--config string Specific config file path. (default "../config/config.yaml")
--device string Specific device tty [env DEVICE] (default "/dev/tty.usbmodem14233301")
-d, --environment-development-mode change environment mode to development [env ENVIRONMENT_DEVELOPMENT_MODE]
-j, --environment-json-log-style change log style to JSON [env ENVIRONMENT_JSON_LOG_STYLE]
-h, --help help for grid650-array-serial
--http-listen string Specific http listen address. (default "0.0.0.0:80")
Use "grid650-array-serial [command] --help" for more information about a command.
Send text as custom text:
./grid650-array-serial send "i am grid650"
Any contribution are welcome. Please submit a pull request for feature implementation.
If you have question, please don't hesitate to open an issue.
make
bin/grid650-array-serial help
The English version of documents are not available at this time.