-
Notifications
You must be signed in to change notification settings - Fork 48
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
Unsigned current Power Value #101
Comments
can you attach or link binary dumps of sml transmissions with both variants? |
How do I do that? |
@SirkoVZ: |
oh, look, it's all here: |
Delivery is not marked by by negative sign in EMH ED300L, but there is an flag in the SML protocol, please see volkszaehler/libsml#101
yay, data! first results look good:
and get:
consumption = 0x182 = 0b110000010 (the values differ from those in arendst/Tasmota#8001 (comment) because it's a bit-field, each bit has a separate meaning.) according to the docs
so indeed in the delivery case, bit 5 is the code in tasmota is using (it's a bit annoying that the status field is attached to the energy (Wh) reading, and not to the power (W) reading, |
@SirkoVZ: i'm not sure if this should be implemented in libsml or in it's user. |
@SirkoVZ: |
I can confirm that it is working... more details later, thanks so far :-) |
closing this, as it's out of the scope of libsml, see volkszaehler/vzlogger#431 |
According to the SML protocol
https://www.vde.com/resource/blob/951000/252eb3cdf1c7f6cdea10847be399da0d/fnn-lastenheft-edl-1-0-2010-01-13-data.pdf
page 31 the direction (consumption or delivery) is marked using flag.
It seems the SMLlib is not honoring the flag, as it always shows positive values, even when delivering power.
At least in the EMZ ED300L no negative values are shown when delivering power
The (un)sign seems to be addressed already in Tasmota:
arendst/Tasmota#8001 (comment)
and finally in
arendst/Tasmota@61b9735
Maybe we can also add this in the SML lib...
The text was updated successfully, but these errors were encountered: