summaryrefslogtreecommitdiff
path: root/test/sample.aivdm.ju.chk
diff options
context:
space:
mode:
authorJon Schlueter <jschlueter@redhat.com>2016-01-05 01:49:48 -0500
committerJon Schlueter <jschlueter@redhat.com>2016-01-05 02:10:40 -0500
commit08bb7332fbd7d7f925972d2f3d43fed60da61f65 (patch)
treef58820e40294f8897fe1cd647705ca65b3bf57e6 /test/sample.aivdm.ju.chk
parent4a08a3c9e8f54d8dd1b8bc0c3b1176b24bcccab0 (diff)
downloadgpsd-08bb7332fbd7d7f925972d2f3d43fed60da61f65.tar.gz
[aivdm] Make type=1 more permissive of short data
saw in live data type=1 records with length of 163 right after 168 with same data payload except for padding bits type=1 length=163 !AIVDM,1,1,,A,13aIkM@P00PJ@qPNL=e@0?wJ28JO,5*63 1|0|244740981|0|-128|0|1|3442480|31919541|0|511|45|0x0|1|0x434 type=1 length=168 !AIVDM,1,1,,A,13aIkM@P00PJ@qPNL=e@0?wJ28JO,0*66 1|0|244740981|0|-128|0|1|3442480|31919541|0|511|45|0x0|1|0x869f This could make sense for re-broadcast data but there may be other issues with type=1,2,3 because the message lengths vary from 163 up to 700 some bits long and logic only parses first 168 bits
Diffstat (limited to 'test/sample.aivdm.ju.chk')
-rw-r--r--test/sample.aivdm.ju.chk2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/sample.aivdm.ju.chk b/test/sample.aivdm.ju.chk
index f650c9b7..e72864cf 100644
--- a/test/sample.aivdm.ju.chk
+++ b/test/sample.aivdm.ju.chk
@@ -93,3 +93,5 @@
{"class":"AIS","device":"stdin","type":20,"repeat":0,"mmsi":2442003,"scaled":false,"offset1":1385,"number1":2,"timeout1":7,"increment1":1125,"offset2":0,"number2":0,"timeout2":0,"increment2":0,"offset3":0,"number3":0,"timeout3":0,"increment3":0,"offset4":0,"number4":0,"timeout4":0,"increment4":0}
{"class":"AIS","device":"stdin","type":20,"repeat":0,"mmsi":2320025,"scaled":false,"offset1":1162,"number1":1,"timeout1":7,"increment1":250,"offset2":225,"number2":1,"timeout2":7,"increment2":0,"offset3":1475,"number3":5,"timeout3":7,"increment3":750,"offset4":19,"number4":9,"timeout4":0,"increment4":1296}
{"class":"AIS","device":"stdin","type":20,"repeat":0,"mmsi":2243302,"scaled":false,"offset1":200,"number1":5,"timeout1":7,"increment1":750,"offset2":0,"number2":0,"timeout2":0,"increment2":0,"offset3":0,"number3":0,"timeout3":0,"increment3":0,"offset4":0,"number4":0,"timeout4":0,"increment4":0}
+{"class":"AIS","device":"stdin","type":1,"repeat":0,"mmsi":244740981,"scaled":false,"status":0,"status_text":"Under way using engine","turn":-128,"speed":0,"accuracy":true,"lon":3442480,"lat":31919541,"course":0,"heading":511,"second":45,"maneuver":0,"raim":true,"radio":1076}
+{"class":"AIS","device":"stdin","type":1,"repeat":0,"mmsi":244740981,"scaled":false,"status":0,"status_text":"Under way using engine","turn":-128,"speed":0,"accuracy":true,"lon":3442480,"lat":31919541,"course":0,"heading":511,"second":45,"maneuver":0,"raim":true,"radio":34463}