mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	Update README.md
This commit is contained in:
		| @@ -95,246 +95,8 @@ changes the serial port and the configuration on the fly. | ||||
| </ul> | ||||
| <p>When the `enable` property is not present, it will default to `true`</p> | ||||
| <p> | ||||
| {"enable":true} or {"enable":false} will start or stop the communication.</p> | ||||
| <p> 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.  </p> | ||||
| <b>{"enable":true}</b> or <b>{"enable":false}</b> will start or stop the communication.</p> | ||||
| <p> If <b>enable</b> 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.  </p> | ||||
|  | ||||
| **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" | ||||
|     } | ||||
| ] | ||||
|  | ||||
| <img width="775" alt="Screenshot 2023-11-21 at 3 56 39 PM" src="https://github.com/yhur/node-red-nodes/assets/13171662/a5d78d68-1a23-4419-b523-728e78a7efc5"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user