summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/sample.aivdm61
-rw-r--r--test/sample.aivdm.chk4
2 files changed, 32 insertions, 33 deletions
diff --git a/test/sample.aivdm b/test/sample.aivdm
index 092c6ce7..4c1fe8e9 100644
--- a/test/sample.aivdm
+++ b/test/sample.aivdm
@@ -194,26 +194,23 @@
# Binary Data: 256:631d1d6b32f735f03494870d9e13addaf3f373435347ab94628f1498868051c3
#
# Type 9:
-# From Kurt Schwehr
-# This sentence is slightly malformed -- extra data at the end.
-!AIVDM,1,1,,B,9wsh:3?h>TdcWHftni=J0d5fs?8WT852,5*74
-# MessageID: 9
-# RepeatIndicator: 3
-# UserID: 1069287948
-# Altitude: 4032
-# SOG: 932
-# PositionAccuracy: 1
-# Position_longitude: 177.3000916666666666666666667
-# Position_latitude: 106.353155
-# COG: 256.2
-# TimeStamp: 48
-# Reserved: 0
-# DTE: True
-# Spare: 0
-# RAIM: True
-# state_syncstate: 2
-# state_slottimeout: 3
-# state_slotoffset: 12839
+# From AISHub
+!AIVDM,1,1,,A,91b77=h3h00nHt0Q3r@@07000<0b,0*69
+# Message Type : 9
+# Repeat Indicator : 0
+# MMSI : 111265591
+# Altitude : 15
+# SOG : 0
+# Position Accuracy : 0
+# Longitude : 7128960
+# Latitude : 34667073
+# Course Over Ground : 0
+# Time Stamp : 28
+# Regional reserved : 0
+# DTE : 0
+# Assigned : 0
+# RAIM flag : 0
+# Radio status : 24597
#
# Type 10:
# From Kurt Schwehr
@@ -366,18 +363,20 @@
# Interrogated MMSI 1 : 224251000
# First slot offset : 200
# First slot increment : 0
-# The 144-bit version addressing two destination MMSIs
-!AIVDM,1,1,,B,@E7GGWiLEiM?;QdLQD::B2rQslVn,5*1D
-# Message Type : 16
-# Repeat Indicator : 1
-# MMSI : 343267231
-# Interrogated MMSI 1 : 387302867
-# First slot offset : 3256
-# First slot increment : 433
-# Interrogated MMSI 2 : 139733156
-# Second slot offset : 2094
-# Second slot increment : 647
#
+# Type 17:
+# From AISHub. This is only a regression test to check that the C and Python
+# decoders do the same thing, not yet checked against other
+# decoders.
+!AIVDM,2,1,5,A,A02VqLPA4I6C07h5Ed1h<OrsuBTTwS?r:C?w`?la<gno1RTRwSP9:BcurA8a,0*3A
+!AIVDM,2,2,5,A,:Oko02TSwu8<:Jbb,0*11
+Message Type : 17
+Repeat Indicator : 0
+MMSI : 2734450
+Longitude : 17478
+Latitude : 35992
+DGNSS data : 379:007c0556c07031febbf52924fe33fa2933ffa0fd2932fdb7062922fe3809292afde9122929fcf7002923ffd20c29aaaa
+%%
# Type 18:
# From Kurt Schwehr
# I had to regenerate the CRC32 for this one myself, it was missing
diff --git a/test/sample.aivdm.chk b/test/sample.aivdm.chk
index 60470d4e..bb2a5da3 100644
--- a/test/sample.aivdm.chk
+++ b/test/sample.aivdm.chk
@@ -9,7 +9,7 @@
7,2,537411077,43101326,717096664,76161024,0
8,0,366999712,23480,256:3a53dbb7be4a773137f87d7b0445f040dea05d93f593783194ae9b9d9dbe05fb
8,0,366999655,23480,256:631d1d6b32f735f03494870d9e13addaf3f373435347ab94628f1498868051c3
-9,3,1069287948,4032,932,1,106380055,63811893,2562,48,0x5b,1,0,0x67913
+9,0,111265591,15,0,0,7128960,34667073,0,28,0x0,0,0,0x6015
10,0,366814480,366832740
10,0,440882000,366972000
11,0,304137000,2009:05:22T02:22:40Z,1,-56644610,17045470,1,0,0x0
@@ -26,7 +26,7 @@
14,0,311764000,TEST
15,0,368578000,5158,5,0,0,0,0,0,0
16,0,002053501,224251000,200,0,0,0,0
-16,1,343267231,387302867,3256,433,840239657,523,673
+17,0,002734450,17478,35992,400:7c0556c07031febbf52924fe33fa2933ffa0fd2932fdb7062922fe3809292afde9122929fcf7002923ffd20c29aaaa000000
18,0,338087471,0,1,0,-44443279,24410724,796,511,49,0x0,1,0,1,1,1,1,0xe0006
18,0,338088483,0,0,0,-42486718,25869335,1716,511,20,0x0,1,0,1,1,1,1,0xe0006
18,0,368161000,0,51,1,-43340309,23688555,349,511,17,0x0,1,0,1,1,0,1,0xe0006