Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AIS TYPE 5 Error #33

Closed
rodrigobarrera1993 opened this issue Jul 17, 2020 · 1 comment
Closed

AIS TYPE 5 Error #33

rodrigobarrera1993 opened this issue Jul 17, 2020 · 1 comment

Comments

@rodrigobarrera1993
Copy link

rodrigobarrera1993 commented Jul 17, 2020

Dear all,

I have been having troubles to parse AIS TYPE 5 messages (they come in 2 parts).

For the Following Messages:
!AIVDM,2,1,9,A,5:U8vcP2<qeM11QB220lE8<u=Dj0MD584pV22216Hh9;C1Pe0Jlm@D1H,074
!AIVDM,2,2,9,A,888888888888880,2
2D

!AIVDM,2,1,1,B,5:UF2F021k4I118F220ME9E0622222222222221@<PR<75Nn0B4m@D1H,053
!AIVDM,2,2,1,B,888888888888880,2
26
AIVDM sample.docx

The first message comes as a type 5 message with error =1 which is expected. However, the second message comes with type 10 even though it is a type 5 continuation of the first one.

Anybody has experienced similar issue?

Best regards,

Rodrigo

EDIT: Apprently the asterisc symbol before the checksum is being changed when I update the comment.
I will attach a word file instead.

@bcl
Copy link
Owner

bcl commented Jul 17, 2020

EDIT: Apprently the asterisc symbol before the checksum is being changed when I update the comment.
I will attach a word file instead.

You can post it as code by enclosing the block in triple-backtick-quotes:

!AIVDM,2,1,9,A,5:U8vcP2<qeM11QB220lE8<u=Dj0MD584pV22216Hh9;C1Pe0Jlm@D1H,0*74
!AIVDM,2,2,9,A,888888888888880,2*2D

!AIVDM,2,1,1,B,5:UF2F021k4I118F220ME9E0622222222222221@<PR<75Nn0B4m@D1H,0*53
!AIVDM,2,2,1,B,888888888888880,2*26

How are you adding the second part of the message? You should be calling assemble_vdm until it returns 0.

@bcl bcl closed this as completed Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants