From 08bb7332fbd7d7f925972d2f3d43fed60da61f65 Mon Sep 17 00:00:00 2001 From: Jon Schlueter Date: Tue, 5 Jan 2016 01:49:48 -0500 Subject: [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 --- test/sample.aivdm.chk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/sample.aivdm.chk') diff --git a/test/sample.aivdm.chk b/test/sample.aivdm.chk index 01aba15a..50ea6a5a 100644 --- a/test/sample.aivdm.chk +++ b/test/sample.aivdm.chk @@ -93,3 +93,5 @@ 20|0|002442003|1385|2|7|1125|0|0|0|0|0|0|0|0|0|0|0|0 20|0|002320025|1162|1|7|250|225|1|7|0|1475|5|7|750|19|9|0|1296 20|0|002243302|200|5|7|750|0|0|0|0|0|0|0|0|0|0|0|0 +1|0|244740981|0|-128|0|1|3442480|31919541|0|511|45|0x0|1|0x434 +1|0|244740981|0|-128|0|1|3442480|31919541|0|511|45|0x0|1|0x869f -- cgit v1.2.1