Serial Input - No Response

I'm just getting started with Node-RED and I'm having some issues receiving any data from a serial port.
My Setup:
-I have an old Pioneer AVR (VSX-82TXS) which can be controlled via RS232.
-I'm using Digi PortServer to connect to the Receiver as well as other items.
-I'm running Ubuntu 16.04 which creates a virtual COM PORT through the Real Port software.
-\dev\ttyps01 is the port that maps to the PortServer that is connected to the Receiver.
-user has been added to the dialout group
-Node.js v4.2.6
-Node-RED v0.19.4
-node-red-node-serialport v0.6.8

I've tested the port connecting directly to the PortServer - bypassing ubuntu / Node-RED all together - commands and responses work as expected. I then tested inside of ubuntu using screen. again, command work as expected and response returned as expected.
When I deploy my flow, I inject the command and the receiver changes as it should but the response is not received from the "serial input" I've also tested to make sure that the receiver is sending the response by monitoring the port using PuTTY while injecting the commands in my Flow. I've searched all over trying to find anyone else having the same issue but haven't had any luck.
I've tried all the different port settings for Input, trying different options such as \r \n \r\n delivering ascii and binary, after timeouts, silence, fixed lengths, etc.. no settings seem to work.Untitled

Here's the code:
[{"id":"6f3b55b4.2d955c","type":"tab","label":"Flow 2","disabled":true,"info":""},{"id":"e9e4869a.f2db28","type":"serial in","z":"6f3b55b4.2d955c","name":"","serial":"d8cacf86.7e5d3","x":90,"y":200,"wires":[["136c0d36.4f06e3"]]},{"id":"73232ada.365524","type":"serial out","z":"6f3b55b4.2d955c","name":"","serial":"d8cacf86.7e5d3","x":510,"y":100,"wires":[]},{"id":"136c0d36.4f06e3","type":"debug","z":"6f3b55b4.2d955c","name":"Response","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":500,"y":200,"wires":[]},{"id":"85c3937b.8dfe","type":"debug","z":"6f3b55b4.2d955c","name":"Command","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":510,"y":60,"wires":[]},{"id":"30561848.0c6ee8","type":"inject","z":"6f3b55b4.2d955c","name":"","topic":"","payload":"04ZT","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":80,"wires":[["46674ba8.5a1f94"]]},{"id":"4dbd1106.bcaae","type":"inject","z":"6f3b55b4.2d955c","name":"","topic":"","payload":"06ZT","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":120,"wires":[["46674ba8.5a1f94"]]},{"id":"46674ba8.5a1f94","type":"function","z":"6f3b55b4.2d955c","name":"","func":"msg.payload = msg.payload+\"\\r\"; \nreturn msg;\n//\\r - Carriage Return 0x0D - 13\n//\\n - Line Feed 0x0A - 10","outputs":1,"noerr":0,"x":290,"y":100,"wires":[["73232ada.365524","85c3937b.8dfe"]]},{"id":"d8cacf86.7e5d3","type":"serial-port","z":"","serialport":"/dev/ttyps01","serialbaud":"9600","databits":"8","parity":"none","stopbits":"1","newline":"\\r","bin":"false","out":"char","addchar":false,"responsetimeout":"10000"}]

You have an old version of node.js - try updating to v8.x

Thanks, that did the trick. Had to uninstall and reinstall a few of the nodes I had downloaded but it's all working now.

2 Likes