https://github.com/rhinodevel/crc16calc
A CRC-16 calculator available in JavaScript and C.
https://github.com/rhinodevel/crc16calc
crc crc16 crc16ccitt smart-meter sml
Last synced: 7 months ago
JSON representation
A CRC-16 calculator available in JavaScript and C.
- Host: GitHub
- URL: https://github.com/rhinodevel/crc16calc
- Owner: RhinoDevel
- Created: 2023-01-01T20:11:37.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-02T19:01:32.000Z (almost 3 years ago)
- Last Synced: 2025-01-19T18:47:26.926Z (9 months ago)
- Topics: crc, crc16, crc16ccitt, smart-meter, sml
- Language: HTML
- Homepage: https://rhinodevel.github.io/crc16calc/
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a CRC-16 generator preconfigured with input values to generate a CRC-16-CCITT (X.25) checksum the way it should be calculated by devices sending SML (Smart Message Language) messages, e.g. so called smart meters (measuring the consumed energy and more) as the Iskra MT175 does.
It is based on source code from Sven Reifegerste (see http://www.zorc.breitbandkatze.de/crc.html).
Please take a look at the (short) function getCrc16ForBytes() that does the calculation (almost everything else is code to make the website work).
There is also a C port in the subfolder called "C", it holds the two library files and a commandline tool to calculate and print the CRC value from a commandline argument.