libais
libais copied to clipboard
Multi-fragment messages
(Please correct me if I'm wrong)
I don't see any handling of multi-fragment AIVDM messages. The tests appear to manually extract the payload before sending it off to the decoder. Did I overlook something, or is there some code somewhere who deals with buffering and collecting fragments?
Cheers,
-Marius
That's correct. This package does not come with the code to reconstruct plan-old-nmea. Take a look a noaadata.
There now is some code to handle this on the python side in ais.stream.decode:
with open("foo.nmea") as f: for msg in ais.stream.decode(f): print msg