"Initial commit to Gerrit"
[profile/ivi/gpsd.git] / test / sample.aivdm
1 # Sample AIVDM data sentences provided from real data by Kurt Schwehr
2 # Mike Greene, Neal Arundale, and AISHub.
3 #
4 # This file is Copyright (c) 2010 by the GPSD project
5 # BSD terms apply: see the file COPYING in the distribution root for details.
6 #
7 # Type 1:
8 # From Kurt Schwehr.  Dump was attached.  Checked using the noaadata tools.  
9 !AIVDM,1,1,,A,15RTgt0PAso;90TKcjM8h6g208CQ,0*4A
10 #       MessageID:          1
11 #       RepeatIndicator:    0
12 #       UserID:             371798000
13 #       NavigationStatus:   0
14 #       ROT:                -127
15 #       SOG:                12.3
16 #       PositionAccuracy:   1
17 #       longitude:          -123.395383333
18 #       latitude:           48.38163333333
19 #       COG:                224
20 #       TrueHeading:        215
21 #       TimeStamp:          33
22 #       RegionalReserved:   0
23 #       Spare:              0
24 #       RAIM:               False
25 #       state_syncstate:    0
26 #       state_slottimeout:  2
27 #       state_slotoffset:   1249
28 #
29 # Type 1:
30 # From Kurt Schwehr.  Dump was attached.  Checked using the noaadata tools.  
31 !AIVDM,1,1,,A,16SteH0P00Jt63hHaa6SagvJ087r,0*42
32 #       MessageID:          1
33 #       RepeatIndicator:    0
34 #       UserID:             440348000
35 #       NavigationStatus:   0
36 #       ROT:                -128
37 #       SOG:                0
38 #       PositionAccuracy:   0
39 #       longitude:          -70.7582
40 #       latitude:           43.08015
41 #       COG:                93.4
42 #       TrueHeading:        511
43 #       TimeStamp:          13
44 #       RegionalReserved:   0
45 #       Spare:              0
46 #       RAIM:               False
47 #       state_syncstate:    0
48 #       stare_slottimeout:  2
49 #       state_slotoffset:   506
50 #
51 # Type 2:
52 # From Kurt Schwehr.  Dump was attached.  Checked using the noaadata tools.  
53 # I had to regenerate the CRC32 for this one myself, it was missing in 
54 # Kurt's original.
55 !AIVDM,1,1,,B,25Cjtd0Oj;Jp7ilG7=UkKBoB0<06,0*60
56 #       MessageID:          2
57 #       RepeatIndicator:    0
58 #       UserID:             356302000
59 #       NavigationStatus:   0
60 #       ROT:                127
61 #       SOG:                13.9
62 #       PositionAccuracy:   0
63 #       longitude:          -71.62614333333333333333333333
64 #       latitude:           40.39235833333333333333333333
65 #       COG:                87.7
66 #       TrueHeading:        91
67 #       TimeStamp:          41
68 #       RegionalReserved:   0
69 #       Spare:              0
70 #       RAIM:               False
71 #       state_syncstate:    0
72 #       state_slottimeout:  3
73 #       state_slotoffset:   6
74 #
75 # Type 3:
76 # From Kurt Schwehr.  Dump was attached.  Checked using the noaadata tools.  
77 !AIVDM,1,1,,A,38Id705000rRVJhE7cl9n;160000,0*40
78 #       MessageID:          3
79 #       RepeatIndicator:    0
80 #       UserID:             563808000
81 #       NavigationStatus:   5
82 #       ROT:                0
83 #       SOG:                0
84 #       PositionAccuracy:   1
85 #       longitude:          -76.32753333333333333333333333
86 #       latitude:           36.91
87 #       COG:                252
88 #       TrueHeading:        352
89 #       TimeStamp:          35
90 #       RegionalReserved:   0
91 #       Spare:              0
92 #       RAIM:               False
93 #       state_syncstate:    0
94 #       state_slottimeout:  0
95 #       state_slotoffset:   0
96 #
97 # Type 4:
98 # From Kurt Schwehr.  Dump was attached.  Checked using the noaadata tools.  
99 !AIVDM,1,1,,A,403OviQuMGCqWrRO9>E6fE700@GO,0*4D
100 #       MessageID:          4
101 #       RepeatIndicator:    0
102 #       UserID:             3669702
103 #       Time_year:          2007
104 #       Time_month:         5
105 #       Time_day:           14
106 #       Time_hour:          19
107 #       Time_min:           57
108 #       Time_sec:           39
109 #       PositionAccuracy:   1
110 #       Position_longitude: -76.35236166666666666666666667
111 #       Position_latitude:  36.88376666666666666666666667
112 #       fixtype:            7
113 #       Spare:              0
114 #       RAIM:               False
115 #       state_syncstate:    0
116 #       state_slottimeout:  4
117 #       state_slotoffset:   1503
118 #
119 # Type 5:
120 # From Kurt Schwehr.  Dump was attached.  Checked using the noaadata tools.  
121 !AIVDM,2,1,1,A,55?MbV02;H;s<HtKR20EHE:0@T4@Dn2222222216L961O5Gf0NSQEp6ClRp8,0*1C
122 !AIVDM,2,2,1,A,88888888880,2*25
123 #       MessageID:        5
124 #       RepeatIndicator:  0
125 #       UserID:           351759000
126 #       AISversion:       0
127 #       IMOnumber:        9134270
128 #       callsign:         3FOF8  
129 #       name:             EVER DIADEM         
130 #       shipandcargo:     70
131 #       dimA:             225
132 #       dimB:             70
133 #       dimC:             1
134 #       dimD:             31
135 #       fixtype:          1
136 #       ETAminute:        0
137 #       ETAhour:          16
138 #       ETAday:           15
139 #       ETAmonth:         5
140 #       draught:          12.2
141 #       destination:      NEW YORK            
142 #       dte:              0
143 #       Spare:            0
144 #
145 # Type 6:
146 # From Kurt Schwehr
147 # Text decode for this one came from regrouping the binary data dump from Kurt's
148 # ais_msg_6.py on one of his test sentences.  It's unknown what's in the binary
149 # data block.
150 !AIVDM,1,1,,B,6B?n;be:cbapalgc;i6?Ow4,2*4A
151 #       MessageID:        6
152 #       RepeatIndicator:  1
153 #       UserID:           150834090
154 #       SeqNum:           3
155 #       DestinationID:    313240222
156 #       RetransmitFlag:   False
157 #       Spare:            0
158 #       DAC               669
159 #       FID               11
160 #       Data:             48:eb2f118f7ff1
161 #
162 # From AISHub.  This type 6 has no data.  It's paired with the
163 # following type 7; both are verified by the match in the MMSI fields 
164 !AIVDM,1,1,,A,63u?;TP0`QJ<06P000,4*43
165 #       Message Type             : 6
166 #       Repeat Indicator         : 0
167 #       MMSI                     : 265538450
168 #       Sequence Number          : 0
169 #       Destination MMSI         : 2655651
170 #       Retransmit flag          : 0
171 #       DAC                      : 1
172 #       FID                      : 40
173 #       Data                     : 16:0000
174 #
175 # FIX-ME: We need a type 6 test case that requires more than one AIVDM fragment.
176 #
177 # Type 7:
178 # From AISHub - reported immediately after the preceding type 6, 
179 # which matches it.  One destination MMSI.  noaadata-0.43 fails
180 # on this message (Kurt says his decoder only handles the longest case).
181 !AIVDM,1,1,,A,702R5`hwCjq8,0*6B
182 #       Message Type             : 7
183 #       Repeat Indicator         : 0
184 #       MMSI                     : 2655651
185 #       MMSI number 1            : 265538450
186 #
187 # Type 7:
188 # From Kurt Schwehr.  Three destination MMSIs.
189 # noaadata-04.2 fails on this message
190 !AIVDM,1,1,,A,7IiQ4T`UjA9lC;b:M<MWE@,4*01
191 #       SourceMMSI:       655901842
192 #       MMSI1:            158483613
193 #       MMSI2:            321823389
194 #       MMSI3:            836359488
195 #       MMSI4:            0
196 #
197 # Type 7:
198 # This was from Mike Greene and had a dump attached. Decode is known good.
199 # noaadata-0.43 fails on this message
200 !AIVDM,1,1,,B,7`0Pv1L:Ac8rbgPKHA8`P,2*56
201 #        Message Type:    7
202 #        RepeatIndicator: 2
203 #        SourceMMSI:      537411077
204 #        MMSI1:           43101326
205 #        MMSI2:           717096664
206 #        MMSI3:           76161024
207 #
208 # Type 8:
209 # Text decode for this one came from regrouping the binary data dump from Kurt's
210 # ais_msg_8.py on one of his test sentences.  It's unknown what's in the binary
211 # data block.
212 !AIVDM,1,1,,A,85Mwp`1Kf3aCnsNvBWLi=wQuNhA5t43N`5nCuI=p<IBfVqnMgPGs,0*47
213 #       MessageID:          8
214 #       RepeatIndicator:    0
215 #       UserID:             366999712
216 #       ApplicationID:      23480
217 #       DAC                 366
218 #       FID                 22
219 #       Data:               256:3a53dbb7be4a773137f87d7b0445f040dea05d93f593783194ae9b9d9dbe05fb
220 #
221 # Type 8:
222 # From Kurt Schwehr. Spans more than one AIVDM fragment. Known good.
223 # Analyzed in <4BE6A423.8000007@ccom.unh.edu>, seems to be military traffic
224 # with a mis-entered MMSI.
225 !AIVDM,2,1,6,A,8>qc9wiKf>d=Cq5r0mdew:?DLq>1LmhHrsqmBCKnJ50,0*30
226 !AIVDM,2,2,6,A,3OLc=UCRp,0*4A,b003660465
227 #       Message Type        8
228 #       Repeat Indicator    0
229 #       MMSI                999999999
230 #       DAC                 366
231 #       FID                 22
232 #       Data                256:eb0d4f917a035b2dfca3d4739381735c18ebbe754936f66850037dcacd9538b8
233 #
234 # Type 9:
235 # From AISHub. Checked with the noaadata tools.
236 !AIVDM,1,1,,A,91b77=h3h00nHt0Q3r@@07000<0b,0*69
237 #       Message Type             : 9
238 #       Repeat Indicator         : 0
239 #       MMSI                     : 111265591
240 #       Altitude                 : 15
241 #       SOG                      : 0
242 #       Position Accuracy        : 0
243 #       Longitude                : 7128960
244 #       Latitude                 : 34667073
245 #       Course Over Ground       : 0
246 #       Time Stamp               : 28
247 #       Regional reserved        : 0
248 #       DTE                      : 0
249 #       Assigned                 : 0
250 #       RAIM flag                : 0
251 #       Radio status             : 24597
252 #
253 # Type 10:
254 # From Kurt Schwehr. Two destination MMSIs. Checked with the noaadata tools.
255 !AIVDM,1,1,,B,:5MlU41GMK6@,0*6C
256 #       MessageID:        10
257 #       RepeatIndicator:  0
258 #       UserID:           366814480
259 #       Spare1:           0
260 #       DestID:           366832740
261 #       Spare2:           0
262 #
263 # Type 10:
264 # From Mike Greene. One destination MMSI. Decode is known good.
265 !AIVDM,1,1,,B,:6TMCD1GOS60,0*5B,s36310,d-081,T59.01777335
266 #       Message Type:     10
267 #       Repeat Indicator: 0
268 #       MMSI:             440882000
269 #       Destination MMSI: 366972000
270 #
271 # Type 11:
272 # From Kurt Schwehr. Checked with the noaadata tools.
273 # Message has Coast Guard extended fields following
274 !AIVDM,1,1,,B,;4R33:1uUK2F`q?mOt@@GoQ00000,0*5D,s28089,d-103,T39.44353985,x147521,r08TPHI1,1242958962
275 #      MessageID:           11
276 #      RepeatIndicator:     0
277 #      UserID:              304137000
278 #      Time_year:           2009
279 #      Time_month:          5
280 #      Time_day:            22
281 #      Time_hour:           2
282 #      Time_min:            22
283 #      Time_sec:            40
284 #      PositionAccuracy:    1
285 #      Position_longitude:  -94.40768333333333333333333333
286 #      Position_latitude:   28.40911666666666666666666667
287 #      fixtype:             1
288 #      Spare:               0
289 #      RAIM:                False
290 #      state_syncstate:     0
291 #      state_slottimeout:   0
292 #      state_slotoffset:    0
293 #
294 # Type 12:
295 # From AIS Hub via Neal Arundale. Dumps by ais.py.
296 # Verified by the text being readable.
297 !AIVDM,1,1,,A,<02:oP0kKcv0@<51C5PB5@?BDPD?P:?2?EB7PDB16693P381>>5<PikP,0*37
298 #       Message Type             : 12
299 #       Repeat Indicator         : 0
300 #       MMSI                     : 2275200
301 #       Sequence Number          : 0
302 #       Destination MMSI         : 215724000
303 #       Retransmit flag          : 0
304 #       Text                     : PLEASE REPORT TO JOBOURG TRAFFIC CHANNEL 13
305 !AIVDM,1,1,,A,<5?SIj1;GbD07??4,0*38
306 #       Message Type             : 12
307 #       Repeat Indicator         : 0
308 #       MMSI                     : 351853000
309 #       Sequence Number          : 0
310 #       Destination MMSI         : 316123456
311 #       Retransmit flag          : 0
312 #       Text                     : GOOD
313 !AIVDM,1,1,,A,<5?SIj5Cp;NPD81>H0,4*4C
314 #       Message Type             : 12
315 #       Repeat Indicator         : 0
316 #       MMSI                     : 351853000
317 #       Sequence Number          : 1
318 #       Destination MMSI         : 351809000
319 #       Retransmit flag          : 0
320 #       Text                     : THANX
321 !AIVDM,1,1,,A,<42Lati0W:Ov=C7P6B?=Pjoihhjhqq0,2*2B
322 #       Message Type             : 12
323 #       Repeat Indicator         : 0
324 #       MMSI                     : 271002099
325 #       Sequence Number          : 0
326 #       Destination MMSI         : 271002111
327 #       Retransmit flag          : 1
328 #       Text                     : MSG FROM 271002099
329 !AIVDM,1,1,,A,<CR3B@<0TO3j5@PmkiP31BCPphPDB13;CPihkP=?D?PmP3B5GPpn,0*3A
330 #       Message Type             : 12
331 #       Repeat Indicator         : 1
332 #       MMSI                     : 237032000
333 #       Sequence Number          : 3
334 #       Destination MMSI         : 2391100
335 #       Retransmit flag          : 1
336 #       Text                     : EP 531 CARS 80 TRACKS 103 MOTO 5 CREW 86
337 !AIVDM,1,1,,A,<9NS8O1ROcS0>9P81?f31<<PD5CD,0*46
338 #       Message Type             : 12
339 #       Repeat Indicator         : 0
340 #       MMSI                     : 636012668
341 #       Sequence Number          : 0
342 #       Destination MMSI         : 413118000
343 #       Retransmit flag          : 0
344 #       Text                     : NI HAO.CALL TEST
345 # From AISHub
346 !AIVDM,2,1,1,A,<39KdV8jIGtP7E4P@=PjEP>P81@9P>5GPI9BP?<P4P25CP6B=P1<P6E:19B1,0*02
347 !AIVDM,2,2,1,A,80,4*1B
348 #       Message Type             : 12
349 #       Repeat Indicator         : 0
350 #       MMSI                     : 211217560
351 #       Sequence Number          : 2
352 #       Destination MMSI         : 211378120
353 #       Retransmit flag          : 0
354 #       Text                     : GUD PM 2U N HAPI NEW YIR OL D BES FRM AL FUJAIRAH
355 # Type 13:
356 # From AISHub. This message was shipped to acknowledge the last type 12 and is
357 # verified by the fact that the MMSI fields are right. 
358 !AIVDM,1,1,,A,=39UOj0jFs9R,0*65
359 #       Message Type             : 13
360 #       Repeat Indicator         : 0
361 #       MMSI                     : 211378120
362 #       MMSI number 1            : 211217560
363 #
364 # Type 14:
365 # From AIS Hub via Neal Arundale.  Dumps by ais.py.
366 # Verified by the text being readable.
367 !AIVDM,1,1,,A,>5?Per18=HB1U:1@E=B0m<L,2*51
368 #       Message Type             : 14
369 #       Repeat Indicator         : 0
370 #       MMSI                     : 351809000
371 #       Text                     : RCVD YR TEST MSG
372 !AIVDM,1,1,,A,>3R1p10E3;;R0USCR0HO>0@gN10kGJp,2*7F
373 #       Message Type             : 14
374 #       Repeat Indicator         : 0
375 #       MMSI                     : 237008900
376 #       Text                     : EP228 IX48 FG3 DK7 PL56.
377 !AIVDM,1,1,,A,>4aDT81@E=@,2*2E
378 #       Message Type             : 14
379 #       Repeat Indicator         : 0
380 #       MMSI                     : 311764000
381 #       Text                     : TEST
382 #
383 # Type 15:
384 # From Mike Greene. This is the 88-bit variant with one MMSI, 
385 # message type and offset. Decode is known good.
386 !AIVDM,1,1,,A,?5OP=l00052HD00,2*5B
387 #       Message Type:       15
388 #       Repeat Indicator:   0
389 #       MMSI:               368578000
390 #       Destination MMSI:   5158
391 #       First Message Type: 5
392 #       First Slot Offset:  0
393 #
394 # Type 15:
395 # From Kurt Schwehr. This is the 108/112-bit variant with one MMSI and two
396 # message types. Includes USCG metadata. Decode is known good.
397 !AIVDM,1,1,,B,?h3Ovn1GP<K0<P@59a0,2*04,d-077,S1832,t004248.00,T48.85520485,r07RPAL1,1272415370
398 #       Message Type             : 15
399 #       Repeat Indicator         : 3
400 #       MMSI                     : 3669720
401 #       First interrogated MMSI  : 367014320
402 #       First message type       : 3
403 #       First slot offset        : 516
404 #       Second message type      : 5
405 #       Second slot offset       : 617
406 #       Second interrogated MMSI : 0
407 #       Message type             : 0
408 #       Slot offset              : 0
409 #
410 # FIX-ME: Need an example of the 160-bit variant of type 15 with two MMSIs.
411 #
412 # Type 16:
413 # From AISHub. These are only a regression test to check that the C and Python
414 # decoders do the same thing, not yet checked against other
415 # decoders. 
416 #
417 # This is the 96-bit version addressing just one destination MMSI.
418 !AIVDM,1,1,,A,@01uEO@mMk7P<P00,0*18
419 #       Message Type             : 16
420 #       Repeat Indicator         : 0
421 #       MMSI                     : 2053501
422 #       Interrogated MMSI 1      : 224251000
423 #       First slot offset        : 200
424 #       First slot increment     : 0
425 #
426 # FIX-ME: Need an example of the 144-bit variant of type 16 with two MMSIs, g.
427 #
428 # Type 17:
429 # From AISHub. This is only a regression test to check that the C and Python
430 # decoders do the same thing, not yet checked against other
431 # decoders. 
432 !AIVDM,2,1,5,A,A02VqLPA4I6C07h5Ed1h<OrsuBTTwS?r:C?w`?la<gno1RTRwSP9:BcurA8a,0*3A
433 !AIVDM,2,2,5,A,:Oko02TSwu8<:Jbb,0*11
434 Message Type             : 17
435 Repeat Indicator         : 0
436 MMSI                     : 2734450
437 Longitude                : 17478
438 Latitude                 : 35992
439 DGNSS data               : 376:7c0556c07031febbf52924fe33fa2933ffa0fd2932fdb7062922fe3809292afde9122929fcf7002923ffd20c29aaaa
440 #
441 # Type 18:
442 # From Kurt Schwehr. Checked with the noaadata tools.
443 # I had to regenerate the CRC32 for this one myself, it was missing
444 # in Kurt's original..
445 !AIVDM,1,1,,A,B52K>;h00Fc>jpUlNV@ikwpUoP06,0*4C
446 #       MessageID:          18
447 #       RepeatIndicator:    0
448 #       UserID:             338087471
449 #       Reserved1:          0
450 #       SOG:                0.1
451 #       PositionAccuracy:   0
452 #       longitude:          -74.07213166666666666666666667
453 #       latitude:           40.68454
454 #       COG:                79.6
455 #       TrueHeading:        511
456 #       TimeStamp:          49
457 #       RegionalReserved:   0
458 #       Spare:              0
459 #       RAIM:               True
460 #       CommStateSelector:  1
461 #       CommState:          393222
462 # Type 18:
463 # From Kurt Schwehr. Checked with the noaadata tools.
464 !AIVDM,1,1,,A,B52KB8h006fu`Q6:g1McCwb5oP06,0*00
465 #       MessageID:          18
466 #       RepeatIndicator:    0
467 #       UserID:             338088483
468 #       Reserved1:          0
469 #       SOG:                0
470 #       PositionAccuracy:   0
471 #       longitude:          -70.8111966
472 #       latitude:           43.11555833
473 #       COG:                171.6
474 #       TrueHeading:        511
475 #       TimeStamp:          20
476 #       RegionalReserved:   0
477 #       Spare:              0
478 #       RAIM:               True
479 #       CommStateSelector:  1
480 #       CommState:          393222
481 # Type 18:
482 # From Kurt Schwehr.  Checked with the noaadata tools.
483 !AIVDM,1,1,,B,B5O6hr00<veEKmUaMFdEow`UWP06,0*4F
484 #       Message Type:       18
485 #       Repeat Indicator:   0
486 #       MMSI:               368161000
487 #       Speed Over Ground:  51
488 #       Position Accuracy:  1
489 #       Longitude:          -72.2338483333
490 #       Latitude:           39.480925
491 #       Course Over Ground: 349
492 #       True Heading:       511
493 #       Time Stamp:         17
494 #       CS Unit:            1
495 #       Display Flag:       0
496 #       DSC Flag:           1
497 #       Band Flag:          1
498 #       Message 22 Flag:    0
499 #       Assigned-Mode Flag: 0
500 #       RAIM:               1
501 #       Sync State:         3
502 #       Slot Time-Out:      0
503 #       Sub Message:        6
504 #
505 # Type 19:
506 # From Mike Greene.  Checked with the noaadata tools. Decode is known good.
507 !AIVDM,1,1,,B,C5N3SRgPEnJGEBT>NhWAwwo862PaLELTBJ:V00000000S0D:R220,0*0B
508 #        MessageID:         19
509 #        RepeatIndicator:   0
510 #        UserID:            367059850
511 #        Spare:             0
512 #        SOG:               8.7
513 #        PositionAccuracy:  0
514 #        longitude:         -88.8103916667
515 #        latitude:          29.543695
516 #        COG:               335.9
517 #        TrueHeading:       511
518 #        TimeStamp:         46
519 #        Spare2:            0
520 #        name:              CAPT.J.RIMES
521 #        shipandcargo:      70
522 #        dimA:              5
523 #        dimB:              21
524 #        dimC:              4
525 #        dimD:              4
526 #        fixtype:           1
527 #        RAIM:              False
528 #        DTE:               0
529 #        Spare3:            0
530 #
531 # Type 20 (1 offset)
532 # From Mike Greene.  Checked with the noaadata tools.
533 !AIVDM,1,1,,A,Dh3OvjB8IN>4,0*1D
534 #        Message Type:      20
535 #        Repeat Indicator:  3
536 #        MMSI:              3669705
537 #        Offset 1:          2182
538 #        Reserved Slots 1:  5
539 #        Timeout 1:         7
540 #        Increment 1:       225
541 #
542 # Type 20 (3 offsets):
543 # From Mike Greene. 
544 !AIVDM,1,1,,B,D030p8@2tN?b<`O6DmQO6D0,2*5D
545 #        Message Type:      20
546 #        Repeat Indicator:  0
547 #        MMSI:              3160097
548 #        Offset 1:          47
549 #        Reserved Slots 1:  1
550 #        Timeout 1:         7
551 #        Increment 1:       250
552 #        Offset 2:          2250
553 #        Reserved Slots 2:  1
554 #        Timeout 2:         7
555 #        Increment 2:       1125
556 #        Offset 3:          856
557 #        Reserved Slots 3:  5
558 #        Timeout 3:         7
559 #        Increment 3:       1125
560 #
561 # Type 21:
562 # Has a Name Extension field
563 # From Mike Greene. Decode is verified by the text being readable.
564 !AIVDM,2,1,5,B,E1mg=5J1T4W0h97aRh6ba84<h2d;W:Te=eLvH50```q,0*46
565 !AIVDM,2,2,5,B,:D44QDlp0C1DU00,2*36
566 #        Message Type:             21
567 #        Repeat Indicator:         0
568 #        MMSI:                     123456789
569 #        Aid Type:                 20
570 #        Name:                     CHINA ROSE MURPHY EXPRESS ALERT
571 #        Position Accuracy:        0
572 #        Longitude:                -122.698591667
573 #        Latitude:                 47.9206183333
574 #        Dimension to Bow:         5
575 #        Dimension to Stern:       5
576 #        Dimension to Port:        5
577 #        Dimension to Starboard:   5
578 #        Type of EPFD:             GPS
579 #        UTC Second:               50
580 #        Off-Position Indicator:   0
581 #        Regional Reserved:        165
582 #        RAIM Flag:                0
583 #        Virtual-Aid Flag:         0
584 #        Assigned-Mode Flag:       0
585 #
586 # Type 22:
587 # From AISHub.  Broadcast case: we won't count this as a full test by
588 # itself because the bit layout of the addressed case is different.
589 # (The addressed form seems to be rare or nonexistent in the wild; none
590 # showed up in a three-hour sample from AISHub, while many broadcasts did.)
591 # Verified only by the fact that the Python and C decoders get consistent
592 # results, we haven't actually seen an independent dump of these fields. 
593 # (The noaadata 0.42 dumper for this type doesn't seem to work.)
594 !AIVDM,1,1,,A,F030ot22N2P6aoQbhe4736L20000,0*1A
595 #        Message Type             : 22
596 #        Repeat Indicator         : 0
597 #        MMSI                     : 3160048
598 #        Channel A                : 2087
599 #        Channel B                : 2088
600 #        Tx/Rx mode               : 0
601 #        Power                    : 0
602 #        NE Longitude             : -44100
603 #        NE Latitude              : 27330
604 #        SW Longitude             : -48100
605 #        SW Latitude              : 25400
606 #        Addressed                : 0
607 #        Channel A Band           : 0
608 #        Channel A Band           : 0
609 #        Zone size                : 4
610 #
611 # Type 23:
612 # From AISHub. Only a regression test to check that the C and Python decoders
613 # do the same thing, not yet checked against other decoders.
614 !AIVDM,1,1,,B,G02:Kn01R`sn@291nj600000900,2*12
615 #        Message Type             : 23
616 #        Repeat Indicator         : 0
617 #        MMSI                     : 2268120
618 #        NE Longitude             : 1578
619 #        NE Latitude              : 30642
620 #        SW Longitude             : 1096
621 #        SW Latitude              : 30408
622 #        Station Type             : 6
623 #        Ship Type                : 0
624 #        Tx/Rx mode               : 0
625 #        Reporting interval       : 9
626 #        Quiet time               : 0
627 #
628 # Type 24:
629 # From Nirgal
630 # One pair of type A and Type B messages.
631 !AIVDM,1,1,,A,H42O55i18tMET00000000000000,2*6D
632 #       MessageID:         24
633 #       RepeatIndicator:   0
634 #       UserID:            271041815
635 #       partnum:           0
636 #       name:              PROGUY
637 !AIVDM,1,1,,A,H42O55lti4hhhilD3nink000?050,0*40
638 #       MessageID:         24
639 #       RepeatIndicator:   0
640 #       UserID:            271041815
641 #       partnum:           0
642 #       shipandcargo:      60|
643 #       vendorid:          1D00014
644 #       callsign:          TC6163
645 #       dimA:              0
646 #       dimB:              15
647 #       dimC:              0
648 #       dimD:              5
649 #
650 #
651 ##############################################################################
652 # Invalid packet tests:
653 ##############################################################################
654 #
655 # That fragment misses part 1, yields nothing:
656 AIVDM,2,2,1,B,00000000000,2*26
657 #
658 #
659 ##############################################################################
660 # Type 24 collisions:
661 ##############################################################################
662 #
663 # 24B from 271041815:
664 # This sentence is missing 24A and is discarded
665 !AIVDM,1,1,,A,H42O55lti4hhhilD3nink000?050,0*40
666 # gpsdecode: AIVDM message type 24 collision on channel A: 24B sentence from 271041815 without 24A.
667 #
668 # 24A from mmsi 271041511:
669 # context is updated
670 !AIVDM,1,1,,A,H42O3qiA8U10Tp0000000000000,2*37
671 #
672 # 24A from mmsi 271040660:
673 # Previous 24A from 271041511 is discarded, context is updated
674 !AIVDM,1,1,,A,H42O0U0Lu`@Dno4000000000000,2*18
675 # gpsdecode: AIVDM message type 24 collision on channel A : Discarding previous sentence 24A from 271041511.
676 #
677 # 24B from mmsi 271020195:
678 # Mmsi mismatch: That packet is discarded and context still hold data from 271040660
679 !AIVDM,1,1,,A,H42Mh`lUi2hhljiI=mikk000B050,0*17
680 # gpsdecode: AIVDM message type 24 collision on channel A: MMSI mismatch: 271040660 vs 271020195.
681 #
682 # 24B from mmsi 271040660:
683 # Success
684 !AIVDM,1,1,,A,H42O0U4Ui3hhhlmI=mmhl000H060,0*2E
685
686 ##############################################################################
687 # Channel multiplexing test:
688 ##############################################################################
689 # simultaneous use of buffers of channels A & B
690 !AIVDM,2,1,6,B,542M92h00001@<7;?G0PD4i@R0<tqA8tj37>220o0h:2240Ht50000000000,0*3B
691 !AIVDM,2,1,2,A,542M92h00001@<7;?G0PD4i@R0<tqA8tj37>220o0h:2240Ht500000000000000,0*3C
692 !AIVDM,2,2,2,A,0000002,2*24
693 !AIVDM,2,2,6,B,00000000000,2*21