libais icon indicating copy to clipboard operation
libais copied to clipboard

Multi-fragment messages

Open kintel opened this issue 11 years ago • 2 comments

(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

kintel avatar Oct 18 '13 03:10 kintel

That's correct. This package does not come with the code to reconstruct plan-old-nmea. Take a look a noaadata.

schwehr avatar Oct 25 '13 21:10 schwehr

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

redhog avatar Mar 20 '15 08:03 redhog