gpsd-dev
[Top][All Lists]
Advanced

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

[gpsd-dev] AIS Decode type 21 JSON is broken


From: Roy Barkas
Subject: [gpsd-dev] AIS Decode type 21 JSON is broken
Date: Wed, 27 Aug 2014 20:49:05 +1000

AIS Type 21 messages returned from gpsdecode (and presumably from gpsd) are broken.
The output JSON will not parse.

The field "epfd" is missing a colon in the output.

Samples below:

 {"class":"AIS","device":"stdin","type":21,"repeat":0,"mmsi":993692030,"scaled":true,"aid_type":18,"aid_type_text":"INVALID NAVAID TYPE","name":"HONO HRB ENT LB H","lon":-157.8800,"lat":21.2808,"accuracy":false,"to_bow":0,"to_stern":0,"to_port":0,"to_starboard":0,"epfd"7,"epfd_text":"Surveyed","second":61,"regional":0,"off_position":false,"raim":false,"virtual_aid":false}

 {"class":"AIS","device":"stdin","type":21,"repeat":1,"mmsi":117010020,"scaled":true,"aid_type":30,"aid_type_text":"INVALID NAVAID TYPE","name":"ZARATE BRIDGE","lon":181.0000,"lat":91.0000,"accuracy":true,"to_bow":10,"to_stern":10,"to_port":10,"to_starboard":10,"epfd"7,"epfd_text":"Surveyed","second":60,"regional":0,"off_position":false,"raim":false,"virtual_aid":false}

reply via email to

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