An open API service indexing awesome lists of open source software.

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.

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.