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

Add CRC16 verification #10

Closed
ndokter opened this issue Dec 26, 2016 · 0 comments
Closed

Add CRC16 verification #10

ndokter opened this issue Dec 26, 2016 · 0 comments

Comments

@ndokter
Copy link
Owner

ndokter commented Dec 26, 2016

Telegram values include a CRC16 checksum which can be used that the telegram is valid. This check prevents invalid data due to corrupted values, as the serial interface doesn't have any built-in verification.

It will raise a subtype of the existing ParseError from the serial client.

The CRC16 check currently verifies DSMR 4.2 telegrams. Telegrams of other versions are appreciated. I will anonymize them of equipment identifiers before adding them to the repository. If you decide to supply one, please leave them intact so i have valid data to test with before anonimizing them.

@ndokter ndokter closed this as completed Dec 29, 2016
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

1 participant