ttlappalainen / NMEA2000

NMEA2000 library for Arduino
531 stars 220 forks source link

Sending more than 18 satellites with a 129540 #387

Open titio72 opened 7 months ago

titio72 commented 7 months ago

Hi,

My gps receiver tracks up to 64 satellites but adding them all to a message would breach the message size limit. I guess I must use multiple message: what is the right way to do it?

Thanks,

ttlappalainen commented 7 months ago

Read https://github.com/ttlappalainen/NMEA2000/issues/284#issuecomment-1940451526 and the issue conversation. There is ready code for reading and sending satellites.

As I described in issue (https://github.com/ttlappalainen/NMEA2000/issues/284#issuecomment-1937054142) you can send more by using TP message, if you modify limits on library. But then you have problem that TP message sending is slow except if you use addressed sending (https://github.com/ttlappalainen/NMEA2000/issues/284#issuecomment-1940467731).

ttlappalainen commented 7 months ago

Forgot to mention that behaviour also depends of receiving device. On issue 284 user had MFD, which swapped satellites, if different lists were sent with 129540. Then it may be that device does not accept long TP message.

titio72 commented 7 months ago

Thanks!

ttlappalainen commented 7 months ago

Note that code has filter to limit satellites

static double SNRSendLimit=2;
static double ElevationSendLimit=DegToRad(5);