summaryrefslogtreecommitdiff
path: root/devtools/ais.py
Commit message (Collapse)AuthorAgeFilesLines
* ais.py: pep8 cleanup. No functional change.Gary E. Miller2018-07-261-3/+12
| | | | Note the program pep8 is now called pycodestyle
* ais.py: Fix for PEP8Gary E. Miller2018-06-201-308/+379
|
* Fixes devtools/ais.py to use new-style classes.Fred Wright2016-04-111-4/+4
| | | | | | See previous commits for the rationale. Not tested.
* Fixes devtools/*.py for Python 3.Fred Wright2016-04-101-23/+39
| | | | | | | | | | | | | This applies the 2to3 fixes as well as integer division fixes to the four programs in devtools. Most of these transformations are similar to ones used elsewhere, with the notable exception of the reraise_with_traceback() function in ais.py. TESTED: Ran identify_failing_build_options.py with both Python 2 and Python 3 up through length 1, with identical results. Did *not* test the other three programs. Someone more familiar with their usage should do that.
* additional type 21 message with 368 bits long messageJon Schlueter2016-01-041-1/+1
| | | | | had to extend check to include extra size Also tweaked devtools/ais.py
* Properly string-quote in ais.py output.Eric S. Raymond2013-07-051-1/+6
| | | | | Address Savannah bug bug #39051: ais.py : json output has bad formating for strings
* Fix a bug reported by KIU Shueng Chuan in Type 25 message handling.Eric S. Raymond2012-07-311-1/+1
|
* [AIS] Fix plenty of small bugs unveiled by aishub test campaign.Christian Gagneraud2012-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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] ais.py: Error messages format harmonizationChristian Gagneraud2012-06-201-5/+6
| | | | | This allows automation of error message processing (statistics, ...). Error messages now only one line even if input was fragmented.
* [AIS] ais.py: fix bad checksum error messageChristian Gagneraud2012-06-201-1/+1
|
* [AIS] ais.py: fix optional name extension in type 21Christian Gagneraud2012-06-201-1/+1
|
* [AIS] Add UK/ROI AtoN monitoring data message handlingChristian Gagneraud2012-05-231-1/+30
|
* [AIS] ais.py: Add IMO236 met/hydro message (type 8, dac 1, fid 11)Christian Gagneraud2012-05-201-1/+145
|
* [AIS] ais.py: Add DAC/FID to histogram outputChristian Gagneraud2012-05-201-2/+13
|
* Explain some limitations.Eric S. Raymond2011-04-211-3/+4
|
* In ais.py, extracted field value is no longer constrained to be an array index.Eric S. Raymond2011-04-181-9/+9
|
* Avoid some duplicative writes.Eric S. Raymond2011-04-181-3/+1
|
* Typo fix.Eric S. Raymond2011-04-151-11/+11
|
* Support AISmessage type 27.Eric S. Raymond2011-04-151-2/+19
| | | | Also, revise the website uploader so it knows about scons.
* Typo fix.Eric S. Raymond2011-03-021-1/+1
|
* Fix an error in how AIS rate-of-turn decoding was done.Eric S. Raymond2010-07-011-1/+1
| | | | | This affected only formatted output, so the fix breaks no regression tests. Codebase splints clean.
* Correct some erroneous IS8061 formating.Eric S. Raymond2010-06-131-2/+2
|
* The last change in gpsdecode was not entirely correct. Fixes from Nirgal.Eric S. Raymond2010-05-201-1/+1
|
* Switch the CSV format emitted by gpsdecode(1) to DSV using |.Eric S. Raymond2010-05-191-7/+7
| | | | | | | | | | The problem with CSV is that string fields (such as ship name in type 5) can contain commas. I could have backslash-escaped them, but I think it's better to make old scripts fail in a way that's likely to be noticed than perpetuate a situation in which unescaped commas could cause output to be unpacked wrongly. I changed the Python decoder as well. Required rebuilding one regression test. All regression tests pass.
* Fix AIS type 15 decoding and add a new test from Kurt Schwehr.Eric S. Raymond2010-05-121-1/+1
|
* Avoid truncating dumps of short-form type 15 and 16 messages.Eric S. Raymond2010-05-121-12/+18
|
* Join Type 21 name extension field to name.Eric S. Raymond2010-05-111-1/+10
|
* Typo fixes.Eric S. Raymond2010-05-111-1/+1
|
* Refactoring step.Eric S. Raymond2010-05-111-4/+9
|
* In AIS message types 6 and 8, split app_id into DAC and FID per ITU-1371.Eric S. Raymond2010-05-101-3/+5
| | | | | | | | | | | | 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.
* Maintain separate payloads for A and B channels.Eric S. Raymond2010-05-091-4/+5
|
* Document a limitation.Eric S. Raymond2010-05-091-0/+1
|
* Teach ais.py to ignore USCG metadata following a checksum.Eric S. Raymond2010-05-091-2/+5
|
* Add some missing copyrights and fix a comment.Eric S. Raymond2010-04-101-0/+3
|
* devtools/ais.py had a Type 17 bug, too - wrong length of spare field.Eric S. Raymond2010-03-291-1/+1
|
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-1/+1
|
* Legend corrections.Eric S. Raymond2010-02-041-5/+5
|
* Python decoder shouldn't normally dump bogons.Eric S. Raymond2010-02-021-11/+12
|
* Add packet length checks to the C decoder Eric S. Raymond2010-02-011-5/+18
| | | | And the -m option to the Python decoder.
* Typo fix.Eric S. Raymond2010-02-011-1/+1
|
* Make the decoders use the pad fields as seems to be intended.Eric S. Raymond2010-02-011-1/+2
|
* Added packet-length check to Python decoder.Eric S. Raymond2010-01-311-10/+25
|
* Correction and test case for two-MMSI case of message 16.Eric S. Raymond2010-01-311-1/+0
|
* Harden the Python AIS decoder.Eric S. Raymond2010-01-311-19/+34
|
* Checksum verification for the Python AIS decoder.Eric S. Raymond2010-01-311-2/+17
|
* Correct handling of pad field.Eric S. Raymond2010-01-311-4/+5
|
* Documentation improvements. Eric S. Raymond2010-01-311-0/+31
| | | | Aso addition of a length ranges array for integrity checking.
* Add -h option to make histograms.Eric S. Raymond2010-01-311-5/+17
|
* Regression test and proper field conditionalization for AIS Type 16Eric S. Raymond2010-01-301-3/+7
|
* Add AIS type 23 regression test.Eric S. Raymond2010-01-301-5/+5
| | | | Also fix type 16 interpretation in the Python decoder.