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

NRZI encoding #9

Closed
zerodamage opened this issue Jul 4, 2017 · 4 comments
Closed

NRZI encoding #9

zerodamage opened this issue Jul 4, 2017 · 4 comments

Comments

@zerodamage
Copy link

Hi

I'm trying to replicate some of your work here, but I cannot figure out how to interpret the usage of NRZI in AIS. The wikipedia article on AIS signals indicate that only the payload is NRZI encoded, if this is wrong, please let me know so we can get that corrected...

Best Regards

@astuder
Copy link
Owner

astuder commented Jul 4, 2017

If that's what Wikipedia says, it's wrong. Every bit is NRZI encoded, including preamble and start/end flags. In contrast, bit stuffing only applies to the payload between start and end flag.

@zerodamage
Copy link
Author

Alright, I will edit the page then, thanks for the quick reply 👍

@astuder
Copy link
Owner

astuder commented Jul 4, 2017

Just checked the Wikipedia article. A lot of new content since I last looked.

The description of multi-slot messages can also be read in the wrong way. Long messages aren't really broken up but keep going until they are done (CRC, end flag), which may span multiple slots.

@zerodamage
Copy link
Author

zerodamage commented Jul 4, 2017

I'm working on the other bits, feel free to correct that with your knowledge :)

Done

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