summaryrefslogtreecommitdiff
path: root/test/sample.aivdm
Commit message (Collapse)AuthorAgeFilesLines
* AIS: Add better handling of non byte aligned data blobsJon Schlueter2015-10-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I ran into a problem with the type 8 unstructured data. When the number of bits available is not dividable by 8, the last byte may contain random bits. I would expect the bits beyond the valid range to be 0. An example of this can be found in the following message: !AIVDM,3,1,4,A,85PH6TAKfDOkp95`nCRt5w<:qFUiaihFhBc7s4AHGsQ,0*40 !AIVDM,3,2,4,A,DcMJM18k6<=m7rwVm3b5RRWEskwJWej8uP<0:W5K6PA,0*61 !AIVDM,3,3,4,A,gPs<dwulp,4*14 The current version decodes this to: {"class":"AIS","device":"stdin","type":8,"repeat":0,"mmsi":369493649,"scaled":true,"dac":366,"fid":57,"data":"510:47f3e09168d938bc17f30ae56971a71c16c12ac7ec44585fb854add69d048cc630dd47ebf9b50ea1628a757bcff6a7b7223d80c00a9c56c6811be0eccb3ff74e"} The 510 bits of data are 63 full bytes and then 6 remaining bits. The last byte has value: 4e, which is 0100 1110. I would expect 4c, 0100 1100. To fix this, the following patch could be applied. Please note that the problem might also be present in other message types, but I have not encountered any problems in other message types in the 1 million messages I have in my test dataset. Message types that could be impacted are: 6, 17, 25 and 26, as they all use the same memcpy to get unstructured data. Identified by: Stefan Roels <sroels-gpsd-dev@42solutions.nl> Added new sample entry to sample.aivdm that exercises this case Had to regenerate large ais test data log
* better handling of type 6 unhandled FID entriesJon Schlueter2015-10-071-0/+3
| | | | | | | | | | | | | | | | | | 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>
* Fix json_aivdm_dump for bad temp scalingJon Schlueter2015-10-061-0/+21
| | | | | | | | | | | | | - Type 8, DAC = 1 FID = 11: airtemp, dewpoint and watertemp calculations go wrong due to unsigned ints. Identified by: Stefan Roels <sroels-gpsd-dev@42solutions.nl> unsigned/signed subtraction was causing math to go wonky. new sample data added to sample.aivdm which exibits the conversion errors Also identified watertemp that was failing from same data Regenerated the corresponding check files from current code
* add an ais type9 sample which has speedJon Schlueter2015-10-051-0/+19
| | | | | | Type 9: the ais->type9.speed field should be used instead of the type1 field Identifed by: Stefan Roels <sroels-gpsd-dev@42solutions.nl>
* Fix Savannah bug #44619: Bad latitude value for message type 17Eric S. Raymond2015-03-241-6/+15
| | | | | Required one checkfile rebuild to integrate the sentence that triggered the error. All regression tests pass.
* Prevent false matching of the Inland AIS shape on unstructured Type 8s.Eric S. Raymond2014-08-191-0/+14
| | | | Also, add a regression test for this.
* Cirresct specification annd processing of Inland AIS Type 10 message.Eric S. Raymond2014-08-181-0/+22
|
* Check various test sentences against the Maritec decoder.Eric S. Raymond2013-10-181-5/+14
|
* Address Savannah bug #40298: AIS type 27 too strict size checkEric S. Raymond2013-10-181-0/+4
|
* Typo fixes.Eric S. Raymond2013-10-141-5/+5
|
* [AIS] Fix previous AIS mergeChristian Gagneraud2012-06-201-2/+0
| | | | | Some modifications were lost during last merge, fix that. Regression pass except for ait250.
* [AIS] Fix plenty of small bugs unveiled by aishub test campaign.Christian Gagneraud2012-06-201-1/+87
| | | | | | | | | | | | | | | | | | | | | | A test campaign was run with live data from aishub.net (ca. 25 millions sentence, 1.2 GB of logs), the goal was to check the decoding and the JSON parsing and dumping code. On all the AIS data, the following tests were done: - AIVDM decoding - JSON scaled dump - JSON validity check on scaled dump. - JSON unscaled dump - JSON validity check on unscaled dump - JSON unscaled idempotency check - JSON unscaled/scaled idempotency check The last check consisted of: - parsing the unscaled dump - dumping it back in scaled mode - compare it with the original scaled dump. This test campaign has unveiled plenty of small bugs all around the AIS code. This patch fixes all of them and adds new sentences in the regression tests.
* [AIS] Met/Hydro: fixes and improvementsChristian Gagneraud2012-06-051-4/+55
|
* [AIS] Add UK/ROI AtoN monitoring data message testsChristian Gagneraud2012-05-231-0/+27
| | | | scons check pass
* Comment typo fix.Eric S. Raymond2012-05-201-5/+6
|
* [AIS] Add 2 regression testcases for IMO236 met/hydro messageChristian Gagneraud2012-05-201-0/+105
| | | | scons check pass
* Handle up to 16 interleaved Type 24A and 24B messages.Eric S. Raymond2012-03-051-2/+1
| | | | All regression tests pass.
* Make sure 24A and 24B aivdm sentences are correctly aggregated.Nirgal2010-05-221-22/+52
| | | | | | | | Patch adds unit tests for all the collision cases. All regression tests pass. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Update some status comments.Eric S. Raymond2010-05-211-10/+10
|
* Clarification of some message length and padding issues.Eric S. Raymond2010-05-121-4/+4
|
* Document some needs.Eric S. Raymond2010-05-121-1/+3
|
* Fix AIS type 15 decoding and add a new test from Kurt Schwehr.Eric S. Raymond2010-05-121-1/+18
|
* In AIS message types 6 and 8, split app_id into DAC and FID per ITU-1371.Eric S. Raymond2010-05-101-8/+14
| | | | | | | | | | | | Wire protocol and API minor versions get bumped. All changes are as documented in AIVDM.txt, which now describes known message 6 and 8 subtypes. Involved rebuilding a couple of AIS regression tests. All regression tests pass. Also includes various typo fixes for AIVDM.txt discovered by Baylink while we were reviewing these changes.
* Add Nirgal's tests for bad packet and AIS channel multiplexing.Eric S. Raymond2010-05-091-0/+12
|
* Complete privious change. Required rebuilding of three regressin tests.Eric S. Raymond2010-05-091-1/+1
|
* Replace a broken AIS type 8 test with a known-good one from Kut Schwehr.Eric S. Raymond2010-05-091-8/+9
|
* FIXME -> FIX-ME, so I can walk through these without tripping over autotools.Eric S. Raymond2010-04-261-2/+2
|
* Three bits have to be removed from the data vector, too.Eric S. Raymond2010-03-291-1/+1
|
* devtools/ais.py had a Type 17 bug, too - wrong length of spare field.Eric S. Raymond2010-03-291-1/+1
|
* Address Debian bug #573752 (mode sometimes missing from JSON.Eric S. Raymond2010-03-141-0/+3
| | | | | Also, include some additions of copyrights on the test logs that somehow wint missing from the last commit (probably git operator error).
* More test load documentation. All regression tests pass.Eric S. Raymond2010-02-051-48/+48
|
* More documentation of AIVDM test loads.Eric S. Raymond2010-02-051-10/+12
|
* Clarify the status of a number of test sentences.Eric S. Raymond2010-02-051-16/+26
|
* A verified pair of AIS type 6 and type 7 messages for the regression test.Eric S. Raymond2010-02-041-1/+22
|
* Add an AIS Type 17 regression test.Eric S. Raymond2010-02-021-31/+30
|
* Make the decoders use the pad fields as seems to be intended.Eric S. Raymond2010-02-011-1/+1
|
* Correction and test case for two-MMSI case of message 16.Eric S. Raymond2010-01-311-3/+15
|
* Documentation improvements. Eric S. Raymond2010-01-311-2/+4
| | | | Aso addition of a length ranges array for integrity checking.
* Regression test and proper field conditionalization for AIS Type 16Eric S. Raymond2010-01-301-0/+11
|
* Add AIS type 23 regression test.Eric S. Raymond2010-01-301-0/+19
| | | | Also fix type 16 interpretation in the Python decoder.
* Improved handling and documentation of AIS type 22 messages.Eric S. Raymond2010-01-301-0/+23
|
* Filename change and some typo tweaks. Eric S. Raymond2010-01-291-0/+523
Not everything in the AIVDM test load is from Kurt Schwehr any more.