Closed ArnaudSwail closed 5 years ago
What do you think of splitting the prefix in two parts and react only on VDO or VDM?
No real opinion, could you elaborate a little bit on what you mean by this ?
I mean, all nmea sentences start with $ or !, have a device id and a data id. And it should be enough to use the data id to identify the current sentence.
But merge is done so no need to do more.
afischerdev's remark sounds more efficient as per http://weblog203.rssing.com/chan-6906880/latest.php, there can be potentially other prefixes:
AB Independent AIS Base Station AD Dependent AIS Base Station AI Mobile Class A or B AIS Station AN AIS Aids to Navigation Station AR AIS Receiving Station AS Limited Base Station AT AIS Transmitting Station AX AIS Simplex Repeater Station SA Physical Shore AIS Station
Stations can send AIS messages using other prefixes than AIVDM and AIVDO. Identified possible prefixes from base stations are BSVDM and ABVDM.