summaryrefslogtreecommitdiff
path: root/test/sample.aivdm.chk
diff options
context:
space:
mode:
authorJon Schlueter <jschlueter@redhat.com>2015-10-07 20:47:31 -0400
committerJon Schlueter <jschlueter@redhat.com>2015-10-07 21:13:15 -0400
commitac257bab48e1dc29a3a837286fb4fcfd71e02aaf (patch)
treea5a391c01013c7db514d752e382e53d37700e8ed /test/sample.aivdm.chk
parent858296bb928370c4ec074e4844cd85cf95aa2cb0 (diff)
downloadgpsd-ac257bab48e1dc29a3a837286fb4fcfd71e02aaf.tar.gz
better handling of type 6 unhandled FID entries
When there are unknown FID values in type 6 messages for DAC values that have some known FIDs (DAC 200, 235 and 250), the data is not read (and thus printed as all zeros). I have added some example AIVDM messages which exhibit this problem, some that did not have the problem in the existing version and a patch for the problem. Added sample !AIVDM,1,1,,A,601uEPprEH2@<P<j00,4*32 -{"class":"AIS","device":"stdin","type":6,"repeat":0,"mmsi":2053507,"scaled":true,"seqno":2,"dest_mmsi":244670500,"retransmit":false,"dac":200,"fid":3,"data":"16:0000"} +{"class":"AIS","device":"stdin","type":6,"repeat":0,"mmsi":2053507,"scaled":true,"seqno":2,"dest_mmsi":244670500,"retransmit":false,"dac":200,"fid":3,"data":"16:3200"} adjusted loop logic to allow it to continue to process other types Identified by: Stefan Roels <sroels-gpsd-dev@42solutions.nl>
Diffstat (limited to 'test/sample.aivdm.chk')
-rw-r--r--test/sample.aivdm.chk1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/sample.aivdm.chk b/test/sample.aivdm.chk
index 701dc764..0b514723 100644
--- a/test/sample.aivdm.chk
+++ b/test/sample.aivdm.chk
@@ -84,3 +84,4 @@
8|1|002300057|1|11|1586491|3616491|20T18:27Z|15|18|115|106|579|67|1023|231|2|255|511|3|255|511|255|511|31|255|511|31|255|63|511|255|63|511|15|1023|7|511|3
8|1|002300059|1|11|1325788|3622678|20T18:28Z|12|14|92|84|586|90|1023|228|2|255|511|3|255|511|255|511|31|255|511|31|255|63|511|255|63|511|15|1023|7|511|3
8|0|002766080|1|11|1382800|3532000|20T18:30Z|0|0|0|0|0|0|0|0|0|0|0|0|255|0|0|0|0|0|0|0|0|3|0|0|0|0|0|1|0|0|0
+6|0|002053507|2|244670500|0|200|3|16:3200