diff --git a/io/serialport/README.md b/io/serialport/README.md index c3c4a750..46c4c06d 100644 --- a/io/serialport/README.md +++ b/io/serialport/README.md @@ -95,246 +95,8 @@ changes the serial port and the configuration on the fly.
When the `enable` property is not present, it will default to `true`
-{"enable":true} or {"enable":false} will start or stop the communication.
-If `enable` is passed along wiht other parameters, the configuration will be changed and either be started or just be ready to be started(ie. stopped ) depending on its value.
+{"enable":true} or {"enable":false} will start or stop the communication. +If enable is passed along with other parameters, the configuration will be changed and the port will be either started or just be remaining ready to be started(ie. stopped) later depending on its value.
**Here is the serial control node usage example flow** - -[ - { - "id": "15bb070145462321", - "type": "inject", - "z": "53ca91fecd4b75bb", - "g": "c67578985101f329", - "name": "AC026GAO,57600", - "props": [ - { - "p": "payload" - }, - { - "p": "topic", - "vt": "str" - } - ], - "repeat": "", - "crontab": "", - "once": false, - "onceDelay": 0.1, - "topic": "", - "payload": "{\"config\":{\"newport\":\"/dev/tty.usbserial-AC026GAO\",\"serialbaud\":57600,\"databits\":8,\"parity\":\"none\",\"stopbits\":1}}", - "payloadType": "json", - "x": 250, - "y": 600, - "wires": [ - [ - "cf47565c5a2fea27" - ] - ] - }, - { - "id": "1efa4bdcfff37d75", - "type": "debug", - "z": "53ca91fecd4b75bb", - "g": "c67578985101f329", - "name": "debug 20", - "active": true, - "tosidebar": true, - "console": false, - "tostatus": false, - "complete": "true", - "targetType": "full", - "statusVal": "", - "statusType": "auto", - "x": 780, - "y": 680, - "wires": [] - }, - { - "id": "f173dab817b51d1c", - "type": "inject", - "z": "53ca91fecd4b75bb", - "g": "c67578985101f329", - "name": "usbmodem1234561", - "props": [ - { - "p": "payload" - }, - { - "p": "topic", - "vt": "str" - } - ], - "repeat": "", - "crontab": "", - "once": false, - "onceDelay": 0.1, - "topic": "", - "payload": "{\"config\":{\"newport\":\"/dev/tty.usbmodem1234561\"}}", - "payloadType": "json", - "x": 250, - "y": 640, - "wires": [ - [ - "cf47565c5a2fea27" - ] - ] - }, - { - "id": "cf47565c5a2fea27", - "type": "serial control", - "z": "53ca91fecd4b75bb", - "g": "c67578985101f329", - "name": "", - "serial": "b720bb12479b6ef1", - "x": 570, - "y": 680, - "wires": [ - [ - "1efa4bdcfff37d75" - ] - ] - }, - { - "id": "e0aeaaebcd81fd25", - "type": "inject", - "z": "53ca91fecd4b75bb", - "g": "c67578985101f329", - "name": "", - "props": [ - { - "p": "payload" - }, - { - "p": "topic", - "vt": "str" - } - ], - "repeat": "", - "crontab": "", - "once": false, - "onceDelay": 0.1, - "topic": "", - "payload": "{\"stop\":\"\"}", - "payloadType": "json", - "x": 220, - "y": 680, - "wires": [ - [ - "cf47565c5a2fea27" - ] - ] - }, - { - "id": "2118ff6fce99b134", - "type": "inject", - "z": "53ca91fecd4b75bb", - "g": "c67578985101f329", - "name": "", - "props": [ - { - "p": "payload" - }, - { - "p": "topic", - "vt": "str" - } - ], - "repeat": "", - "crontab": "", - "once": false, - "onceDelay": 0.1, - "topic": "", - "payload": "{\"start\":\"\"}", - "payloadType": "json", - "x": 220, - "y": 720, - "wires": [ - [ - "cf47565c5a2fea27" - ] - ] - }, - { - "id": "fbea9cf5dbac9f0b", - "type": "inject", - "z": "53ca91fecd4b75bb", - "g": "c67578985101f329", - "name": "", - "props": [ - { - "p": "payload" - }, - { - "p": "topic", - "vt": "str" - } - ], - "repeat": "", - "crontab": "", - "once": false, - "onceDelay": 0.1, - "topic": "", - "payload": "{\"config\":\"query\"}", - "payloadType": "json", - "x": 250, - "y": 760, - "wires": [ - [ - "cf47565c5a2fea27" - ] - ] - }, - { - "id": "673064b652dde3d2", - "type": "serial in", - "z": "53ca91fecd4b75bb", - "g": "c67578985101f329", - "name": "", - "serial": "b720bb12479b6ef1", - "x": 190, - "y": 540, - "wires": [ - [ - "13f27a28eda0df50" - ] - ] - }, - { - "id": "13f27a28eda0df50", - "type": "debug", - "z": "53ca91fecd4b75bb", - "g": "c67578985101f329", - "name": "debug 21", - "active": true, - "tosidebar": true, - "console": false, - "tostatus": false, - "complete": "false", - "statusVal": "", - "statusType": "auto", - "x": 780, - "y": 540, - "wires": [] - }, - { - "id": "b720bb12479b6ef1", - "type": "serial-port", - "name": "s1", - "serialport": "/dev/tty.usbmodem1234561", - "serialbaud": "115200", - "databits": "8", - "parity": "none", - "stopbits": "1", - "waitfor": "", - "dtr": "none", - "rts": "none", - "cts": "none", - "dsr": "none", - "newline": "\\n", - "bin": "false", - "out": "char", - "addchar": "", - "responsetimeout": "10000" - } -] - +