CRC16 Code for ARM and x86 (python)

For more advanced meter data users. Learn from others and ask questions about how to read meters, how to use the EKM Push Data, and how to display the meter data in useful ways.
Post Reply
Jameson
Posts: 769
Joined: Fri Nov 04, 2011 7:42 pm
Location: Santa Cruz, CA
Contact:

CRC16 Code for ARM and x86 (python)

Post by Jameson » Tue Mar 17, 2015 8:47 am

From one of our developers (consider this version 1):

The instructions below work great on both ARM and x86.

To use it, drop both files into your directory and call:

Code: Select all

python setup.py build_ext -inplace
which will generate the ekmcrc.so library.

In the python code

Code: Select all

import ekmcrc
And then call

Code: Select all

my_crc_as_hex_string_crc = ekmcrc.ekmcrc(my_data_string)
All the usual caveats apply: gcc and python-devel need to be installed. Should work on any standard linux distro.

Here is a link to the files: https://www.dropbox.com/sh/9wounarabxyh ... o4dQa?dl=0
Jameson
EKM METERING
http://www.ekmmetering.com
831.425.7371

Post Reply