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

fix for workaround to issue sml_server does not decode data from device DZMeteringGmbH_WS_7412.1 (negative values) #125 #1

Open
wants to merge 133 commits into
base: master
Choose a base branch
from

Conversation

chrischris616
Copy link
Owner

there was on sml message more included into the workaround. it is the power of L1, the existing power sum will be renamed.

static const unsigned char dzg_power_name_sum[] = {1, 0, 16, 7, 0, 255};
static const unsigned char dzg_power_name_L1[] = {1, 0, 36, 7, 0, 255};

juriglx and others added 30 commits January 18, 2013 08:41
Identifiers beginning with an underscore followed by a capital letter
are reserved. ISO C99/11 7.1.3p1 and p2.
TheCount's "Cleanup and bugfixes", merge-able
[andig] Provide better error message
r00t- and others added 27 commits March 29, 2021 12:24
After discussions in issue #105 I asked DZG, and they confirmed
the bug was fixed in firmware version 1.2 and 1.3, which ship
with serial numbers starting with "1 DZG 00 6.." (in decimal).

Compare the serial number, and only apply the workaround if it
is indeed less than

  static const unsigned char dzg_serial_fixed[] =
    {0x0a, 0x01, 'D', 'Z', 'G', 0x00, 0x03, 0x93, 0x87, 0x00};

which is "1 DZG 00 60000000" in their decimal representation.

This fixes #105.

Co-authored-by: Johannes Berg <[email protected]>
…pository

squash merged the Andreas Moog changes excluding .gitlab-ci.yml
fix compiler warning when building without libuuid,

uuid_t is `unsigned char`, so the dummy we replace it with should match that.
this is a fix of the DZMeter workaround for wrong values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.