summaryrefslogtreecommitdiff
path: root/test/sample.aivdm
blob: fc9bed6f75ee44a11689665401944cddf1bd184a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
# Sample AIVDM data sentences provided from real data by Kurt Schwehr
# Mike Greene, Neal Arundale, and AISHub.
#
# This file is Copyright (c) 2010 by the GPSD project
# BSD terms apply: see the file COPYING in the distribution root for details.
#
# Type 1:
# From Kurt Schwehr.  Dump was attached.  Checked using the noaadata tools.  
!AIVDM,1,1,,A,15RTgt0PAso;90TKcjM8h6g208CQ,0*4A
#       MessageID:          1
#       RepeatIndicator:    0
#       UserID:             371798000
#       NavigationStatus:   0
#       ROT:                -127
#       SOG:                12.3
#       PositionAccuracy:   1
#       longitude:          -123.395383333
#       latitude:           48.38163333333
#       COG:                224
#       TrueHeading:        215
#       TimeStamp:          33
#       RegionalReserved:   0
#       Spare:              0
#       RAIM:               False
#       state_syncstate:    0
#	state_slottimeout:  2
#	state_slotoffset:   1249
#
# Type 1:
# From Kurt Schwehr.  Dump was attached.  Checked using the noaadata tools.  
!AIVDM,1,1,,A,16SteH0P00Jt63hHaa6SagvJ087r,0*42
#       MessageID:          1
#       RepeatIndicator:    0
#       UserID:             440348000
#       NavigationStatus:   0
#       ROT:                -128
#       SOG:                0
#       PositionAccuracy:   0
#       longitude:          -70.7582
#       latitude:           43.08015
#       COG:                93.4
#       TrueHeading:        511
#       TimeStamp:          13
#       RegionalReserved:   0
#       Spare:              0
#       RAIM:               False
#       state_syncstate:    0
#       stare_slottimeout:  2
#       state_slotoffset:   506
#
# Type 2:
# From Kurt Schwehr.  Dump was attached.  Checked using the noaadata tools.  
# I had to regenerate the CRC32 for this one myself, it was missing in 
# Kurt's original.
!AIVDM,1,1,,B,25Cjtd0Oj;Jp7ilG7=UkKBoB0<06,0*60
#       MessageID:          2
#       RepeatIndicator:    0
#       UserID:             356302000
#       NavigationStatus:   0
#       ROT:                127
#       SOG:                13.9
#       PositionAccuracy:   0
#       longitude:          -71.62614333333333333333333333
#       latitude:           40.39235833333333333333333333
#       COG:                87.7
#       TrueHeading:        91
#       TimeStamp:          41
#       RegionalReserved:   0
#       Spare:              0
#       RAIM:               False
#       state_syncstate:    0
#       state_slottimeout:  3
#       state_slotoffset:   6
#
# Type 3:
# From Kurt Schwehr.  Dump was attached.  Checked using the noaadata tools.  
!AIVDM,1,1,,A,38Id705000rRVJhE7cl9n;160000,0*40
#       MessageID:          3
#       RepeatIndicator:    0
#       UserID:             563808000
#       NavigationStatus:   5
#       ROT:                0
#       SOG:                0
#       PositionAccuracy:   1
#       longitude:          -76.32753333333333333333333333
#       latitude:           36.91
#       COG:                252
#       TrueHeading:        352
#       TimeStamp:          35
#       RegionalReserved:   0
#       Spare:              0
#       RAIM:               False
#       state_syncstate:    0
#       state_slottimeout:  0
#       state_slotoffset:   0
#
# Type 4:
# From Kurt Schwehr.  Dump was attached.  Checked using the noaadata tools.  
!AIVDM,1,1,,A,403OviQuMGCqWrRO9>E6fE700@GO,0*4D
#       MessageID:          4
#       RepeatIndicator:    0
#       UserID:             3669702
#       Time_year:          2007
#       Time_month:         5
#       Time_day:           14
#       Time_hour:          19
#       Time_min:           57
#       Time_sec:           39
#       PositionAccuracy:   1
#       Position_longitude: -76.35236166666666666666666667
#       Position_latitude:  36.88376666666666666666666667
#       fixtype:            7
#       Spare:              0
#       RAIM:               False
#       state_syncstate:    0
#       state_slottimeout:  4
#       state_slotoffset:   1503
#
# Type 5:
# From Kurt Schwehr.  Dump was attached.  Checked using the noaadata tools.  
!AIVDM,2,1,1,A,55?MbV02;H;s<HtKR20EHE:0@T4@Dn2222222216L961O5Gf0NSQEp6ClRp8,0*1C
!AIVDM,2,2,1,A,88888888880,2*25
#       MessageID:        5
#       RepeatIndicator:  0
#       UserID:           351759000
#       AISversion:       0
#       IMOnumber:        9134270
#       callsign:         3FOF8  
#       name:             EVER DIADEM         
#       shipandcargo:     70
#       dimA:             225
#       dimB:             70
#       dimC:             1
#       dimD:             31
#       fixtype:          1
#       ETAminute:        0
#       ETAhour:          16
#       ETAday:           15
#       ETAmonth:         5
#       draught:          12.2
#       destination:      NEW YORK            
#       dte:              0
#       Spare:            0
#
# Type 6:
# From Kurt Schwehr
# Text decode for this one came from regrouping the binary data dump from Kurt's
# ais_msg_6.py on one of his test sentences.  It's unknown what's in the binary
# data block.
!AIVDM,1,1,,B,6B?n;be:cbapalgc;i6?Ow4,2*4A
#       MessageID:        6
#	RepeatIndicator:  1
#	UserID:           150834090
#	SeqNum:           3
#	DestinationID:    313240222
#	RetransmitFlag:   False
#	Spare:            0
#       DAC               669
#       FID               11
#	Data:             48:eb2f118f7ff1
#
# Type 6, DAC 235, FID 10 (GLA, Rep. Ireland)
# From Christian Gagneraud:
# Decoding with Kanaton software.
# !AIVDM,1,1,4,B,6>jR0600V:C0>da4P106P00,2*02
#   AIS channel:1
#    Message ID=6
#    Repeat Indicator=0
#    Source ID (MMSI)=992509976
#    Sequence number=0
#    Destination ID (MMSI)=2500912
#    Retransmit flag =0
#    Spare =0
#    Binary Data
#       Application identifier=0x3ACA(15050)
#          DAC=235(Specific)
#          Function identifier =10(GLA)
#       Application data:
#          Analogue internal=0x112->13.700V
#          Analogue input1=0x1->0.050V
#          Analogue input2=0x1->0.050V
#          AtoN status=0x14:Racon status=2(RACON operational), Ligth
#    status=2(light OFF), Good health=0(good health)
#          Digital status=0x00:In7=0,In6=0,In5=0,In4=0,In3=0,In2=0,In1=0,In0=0
#          Off position=0x00
#          Spare=0x00
!AIVDM,1,1,4,B,6>jR0600V:C0>da4P106P00,2*02
#
# From AISHub.  This type 6 has no data.  It's paired with the
# following type 7; both are verified by the match in the MMSI fields 
!AIVDM,1,1,,A,63u?;TP0`QJ<06P000,4*43
#	Message Type             : 6
#	Repeat Indicator         : 0
#	MMSI                     : 265538450
#	Sequence Number          : 0
#	Destination MMSI         : 2655651
#	Retransmit flag          : 0
#       DAC                      : 1
#       FID                      : 40
#	Data                     : 16:0000
#
# FIX-ME: We need a type 6 test case that requires more than one AIVDM fragment.
#
# Type 7:
# From AISHub - reported immediately after the preceding type 6, 
# which matches it.  One destination MMSI.  noaadata-0.43 fails
# on this message (Kurt says his decoder only handles the longest case).
!AIVDM,1,1,,A,702R5`hwCjq8,0*6B
#	Message Type             : 7
#	Repeat Indicator         : 0
#	MMSI                     : 2655651
#	MMSI number 1            : 265538450
#
# Type 7:
# From Kurt Schwehr.  Three destination MMSIs.
# noaadata-04.2 fails on this message
!AIVDM,1,1,,A,7IiQ4T`UjA9lC;b:M<MWE@,4*01
#	SourceMMSI:       655901842
#	MMSI1:            158483613
#	MMSI2:            321823389
#	MMSI3:            836359488
#	MMSI4:            0
#
# Type 7:
# This was from Mike Greene and had a dump attached. Decode is known good.
# noaadata-0.43 fails on this message
!AIVDM,1,1,,B,7`0Pv1L:Ac8rbgPKHA8`P,2*56
#        Message Type:    7
#        RepeatIndicator: 2
#        SourceMMSI:      537411077
#        MMSI1:           43101326
#        MMSI2:           717096664
#        MMSI3:           76161024
#
# Type 8:
# Text decode for this one came from regrouping the binary data dump from Kurt's
# ais_msg_8.py on one of his test sentences.  It's unknown what's in the binary
# data block.
!AIVDM,1,1,,A,85Mwp`1Kf3aCnsNvBWLi=wQuNhA5t43N`5nCuI=p<IBfVqnMgPGs,0*47
#       MessageID:          8
#	RepeatIndicator:    0
#       UserID:             366999712
#       ApplicationID:      23480
#       DAC                 366
#       FID                 22
#       Data:               256:3a53dbb7be4a773137f87d7b0445f040dea05d93f593783194ae9b9d9dbe05fb
#
# Type 8:
# From Kurt Schwehr. Spans more than one AIVDM fragment. Known good.
# Analyzed in <4BE6A423.8000007@ccom.unh.edu>, seems to be military traffic
# with a mis-entered MMSI.
!AIVDM,2,1,6,A,8>qc9wiKf>d=Cq5r0mdew:?DLq>1LmhHrsqmBCKnJ50,0*30
!AIVDM,2,2,6,A,3OLc=UCRp,0*4A,b003660465
#       Message Type        8
#       Repeat Indicator    0
#       MMSI                999999999
#       DAC                 366
#       FID                 22
#       Data                256:eb0d4f917a035b2dfca3d4739381735c18ebbe754936f66850037dcacd9538b8
#
# Type 8, DAC 1, FID 11 (IMO 236 Met/Hydro message)
# From Christian Gagneraud:
# Specific NMEA messages with hard-coded Met/hydro values have been
# send to a Kanaton, according to its default input settings
# ($_HDXX,VAL*CS, where XX is the parameter index, 0 to 30, VAL is the
# scaled parameter value, and CS the checksum).  The resulting AIVDO
# sentence has been decoded using the Kanaton software.  Sent data,
# kanaton decoder output and gpsd JSON output all match each other.
#
# "18/05/2012 18:15:37" !AIVDO,1,1,4,B,8>jR06@0Bk3:wOli;<`WPhh<1rqVBQf2V@Pdt0J82avIM2b<<Rv1t<ot=@1,2*54
#    AIS channel:1
#    Message ID=8
#    Repeat Indicator=0
#    Source ID (MMSI)=992509977
#    Spare=0
#    Binary Data
#       Application identifier=0x004B(75)
#          DAC=1(International)
#          Function identifier =11(Reserved for international operational applications)
#       Application data:
#    Latitude=0x30CAFD(53°017.693 N)
#    Longitude=0x59DA7(006°008.039 W)
#    Date and time=0x944F(18 17h15m)
#    Average wind speed=0x3(3 kts)
#    Wind gust=0x6(6 kt(s))
#    Wind direction=0xC(12 degree(s))
#    Wind gust direction=0xF(15 degree(s))
#    Air temperature=0x2E6(14.2 degree(s) Celcius)
#    Relative humidity=0x32(50percent)
#    Dew point=0x143(12.3 degree(s) Celcius)
#    Air pressure=0xE0(1024 hPa)
#    Air pressure tendency=0x2(2(increasing))
#    Horizontal visibility=0x99(15.3 NM)
#    Water level=0x10(-8.4 m)
#    Water level trend=0x1(1 hPa)
#    Surface current speed=0x67(10.3 kts)
#    Surface current direction=0x100(256 degree(s))
#    Current speed #2=0x68(10.4 kts)
#    Current direction #2=0x101(257 degree(s))
#    Current measuring level #2=0xA(10 m)
#    Current speed #3=0x7E(12.6 kts)
#    Current direction #3=0xCB(203 degree(s))
#    Current measuring level #3=0x14(20 m)
#    Significant wave height=0x2A(4.2 m)
#    Wave period=0x23(35 Sec)
#    Wave direction=19(25 degree(s))
#    Swell height=0x17(2.3) m
#    Swell period=0x30(48 Sec)
#    Swell direction=0x7C(124 degree(s))
#    Sea state=0x3(3 Beaufort)
#    Water temperature=0xDF(12.3 degree(s) Celcius)
#    Precipitation=0x6(6 according to WMO)
#    Salinity=0x35(5.3 permil)
#    Ice=0x0(0)
!AIVDO,1,1,4,B,8>jR06@0Bk3:wOli;<`WPhh<1rqVBQf2V@Pdt0J82avIM2b<<Rv1t<ot=@1,2*54
# Type 8, DAC 1, FID 11 (IMO 236 Met/Hydro message)
# From Christian Gagneraud:
# Same set-up as above, but the NMEA strem to the Kanaton has been stopped,
# causing the Kanaton to send a message with all bits set to 1, meaning "no
# data available"
# "18/05/2012 18:45:37" !AIVDO,1,1,4,B,8>jR06@0Bk3:vOli;L`nwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwt1,2*0E
#    AIS channel:1
#    Message ID=8
#    Repeat Indicator=0
#    Source ID (MMSI)=992509977
#    Spare=0
#    Binary Data
#       Application identifier=0x004B(75)
#          DAC=1(International)
#          Function identifier =11(Reserved for international operational applications)
#       Application data:
#    Latitude=0x30CAF9(53°017.689 N)
#    Longitude=0x59DA5(006°008.037 W)
#    Date and time=0x946D(18 17h45m)
#    Average wind speed=0x7F(127 kts)
#    Wind gust=0x7F(127 kt(s))
#    Wind direction=0x1FF(511 degree(s))
#    Wind gust direction=0x1FF(511 degree(s))
#    Air temperature=0x7FF(144.7 degree(s) Celcius)
#    Relative humidity=0x7F(127percent)
#    Dew point=0x3FF(82.3 degree(s) Celcius)
#    Air pressure=0x1FF(1311 hPa)
#    Air pressure tendency=0x3(3())
#    Horizontal visibility=0xFF(25.5 NM)
#    Water level=0x1FF(41.1 m)
#    Water level trend=0x3(3 hPa)
#    Surface current speed=0xFF(25.5 kts)
#    Surface current direction=0x1FF(511 degree(s))
#    Current speed #2=0xFF(25.5 kts)
#    Current direction #2=0x1FF(511 degree(s))
#    Current measuring level #2=0x1F(31 m)
#    Current speed #3=0xFF(25.5 kts)
#    Current direction #3=0x1FF(511 degree(s))
#    Current measuring level #3=0x1F(31 m)
#    Significant wave height=0xFF(25.5 m)
#    Wave period=0x3F(63 Sec)
#    Wave direction=1FF(511 degree(s))
#    Swell height=0xFF(25.5) m
#    Swell period=0x3F(63 Sec)
#    Swell direction=0x1FF(511 degree(s))
#    Sea state=0xF(15 Beaufort)
#    Water temperature=0x3FF(92.3 degree(s) Celcius)
#    Precipitation=0x7(7 according to WMO)
#    Salinity=0x1FF(51.1 permil)
#    Ice=0x3(3)
!AIVDO,1,1,4,B,8>jR06@0Bk3:vOli;L`nwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwt1,2*0E
# Type 9:
# From AISHub. Checked with the noaadata tools.
!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. Two destination MMSIs. Checked with the noaadata tools.
!AIVDM,1,1,,B,:5MlU41GMK6@,0*6C
#       MessageID:        10
#       RepeatIndicator:  0
#       UserID:           366814480
#       Spare1:           0
#       DestID:           366832740
#       Spare2:           0
#
# Type 10:
# From Mike Greene. One destination MMSI. Decode is known good.
!AIVDM,1,1,,B,:6TMCD1GOS60,0*5B,s36310,d-081,T59.01777335
#       Message Type:     10
#       Repeat Indicator: 0
#       MMSI:             440882000
#       Destination MMSI: 366972000
#
# Type 11:
# From Kurt Schwehr. Checked with the noaadata tools.
# Message has Coast Guard extended fields following
!AIVDM,1,1,,B,;4R33:1uUK2F`q?mOt@@GoQ00000,0*5D,s28089,d-103,T39.44353985,x147521,r08TPHI1,1242958962
#      MessageID:           11
#      RepeatIndicator:     0
#      UserID:              304137000
#      Time_year:           2009
#      Time_month:          5
#      Time_day:            22
#      Time_hour:           2
#      Time_min:            22
#      Time_sec:            40
#      PositionAccuracy:    1
#      Position_longitude:  -94.40768333333333333333333333
#      Position_latitude:   28.40911666666666666666666667
#      fixtype:             1
#      Spare:               0
#      RAIM:                False
#      state_syncstate:     0
#      state_slottimeout:   0
#      state_slotoffset:    0
#
# Type 12:
# From AIS Hub via Neal Arundale. Dumps by ais.py.
# Verified by the text being readable.
!AIVDM,1,1,,A,<02:oP0kKcv0@<51C5PB5@?BDPD?P:?2?EB7PDB16693P381>>5<PikP,0*37
#       Message Type             : 12
#       Repeat Indicator         : 0
#       MMSI                     : 2275200
#       Sequence Number          : 0
#       Destination MMSI         : 215724000
#       Retransmit flag          : 0
#       Text                     : PLEASE REPORT TO JOBOURG TRAFFIC CHANNEL 13
!AIVDM,1,1,,A,<5?SIj1;GbD07??4,0*38
#       Message Type             : 12
#       Repeat Indicator         : 0
#       MMSI                     : 351853000
#       Sequence Number          : 0
#       Destination MMSI         : 316123456
#       Retransmit flag          : 0
#       Text                     : GOOD
!AIVDM,1,1,,A,<5?SIj5Cp;NPD81>H0,4*4C
#       Message Type             : 12
#       Repeat Indicator         : 0
#       MMSI                     : 351853000
#       Sequence Number          : 1
#       Destination MMSI         : 351809000
#       Retransmit flag          : 0
#       Text                     : THANX
!AIVDM,1,1,,A,<42Lati0W:Ov=C7P6B?=Pjoihhjhqq0,2*2B
#       Message Type             : 12
#       Repeat Indicator         : 0
#       MMSI                     : 271002099
#       Sequence Number          : 0
#       Destination MMSI         : 271002111
#       Retransmit flag          : 1
#       Text                     : MSG FROM 271002099
!AIVDM,1,1,,A,<CR3B@<0TO3j5@PmkiP31BCPphPDB13;CPihkP=?D?PmP3B5GPpn,0*3A
#       Message Type             : 12
#       Repeat Indicator         : 1
#       MMSI                     : 237032000
#       Sequence Number          : 3
#       Destination MMSI         : 2391100
#       Retransmit flag          : 1
#       Text                     : EP 531 CARS 80 TRACKS 103 MOTO 5 CREW 86
!AIVDM,1,1,,A,<9NS8O1ROcS0>9P81?f31<<PD5CD,0*46
#       Message Type             : 12
#       Repeat Indicator         : 0
#       MMSI                     : 636012668
#       Sequence Number          : 0
#       Destination MMSI         : 413118000
#       Retransmit flag          : 0
#       Text                     : NI HAO.CALL TEST
# From AISHub
!AIVDM,2,1,1,A,<39KdV8jIGtP7E4P@=PjEP>P81@9P>5GPI9BP?<P4P25CP6B=P1<P6E:19B1,0*02
!AIVDM,2,2,1,A,80,4*1B
#       Message Type             : 12
#       Repeat Indicator         : 0
#       MMSI                     : 211217560
#       Sequence Number          : 2
#       Destination MMSI         : 211378120
#       Retransmit flag          : 0
#       Text                     : GUD PM 2U N HAPI NEW YIR OL D BES FRM AL FUJAIRAH
# Type 13:
# From AISHub. This message was shipped to acknowledge the last type 12 and is
# verified by the fact that the MMSI fields are right. 
!AIVDM,1,1,,A,=39UOj0jFs9R,0*65
#       Message Type             : 13
#       Repeat Indicator         : 0
#       MMSI                     : 211378120
#       MMSI number 1            : 211217560
#
# Type 14:
# From AIS Hub via Neal Arundale.  Dumps by ais.py.
# Verified by the text being readable.
!AIVDM,1,1,,A,>5?Per18=HB1U:1@E=B0m<L,2*51
#       Message Type             : 14
#       Repeat Indicator         : 0
#       MMSI                     : 351809000
#       Text                     : RCVD YR TEST MSG
!AIVDM,1,1,,A,>3R1p10E3;;R0USCR0HO>0@gN10kGJp,2*7F
#       Message Type             : 14
#       Repeat Indicator         : 0
#       MMSI                     : 237008900
#       Text                     : EP228 IX48 FG3 DK7 PL56.
!AIVDM,1,1,,A,>4aDT81@E=@,2*2E
#       Message Type             : 14
#       Repeat Indicator         : 0
#       MMSI                     : 311764000
#       Text                     : TEST
#
# Type 15:
# From Mike Greene. This is the 88-bit variant with one MMSI, 
# message type and offset. Decode is known good.
!AIVDM,1,1,,A,?5OP=l00052HD00,2*5B
#       Message Type:       15
#       Repeat Indicator:   0
#       MMSI:               368578000
#       Destination MMSI:   5158
#       First Message Type: 5
#       First Slot Offset:  0
#
# Type 15:
# From Kurt Schwehr. This is the 108/112-bit variant with one MMSI and two
# message types. Includes USCG metadata. Decode is known good.
!AIVDM,1,1,,B,?h3Ovn1GP<K0<P@59a0,2*04,d-077,S1832,t004248.00,T48.85520485,r07RPAL1,1272415370
#	Message Type             : 15
#	Repeat Indicator         : 3
#	MMSI                     : 3669720
#	First interrogated MMSI  : 367014320
#	First message type       : 3
#	First slot offset        : 516
#	Second message type      : 5
#	Second slot offset       : 617
#	Second interrogated MMSI : 0
#	Message type             : 0
#	Slot offset              : 0
#
# FIX-ME: Need an example of the 160-bit variant of type 15 with two MMSIs.
#
# Type 16:
# From AISHub. These are only a regression test to check that the C and Python
# decoders do the same thing, not yet checked against other
# decoders. 
#
# This is the 96-bit version addressing just one destination MMSI.
!AIVDM,1,1,,A,@01uEO@mMk7P<P00,0*18
#       Message Type             : 16
#       Repeat Indicator         : 0
#       MMSI                     : 2053501
#       Interrogated MMSI 1      : 224251000
#       First slot offset        : 200
#       First slot increment     : 0
#
# FIX-ME: Need an example of the 144-bit variant of type 16 with two MMSIs, g.
#
# 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               : 376:7c0556c07031febbf52924fe33fa2933ffa0fd2932fdb7062922fe3809292afde9122929fcf7002923ffd20c29aaaa
#
# Type 18:
# From Kurt Schwehr. Checked with the noaadata tools.
# I had to regenerate the CRC32 for this one myself, it was missing
# in Kurt's original..
!AIVDM,1,1,,A,B52K>;h00Fc>jpUlNV@ikwpUoP06,0*4C
#       MessageID:          18
#       RepeatIndicator:    0
#       UserID:             338087471
#       Reserved1:          0
#       SOG:                0.1
#       PositionAccuracy:   0
#       longitude:          -74.07213166666666666666666667
#       latitude:           40.68454
#       COG:                79.6
#       TrueHeading:        511
#       TimeStamp:          49
#       RegionalReserved:   0
#       Spare:              0
#       RAIM:               True
#       CommStateSelector:  1
#       CommState:          393222
# Type 18:
# From Kurt Schwehr. Checked with the noaadata tools.
!AIVDM,1,1,,A,B52KB8h006fu`Q6:g1McCwb5oP06,0*00
#       MessageID:          18
#       RepeatIndicator:    0
#       UserID:             338088483
#       Reserved1:          0
#       SOG:                0
#       PositionAccuracy:   0
#       longitude:          -70.8111966
#       latitude:           43.11555833
#       COG:                171.6
#       TrueHeading:        511
#       TimeStamp:          20
#       RegionalReserved:   0
#       Spare:              0
#       RAIM:               True
#       CommStateSelector:  1
#       CommState:          393222
# Type 18:
# From Kurt Schwehr.  Checked with the noaadata tools.
!AIVDM,1,1,,B,B5O6hr00<veEKmUaMFdEow`UWP06,0*4F
#       Message Type:       18
#       Repeat Indicator:   0
#       MMSI:               368161000
#       Speed Over Ground:  51
#       Position Accuracy:  1
#       Longitude:          -72.2338483333
#       Latitude:           39.480925
#       Course Over Ground: 349
#       True Heading:       511
#       Time Stamp:         17
#       CS Unit:            1
#       Display Flag:       0
#       DSC Flag:           1
#       Band Flag:          1
#       Message 22 Flag:    0
#       Assigned-Mode Flag: 0
#       RAIM:               1
#       Sync State:         3
#       Slot Time-Out:      0
#       Sub Message:        6
#
# Type 19:
# From Mike Greene.  Checked with the noaadata tools. Decode is known good.
!AIVDM,1,1,,B,C5N3SRgPEnJGEBT>NhWAwwo862PaLELTBJ:V00000000S0D:R220,0*0B
#        MessageID:         19
#        RepeatIndicator:   0
#        UserID:            367059850
#        Spare:             0
#        SOG:               8.7
#        PositionAccuracy:  0
#        longitude:         -88.8103916667
#        latitude:          29.543695
#        COG:               335.9
#        TrueHeading:       511
#        TimeStamp:         46
#        Spare2:            0
#        name:              CAPT.J.RIMES
#        shipandcargo:      70
#        dimA:              5
#        dimB:              21
#        dimC:              4
#        dimD:              4
#        fixtype:           1
#        RAIM:              False
#        DTE:               0
#        Spare3:            0
#
# Type 20 (1 offset)
# From Mike Greene.  Checked with the noaadata tools.
!AIVDM,1,1,,A,Dh3OvjB8IN>4,0*1D
#        Message Type:      20
#        Repeat Indicator:  3
#        MMSI:              3669705
#        Offset 1:          2182
#        Reserved Slots 1:  5
#        Timeout 1:         7
#        Increment 1:       225
#
# Type 20 (3 offsets):
# From Mike Greene. 
!AIVDM,1,1,,B,D030p8@2tN?b<`O6DmQO6D0,2*5D
#        Message Type:      20
#        Repeat Indicator:  0
#        MMSI:              3160097
#        Offset 1:          47
#        Reserved Slots 1:  1
#        Timeout 1:         7
#        Increment 1:       250
#        Offset 2:          2250
#        Reserved Slots 2:  1
#        Timeout 2:         7
#        Increment 2:       1125
#        Offset 3:          856
#        Reserved Slots 3:  5
#        Timeout 3:         7
#        Increment 3:       1125
#
# Type 21:
# Has a Name Extension field
# From Mike Greene. Decode is verified by the text being readable.
!AIVDM,2,1,5,B,E1mg=5J1T4W0h97aRh6ba84<h2d;W:Te=eLvH50```q,0*46
!AIVDM,2,2,5,B,:D44QDlp0C1DU00,2*36
#        Message Type:             21
#        Repeat Indicator:         0
#        MMSI:                     123456789
#        Aid Type:                 20
#        Name:                     CHINA ROSE MURPHY EXPRESS ALERT
#        Position Accuracy:        0
#        Longitude:                -122.698591667
#        Latitude:                 47.9206183333
#        Dimension to Bow:         5
#        Dimension to Stern:       5
#        Dimension to Port:        5
#        Dimension to Starboard:   5
#        Type of EPFD:             GPS
#        UTC Second:               50
#        Off-Position Indicator:   0
#        Regional Reserved:        165
#        RAIM Flag:                0
#        Virtual-Aid Flag:         0
#        Assigned-Mode Flag:       0
#
# Type 22:
# From AISHub.  Broadcast case: we won't count this as a full test by
# itself because the bit layout of the addressed case is different.
# (The addressed form seems to be rare or nonexistent in the wild; none
# showed up in a three-hour sample from AISHub, while many broadcasts did.)
# Verified only by the fact that the Python and C decoders get consistent
# results, we haven't actually seen an independent dump of these fields. 
# (The noaadata 0.42 dumper for this type doesn't seem to work.)
!AIVDM,1,1,,A,F030ot22N2P6aoQbhe4736L20000,0*1A
#        Message Type             : 22
#        Repeat Indicator         : 0
#        MMSI                     : 3160048
#        Channel A                : 2087
#        Channel B                : 2088
#        Tx/Rx mode               : 0
#        Power                    : 0
#        NE Longitude             : -44100
#        NE Latitude              : 27330
#        SW Longitude             : -48100
#        SW Latitude              : 25400
#        Addressed                : 0
#        Channel A Band           : 0
#        Channel A Band           : 0
#        Zone size                : 4
#
# Type 23:
# From AISHub. Only a regression test to check that the C and Python decoders
# do the same thing, not yet checked against other decoders.
!AIVDM,1,1,,B,G02:Kn01R`sn@291nj600000900,2*12
#        Message Type             : 23
#        Repeat Indicator         : 0
#        MMSI                     : 2268120
#        NE Longitude             : 1578
#        NE Latitude              : 30642
#        SW Longitude             : 1096
#        SW Latitude              : 30408
#        Station Type             : 6
#        Ship Type                : 0
#        Tx/Rx mode               : 0
#        Reporting interval       : 9
#        Quiet time               : 0
#
# Type 24:
# From Nirgal
# One pair of type A and Type B messages.
!AIVDM,1,1,,A,H42O55i18tMET00000000000000,2*6D
#       MessageID:         24
#       RepeatIndicator:   0
#       UserID:            271041815
#       partnum:           0
#       name:              PROGUY
!AIVDM,1,1,,A,H42O55lti4hhhilD3nink000?050,0*40
#       MessageID:         24
#       RepeatIndicator:   0
#       UserID:            271041815
#       partnum:           0
#       shipandcargo:      60|
#       vendorid:          1D00014
#       callsign:          TC6163
#       dimA:              0
#       dimB:              15
#       dimC:              0
#       dimD:              5
#
#
##############################################################################
# Invalid packet tests:
##############################################################################
#
# That fragment misses part 1, yields nothing:
AIVDM,2,2,1,B,00000000000,2*26
#
#
##############################################################################
# Type 24 collisions:
##############################################################################
#
# 24B from 271041815:
# This sentence is missing 24A and is discarded
!AIVDM,1,1,,A,H42O55lti4hhhilD3nink000?050,0*40
# gpsdecode: AIVDM message type 24 collision on channel A: 24B sentence from 271041815 without 24A.
#
# 24A from mmsi 271041511:
# context is updated
!AIVDM,1,1,,A,H42O3qiA8U10Tp0000000000000,2*37
#
# 24A from mmsi 271040660:
# Previous 24A from 271041511 is discarded, context is updated
!AIVDM,1,1,,A,H42O0U0Lu`@Dno4000000000000,2*18
# gpsdecode: AIVDM message type 24 collision on channel A : Discarding previous sentence 24A from 271041511.
#
# 24B from mmsi 271020195:
# Saved in context, but without a valid 24A it's never emitted.
!AIVDM,1,1,,A,H42Mh`lUi2hhljiI=mikk000B050,0*17
#
# 24B from mmsi 271040660:
# Success
!AIVDM,1,1,,A,H42O0U4Ui3hhhlmI=mmhl000H060,0*2E
# 
##############################################################################
# Channel multiplexing test:
##############################################################################
# simultaneous use of buffers of channels A & B
!AIVDM,2,1,6,B,542M92h00001@<7;?G0PD4i@R0<tqA8tj37>220o0h:2240Ht50000000000,0*3B
!AIVDM,2,1,2,A,542M92h00001@<7;?G0PD4i@R0<tqA8tj37>220o0h:2240Ht500000000000000,0*3C
!AIVDM,2,2,2,A,0000002,2*24
!AIVDM,2,2,6,B,00000000000,2*21