canboat / canboatjs

Native javascript NMEA 2000 decoder and encoder
Apache License 2.0
95 stars 37 forks source link

How to set the nmea200 device name #274

Open DrStS opened 1 month ago

DrStS commented 1 month ago

Hello, I am using canboatjs with signalk. I noticed that the canboatjs device at the nmea network is shown as unkown from all the chart plotters in the network. Is it possible to set the device name etc. to give the canboatjs device a proper name in the network?

Thanks a lot! Best Stefan

macjl commented 1 month ago

Hello, I also noticed strange behavior with SignalK connected on N2k network. Sometimes, the device name appears, sometimes not. I suspect the PGNs 60928 and 126996 are not sent periodically, but only on demand from other devices. That’s why I can sometimes have the name of SignalK, when a device request it, but not every time.

sbender9 commented 1 month ago

It definitely sh out of not show u known. Are you StS on Discord?

I do only send those pgns out on demand, which unless I've missed something is the correct way to do it?

One thing I don't do is send out the heartbeat PGN, I'll look into adding that.

You are using Garmin MFDs?

I have one in my lab, last time I checked things were working fine and "Signal K" was showing up as the name. But it may be that I'm not waiting long enough after restart. I will do some more testing...

Also make sure you have the latest canboatjs, there were some recent changes related to this.

macjl commented 1 month ago

I supposed it was related to PGN 60928 and 126996, because the device name was into it. But it may be related to the heartbeat PGN.

I din’t have a MFD, but I can see on Victron CerboGX that the SignalK device is not shown, unless I force the discover of NMEA devices. It’s not necessary for others N2k devices, that are always shown, such as YachtD gateway, LCJ anemometer, and Simrad GNSS.

DrStS commented 1 month ago

I am using the Garmin GPSMAP series 923 and 1623. I have updated to the most recent release. the issue is still there... looks to me that no device name is set. I have replicated that with a small eps32 example. If you do not set the device name Garmin reports unknown. Please let me know if I should provide more info. Thanks!

DrStS commented 1 month ago

May I kindly ask if someone has an idea what I can try? Thanks!