node-red-nodes icon indicating copy to clipboard operation
node-red-nodes copied to clipboard

Serialport: "not connected" will not be sent from status node

Open sniicker opened this issue 3 years ago • 10 comments

Which node are you reporting an issue on?

node-red-node-serialport

What are the steps to reproduce?

image

Set an unused COM Port!

[{"id":"8f77ef3358816793","type":"serial in","z":"14972ae43ba3a3f1","name":"","serial":"1b909dd2b3f2dc6e","x":250,"y":1820,"wires":[["17b4a55b44609a6f"]]},{"id":"17b4a55b44609a6f","type":"debug","z":"14972ae43ba3a3f1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":390,"y":1820,"wires":[]},{"id":"4490c6afdf741d52","type":"status","z":"14972ae43ba3a3f1","name":"","scope":["8f77ef3358816793"],"x":240,"y":1880,"wires":[["fb90753a624cf048"]]},{"id":"fb90753a624cf048","type":"debug","z":"14972ae43ba3a3f1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":390,"y":1880,"wires":[]},{"id":"1b909dd2b3f2dc6e","type":"serial-port","serialport":"COM3","serialbaud":"115200","databits":"8","parity":"none","stopbits":"1","waitfor":"","dtr":"none","rts":"none","cts":"none","dsr":"none","newline":"0xd","bin":"false","out":"char","addchar":"0x0D","responsetimeout":"10000"}]

What happens?

I get an error msg in the debug window but no msg from the status node. Also no msg from catch node. So in this case i get no information and cannot pull further actions.

What do you expect to happen?

A msg "Not connected" from the status node, so i can send an email, telegram ...

Please tell us about your environment:

  • [x] Node-RED version: v2.2.2
  • [x] node.js version: v16.14.0
  • [ ] npm version:
  • [x] Platform/OS: win10
  • [x] Browser: chrome

sniicker avatar Mar 03 '22 12:03 sniicker

Anything new on this topic ?

softy2k avatar Feb 27 '24 05:02 softy2k

Same issue. Openwrt 19.07.7 NPM 6.14.18 Node.js v14.19.3 Node-Red 2.2.2

mili2057 avatar Feb 27 '24 06:02 mili2057

NodeRed 3.1.5, but no fix (yet)

softy2k avatar Feb 28 '24 13:02 softy2k

Node-RED v3.1.9, no fix yet

samyakdoshi5 avatar May 05 '24 18:05 samyakdoshi5

@softy2k @samyakdoshi5 the node-red version is irrelevant.

Please feel free to submit a pull request against the node-red-node-serial node to implement the behaviour if you have a need for it

hardillb avatar May 05 '24 18:05 hardillb

@hardillb I don't know what a pull request is, or how to do that :(

I'm new, and I wanted to make a project that requires me to display a popup when the serial port is disconnected.

samyakdoshi5 avatar May 05 '24 18:05 samyakdoshi5