-
Notifications
You must be signed in to change notification settings - Fork 49
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
sml_server does not decode data from device DZMeteringGmbH_WS_7412.1 (negative values) #125
Comments
can you be a bit more explicit please? |
The expectation is to get only positive values for actual power in this setup. Unfortunately there are negative values. At the display of the DZ Meter are shown positive values in the same time. |
looking at this, have you checked if this is maybe a known bug with your meter?
|
with some hacking around (extract single messages, combine to to only contain the differing power reading, and disabled crc check),
i'm not fluent in sml and never debugged it at this level, |
looks like this is a meter bug that was already reported: #59 |
i wonder how this bug relates to the one discussed in #105 |
seems to be an issue with the meter |
i guess it would still be valid to implement a workaround, as intended in #59 , the discussion in #105 might be helpful. i guess for you it would work to just hardcode a fix into your libsml build? |
yes in #105 the workaround was mentioned: /* |
@chrischris616: |
@chrischris616: |
yes it seems to be that there is an exact serial number of devices which are affected. my device is affected. the workaround of #105, where the topic was already discussed, unfortunately doesn't work for me. |
i created a pull request for a fix of the existing workaround with this affected device. chrischris616#1 |
Your PR seems to be in the wrong tree or something, it has far too many patches? Also, now with mine (#136) having been merged, I guess you'll need to rebase that. My meter doesn't have L1, I think, so that's why I didn't notice - but it makes sense to convert both. IMHO it'd also make sense to refactor the
condition because the "fix the value" code is exactly the same in both cases:
|
there are negative values for electric power, electric energy counter increases while electrical power is negative. bin and hex files are attached to this issue.
DZMeteringGmbH_WS_74121.zip
The text was updated successfully, but these errors were encountered: