ttlappalainen / NMEA2000

NMEA2000 library for Arduino
526 stars 218 forks source link

Unique Number and Model Serial Code #423

Open atestani opened 1 month ago

atestani commented 1 month ago

I never noticed this before on previous projects and cannot find out why this is happening. First to verify that Unique Number is an unsigned long and Model Serial Code is a string, both representing the serial number of the unit assigned by the manufacturer. Is that correct?

The problem I am having is with the Actisense NGT-1 and NMEAReader (latest version but previous version did the same). When looking at the Product Information properties in NMEAReader, I see that Manuf. Serial ID is correct (2412366067) but that Unique ID is wrong (642167). See the attached screenshot.

I have stepped through my code (which is the same code I have used on previous projects) as well as added serial output and everything looks correct. Is this a problem with NMEAReader?

snap0035

ttlappalainen commented 1 month ago

This is clearly documented also on my code that unique number is 21 bit and max. 2097151. https://ttlappalainen.github.io/NMEA2000/classt_n_m_e_a2000.html#a1cb4d59a06724fcb32c6986b21c526a5