Hi,
I installed node-red in my Raspberry Pi, and would like to apply with Modbus TCP; however, it is not listening on port 502. Please help..
pi@raspberrypi:~ $ netstat --tcp --listening
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN
tcp 0 0 localhost:ipp 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:1880 0.0.0.0:* LISTEN
tcp 0 0 localhost:postgresql 0.0.0.0:* LISTEN
tcp6 0 0 [::]:9001 [::]:* LISTEN
tcp6 0 0 [::]:5900 [::]:* LISTEN
tcp6 0 0 [::]:http-alt [::]:* LISTEN
tcp6 0 0 [::]:http [::]:* LISTEN
tcp6 0 0 [::]:ssh [::]:* LISTEN
tcp6 0 0 localhost:ipp [::]:* LISTEN
tcp6 0 0 localhost:postgresql [::]:* LISTEN
tcp6 0 0 [::]:1883 [::]:* LISTEN
tcp6 0 0 [::]:https [::]:* LISTEN
[{"id":"5b001706.0c6338","type":"modbus-read","z":"ad821627.ea6c98","name":"mb","topic":"t1","showStatusActivities":true,"logIOActivities":false,"showErrors":true,"unitid":"","dataType":"InputRegister","adr":"0","quantity":"1","rate":"1","rateUnit":"m","delayOnStart":false,"startDelayTime":"","server":"fcf4c99f.568bd8","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":210,"y":140,"wires":[["68a762c.498449c"],[]]},{"id":"fcf4c99f.568bd8","type":"modbus-client","z":"","name":"","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":true,"tcpHost":"192.168.0.12","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"1","commandDelay":"60000","clientTimeout":"1000","reconnectTimeout":"2000"}]
node-red
6 Nov 19:07:01 - [info]
Welcome to Node-RED
6 Nov 19:07:01 - [info] Node-RED version: v0.19.5
6 Nov 19:07:01 - [info] Node.js version: v8.11.1
6 Nov 19:07:01 - [info] Linux 4.14.71-v7+ arm LE
6 Nov 19:07:03 - [info] Loading palette nodes
6 Nov 19:07:07 - [warn] [modbustcp-no-pooling-server] Deprecated call to RED.runtime.nodes.registerType - node-set name must be provided as first argument
6 Nov 19:07:07 - [warn] [modbustcp-no-pooling-write] Deprecated call to RED.runtime.nodes.registerType - node-set name must be provided as first argument
6 Nov 19:07:07 - [warn] [modbustcp-no-pooling-read] Deprecated call to RED.runtime.nodes.registerType - node-set name must be provided as first argument
6 Nov 19:07:08 - [info] Dashboard version 2.10.1 started at /ui
6 Nov 19:07:09 - [info] Settings file : /home/pi/.node-red/settings.js
6 Nov 19:07:09 - [info] Context store : 'default' [module=memory]
6 Nov 19:07:09 - [info] User directory : /home/pi/.node-red
6 Nov 19:07:09 - [warn] Projects disabled : editorTheme.projects.enabled=false
6 Nov 19:07:09 - [info] Flows file : /home/pi/.node-red/flows_frisco-pi-2.json
6 Nov 19:07:09 - [info] Server now running at http://127.0.0.1:1880/
6 Nov 19:07:09 - [warn]
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
6 Nov 19:07:09 - [info] Starting flows
6 Nov 19:07:09 - [info] Started flows