[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] AIVDM sentence buffering

From: Eric S. Raymond
Subject: Re: [gpsd-users] AIVDM sentence buffering
Date: Sun, 26 Feb 2012 02:24:02 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

Jonathan Fewtrell <address@hidden>:
> Reading the documentation (
> and, I am worried that if a read
> picks up multiple AIVDM sentences only the most recent one will be
> reflected in the ais_t struct.

Yes, this is a potential failure mode.  To avoid it, just consume 
reports from the demon more often than once per 2 seconds.  That
way the read buffer will never contain both a message and a later
message of the same type that steps on it.

I'll add this advice to the client HOWTO.
                <a href="";>Eric S. Raymond</a>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]