Rolf van Kleef - Is there a way to set NMEA-200...
Is there a way to set NMEA-2000 identification information? I see in https://github.com/SignalK/n2k-signalk/blob/14eebdfc56ac4d792e2b6c5b7a1772a6a6187ab8/n2kMapper.js#L359 that there are some properties pulled from somewhere, but I cannot find where I can modify these.
5 Replies
What n2k adapter are you using and what exactly do you want to change?
I use an mcp2515 connected through SPI to a Raspberry P 5. Stuff is working using CanboatJS configured for SocketCAN. As I linked, SignalkK sends several identification PGNs over N2k, and I want to adjust that data to differentiate different devices running Signalk.
Here's the relavent code in canboats
https://github.com/canboat/canboatjs/blob/65fd6e8764f9c7994f7b2d817d22981120f103bf/lib/n2kDevice.js#L37
GitHub
canboatjs/lib/n2kDevice.js at 65fd6e8764f9c7994f7b2d817d22981120f10...
Native javascript NMEA 2000 decoder and encoder. Contribute to canboat/canboatjs development by creating an account on GitHub.
You can manually set the addressClaim, productInfo and also the install info.
This is done in ~/.signalk/settings.json
for example:
Oh that's awesome! That helps enormously!
Thanks a lot!