-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 m_bus length calculation #2749
Conversation
Removes "strange" +2/-2 offset from length Discussion on merbanan#2711
So there is a defacto standard of adjusting the output of the telegram in hardware decoders. This code is supposed to output the same data as hardware decoders. There might be bugs but AFAIK this is correct for wmbusmeters use. Can you elaborate why you want to change this ? Ie give some telegram output example with before and after. |
According to my testing and experiments: Our water meter (Qalcosonic) uses encryption to get the data. Right now, due to bad reception in the basement and the holiday season, I am not able to provide example data in a short term. I can understand if unencrypted data is decoded, some extra byes at the end is not a big deal, but AES does care. And if the "last" commit 17738a5 to I will provide example data next year, but don't expect our AES key. |
Here is example data. Both frames are captured at the same time. Data from
Data from wmbusmeters, with a IM871A dongle:
And some extra notes.
|
The reason for the telegram output is to match the IM871A output. That should be adjusting the length data and removing the crc bytes. If the current output does not match this then we have bugs in the codec and fixes are welcome. |
Where are we on this? |
Include the final CRC for wmbusmeters to verify decryption. Partially rolls back #2749 change.
Include the final CRC for wmbusmeters to verify decryption. Partially rolls back #2749 change.
Removes "strange" +2/-2 offset from length
Discussion on #2711