ttlappalainen / NMEA0183

Library for handling NMEA0183 messages
69 stars 44 forks source link

Not sure that it's an issue, but I ask #16

Closed hugorobi closed 4 years ago

hugorobi commented 4 years ago

Timo,

When I use "PrintNMEA" example from NMEA0183 library, with Chrome NMEA Simulator (https://chrome.google.com/webstore/detail/nmea-simulator/dfhcgoinjchfcfnnkecjpjcnknlipcll/related), sentences are displayed successfully.

If I change the source from Chrome Simulator to the RTL_AIS receiver (https://github.com/dgiardini/rtl-ais), "PrintNMEA" appear to be unable to parse the sentences (none are displayed).

The main difference between sentences appear to be : "!AIDVO" for sentences that work fine (Chrome NMEA Simulator). First image with 2 sentences "!AIVDM" for sentences that are not displayed (RTL_AIS). Second image with 9 sentences

Any idea about the source of the problem ?

Thank you !

Chrome NMEA Simulator

RTL_AIS

ttlappalainen commented 4 years ago

Can not see any reason on library for that. Library simply reads data between $ or ! to * and separates fields with , . So on that point it does not care about sender or field content. Can you check that you feed data with right baudrates etc.

hugorobi commented 4 years ago

... 😔🙄

Sorry, just after click "Comment", I remember that one thing was not tested... Serial communication...

You're right...Serial configuration problem. Wrong serial port selected on Raspberry.

Again, sorry for that and thank you for your great job !

Hugo