This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NMEA0183 to Node-red
#1
I am stuck trying to get "raw" NMEA0183 sentences into Node-red.  When I try to listen to TCP:10110, I get the following message: 

unable to listen on port 10110, error: Error: listen EADDRINUSE: address already in use :::10110

I am able to see messages using the SignalK subscribe node without issue. For example, naviagation.datetime is providing time every second consistently. However, I need the raw NMEA0183 messages such as $GPZDA,hhmmss.ss,dd,mm,yyyy,xx,yy*CC so that I can pass on sentences on to my VHF and ST6000 autopilot.  I am using the Pi as a multiplexer.  The Pi will receive message from my wind sensor and AIS and then share them with the VHF and autopilot wirelessly.  

In the terminal, I am able to use sudo cat /dev/ttyACM0 and can see the NMEA sentences coming in.  However when I try to use a Serial In node in node-red, I receive the following message:

"[serialconfig:8de97bce.607f8] serial port /dev/ttyACM0 error: Error: Error: No such file or directory, cannot open /dev/ttyACM0"

I was hoping that this plug-in:  https://github.com/vokkim/nmea0183-to-nmea0183  would be the answer however I am lost at the first step.  How does one Add NMEA0183 provider to SignalK configuration with a SentenceEvent option?

My node-red flow is here:

Code:
[{"id":"747f7d52.c16794","type":"tab","label":"NMEAtoLittlefish","disabled":false,"info":""},{"id":"ca23868f.91c048","type":"debug","z":"747f7d52.c16794","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1050,"y":520,"wires":[]},{"id":"5678c25036126b3c","type":"signalk-subscribe","z":"747f7d52.c16794","name":"navigation.position","mode":"sendAll","flatten":true,"context":"vessels.self","path":"navigation.position","source":"","period":1000,"x":270,"y":180,"wires":[["899e7b9d9c1cbcb0","3f4076b11cd86cd8"]]},{"id":"3f4076b11cd86cd8","type":"function","z":"747f7d52.c16794","name":"Parse latitude","func":"msg.payload = msg.payload.latitude;\nif (msg.payload == null) {\n    msg.payload = 0.0000;}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":880,"y":160,"wires":[["43701776c094db98"]]},{"id":"899e7b9d9c1cbcb0","type":"function","z":"747f7d52.c16794","name":"Parse longitude","func":"msg.payload = msg.payload.longitude;\nif (msg.payload == null) {\n    msg.payload = 0.0000;}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":920,"y":240,"wires":[["a507887d3a1f697b"]]},{"id":"43701776c094db98","type":"function","z":"747f7d52.c16794","name":"To 4 Decimals","func":"num = msg.payload;\nmsg.payload = (Number(num.toFixed(4)));\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1120,"y":180,"wires":[[]]},{"id":"a507887d3a1f697b","type":"function","z":"747f7d52.c16794","name":"To 4 Decimals","func":"num = msg.payload;\nmsg.payload = (Number(num.toFixed(4)));\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1140,"y":280,"wires":[[]]},{"id":"8f629daa34ae3b01","type":"signalk-subscribe","z":"747f7d52.c16794","name":"navigation.datetime","mode":"sendAll","flatten":true,"context":"vessels.self","path":"navigation.datetime","source":"","period":1000,"x":310,"y":460,"wires":[[]]},{"id":"e5c1b046ade9a232","type":"tcp in","z":"747f7d52.c16794","name":"","server":"server","host":"","port":"10110","datamode":"stream","datatype":"utf8","newline":"","topic":"","base64":false,"x":290,"y":640,"wires":[["ca23868f.91c048"]]},{"id":"f3056d9b82df405b","type":"serial in","z":"747f7d52.c16794","name":"","serial":"8de97bce.607f8","x":300,"y":780,"wires":[["ca23868f.91c048"]]},{"id":"8de97bce.607f8","type":"serial-port","serialport":" /dev/ttyACM0","serialbaud":"38400","databits":"8","parity":"none","stopbits":"1","waitfor":"","dtr":"none","rts":"none","cts":"none","dsr":"none","newline":"\\n","bin":"false","out":"char","addchar":"","responsetimeout":"10000"}]


Thank you for any help you can offer!  I have been trying solutions for the last three hours and am banging my head.
Reply


Messages In This Thread
NMEA0183 to Node-red - by La Zorra - 2022-04-03, 05:11 PM
RE: NMEA0183 to Node-red - by La Zorra - 2022-04-03, 09:25 PM
RE: NMEA0183 to Node-red - by PaddyB - 2022-04-04, 10:48 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)