NMEA2000 problems after upgrading to SignalK 2.0?

129 views
Skip to first unread message

Andy Barrow

unread,
Jul 2, 2023, 7:14:31 PM7/2/23
to Signal K

I just upgraded to SignalK 2 on Raspberry Pi, via OpenPlotter. N2K connection via a Innomaker RS485/CAN hat. System was working perfectly before upgrade of SignalK to V2. I'm using canbus. I tried canbusjs, but the system stopped receiving data.

Now, it appears that there is no outbound N2K on the CAN bus. The connection is good on the RPI, I can see it via ifconfig command . But, ifconfig reports RX data but no TX data. Also, when I look at OpenCPN, the data that is being generated by N2K devices is being shown on screen (GPS, Depth, etc.). Also NMEA0183 wind and derived data True Wind is coming in to OpenCPN via SignalK. It's just not going out as NMEA2000.

Checked log on signalk-to-nmea2000 and I can definitely see the server is generating PGNs. They just don't appear to be going out the CAN port. When I tell my B&G Triton2 display to search for sources, it doesn't find the RPI at all.

Any thoughts on what I might do to troubleshoot this?

Steve Berl

unread,
Jul 11, 2023, 5:24:38 PM7/11/23
to sig...@googlegroups.com

I just upgraded and am also having trouble. I am not receiving any n2k traffic on signals

candump shows lots of messages getting to my RPi, but nothing in signalk.

Steve



--
You received this message because you are subscribed to the Google Groups "Signal K" group.
To unsubscribe from this group and stop receiving emails from it, send an email to signalk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/signalk/6dd6fb08-82d0-4603-8f4b-80765cbf9901n%40googlegroups.com.
--
-steve

Andy Barrow

unread,
Jul 11, 2023, 7:15:14 PM7/11/23
to Signal K
I've tried three different CAN Hats, and a CANABLE USB dongle. That's after completely wiping my system and installing clean OpenPlotter, then upgrading SignalK, deleting the node directory and resistalling. Nothing. I see signalk-to-NMEA2000 doing it's thing in the server log, but there is nothing coming out of the CAN port, nor is there any indication of traffic on the SignalK dashboard.

I've been at this for days. I'm stumped.

Steve Berl

unread,
Jul 11, 2023, 10:39:25 PM7/11/23
to sig...@googlegroups.com
I'm only trying to receive N2K with a PICAM-M on my Raspberry Pi.
As I said, the data is coming into the computer. I can see it with candump. But signalk isn't seeing any of it.
Other data coming from USB (Victron battery monitor) and directly attached BME280 (temp/hum/pressure) are working fine.
Just the N2K data is not coming in. 
This has worked correctly for a long time now. Something in the update to signalk 2.0 broke it.

Steve



--
-steve

Bradford Harley

unread,
Jul 12, 2023, 12:16:01 PM7/12/23
to Robin Szemeti
I am using an actisense N2k to USB adapter and it works fine with Signalk 2.0.   I have not tried generating N2k frames though, but it would be easy enough to do.  I am using canboatjs.   IIRC, I had to also update node to the latest...
From the emails, it seems some can't send, some can't receive... 
Brad 

Teppo Kurki

unread,
Jul 13, 2023, 9:57:58 AM7/13/23
to sig...@googlegroups.com
Andy, if you can arrange remote access to your system I’d be interested in looking into this sometime next week. Ping me in Slack if you’re interested.

Steve Berl

unread,
Jul 13, 2023, 1:48:48 PM7/13/23
to sig...@googlegroups.com
I've upgraded my nodejs to latest (v20.4.0).
Now from systemctl status signalk I seeand error starting a child process for canbus.js



--
-steve

Steve Berl

unread,
Jul 13, 2023, 1:50:47 PM7/13/23
to sig...@googlegroups.com
Opps. fat fingered the send key.
I think I need to update more node modules to get this to work. Can someone remind me 
the commands to get rid of all the dependencies and reinstall latest?

Steve
--
-steve

Steve Berl

unread,
Jul 13, 2023, 2:13:47 PM7/13/23
to sig...@googlegroups.com
Here's what I get from systemctl status signalk
admin@paikea-pi:~/.signalk/node_modules $ systemctl status signalk
● signalk.service
     Loaded: loaded (/etc/systemd/system/signalk.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/signalk.service.d
             └─override.conf
     Active: active (running) since Thu 2023-07-13 11:03:07 PDT; 3min 0s ago
TriggeredBy: ● signalk.socket
   Main PID: 3830 (signalk-server)
      Tasks: 18 (limit: 1595)
        CPU: 34.724s
     CGroup: /system.slice/signalk.service
             ├─3830 /bin/sh /home/admin/.signalk/signalk-server
             └─3832 node /usr/lib/node_modules/signalk-server/bin/signalk-server -c /home/admin/.signalk

Jul 13 11:03:46 paikea-pi signalk-server[3832]: }
Jul 13 11:03:46 paikea-pi signalk-server[3832]: WARNING unable to load native socketcan interface
Jul 13 11:03:46 paikea-pi signalk-server[3832]: signalk-server running at 0.0.0.0:[object Object]
Jul 13 11:03:46 paikea-pi signalk-server[3832]: ReferenceError: setProviderStatus is not defined
Jul 13 11:03:46 paikea-pi signalk-server[3832]:     at ChildProcess.<anonymous> (/usr/lib/node_modules/signalk-server/node_modules/@canboat/canboatjs/lib/canbus.js:100:9)
Jul 13 11:03:46 paikea-pi signalk-server[3832]:     at ChildProcess.emit (node:events:512:28)
Jul 13 11:03:46 paikea-pi signalk-server[3832]:     at maybeClose (node:internal/child_process:1098:16)
Jul 13 11:03:46 paikea-pi signalk-server[3832]:     at Socket.<anonymous> (node:internal/child_process:456:11)
Jul 13 11:03:46 paikea-pi signalk-server[3832]:     at Socket.emit (node:events:512:28)
Jul 13 11:03:46 paikea-pi signalk-server[3832]:     at Pipe.<anonymous> (node:net:334:12)
admin@paikea-pi:~/.signalk/node_modules $

--
-steve

Teppo Kurki

unread,
Jul 13, 2023, 4:49:31 PM7/13/23
to sig...@googlegroups.com
Steve: your system is missing socketcan. It is an optional dependency, so the sk server install process did not fail, but there would or should have been an error message related to socketcan in the install command output. You can try reinstalling sk server or installing socketcan explicitly to see what's happening with that.

Afaik none of the sk developers have gotten their feet wet with Node 20. I don't think adding that to the mixture is helping any.

BTW this kind of troubleshooting is a LOT easier over slack imho.

Steve Berl

unread,
Jul 13, 2023, 9:32:54 PM7/13/23
to sig...@googlegroups.com
Will switch to slack. Kind of forgot about it. 🫢


--
-steve
Reply all
Reply to author
Forward
0 new messages