N2K parsing messages while no debuglogging active
My signalk logs get flooded by debug(?) mesages presumably coming from canboatjs, like
Aug 14 13:46:58 1708304 : Pri:2 PGN:127257 Source:204 Dest:255 Len:8 Data:FF,E5,D4,AF,FD,6E,4,FF. (and many more)
I have nothing in configured for the server to log. The NMEA 2000 connection is via 'W2K-1 N2K ASCII (canboatjs)'. I have already tried to find the unsollicited debug statement, but could not find it. Can anyone point me in the right direction?
6 Replies
that does not look like it comes from camboatjs or sk server
I just tested with the latest server and I don't get those with a W2K
which version of the server are you running?
I can't find a message like that in any of the canboatjs, sk server, or my plugins code
I think it's coming from a plugin or a node-red flow?
Thanks for the suggestions: I've disabled all plugins to check, which didn't seem to make much difference. However when I enable 'canboatjs:w2k01-data it spits out messages like 'Aug 14 22:37:54 2025-08-14T20:37:54.352Z canboatjs:w2k01-data Received: 386813 : Pri:2 PGN:130306 Source:105 Dest:255 Len:8 Data:0,34,1,30,EC,FA,FF,FF' which is quite similar to the messages ending up in me debug logs.
Could it be the TCP buffer is printed? Also the timestamp in the debug window is in red, which may indicate an error message.
In addition to the previous: when I set debug logging to canboatjs:w2k01-data, I'm getting the following in the debug window:
Aug 14 23:01:14 2025-08-14T21:01:14.517Z canboatjs:w2k01-data Received: A000000.000 00FF2 1F112 FFA7CAFF7FFF7FFD
Aug 14 23:01:14 2025-08-14T21:01:14.518Z canboatjs:w2k01-data Received: 1786880 : Pri:2 PGN:127245 Source:172 Dest:255 Len:8 Data:FC,F8,FF,7F,82,F4,FF,FF
Aug 14 23:01:14 1786880 : Pri:2 PGN:127245 Source:172 Dest:255 Len:8 Data:FC,F8,FF,7F,82,F4,FF,FF
with the date stamp of the last line in red. When I remove the debug-logging only the last line is printed on (probably) every single W2K message.
What version of the server?
I would go ahead and update your server. You may have some old version of canboatjs
The server version is 2.15.1 and created via the last installer (I'm on Windows). Only the .signalk directory can be old, as I ported that over. All plugins have been updated.
man, I think that message is coming from the w2k
which firmware version is on there?
ok, yep that's it
for some reason, your w2k is sending that message, something in your w2k settings is causing it to sent that
OK, I'll check that too.
I suspect the messages came from the nmea2000->EnableForward I've set to True in Timo Lappalainen's NMEA 2000 library. I have now set it to false and the debug lines are gone. Many thanks for the research at your end!!