[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 (http://catb.org/gpsd/client-howto.html
> and http://catb.org/gpsd/libgps.html), 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="http://www.catb.org/~esr/">Eric S. Raymond</a>
- Re: [gpsd-users] AIVDM sentence buffering,
Eric S. Raymond <=