Date and time decode - how to? #1469
Unanswered
radzik2024
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I had to write some code myself because of the need to use on windows, so I couldn't apply your output unfortunately, and I didn't want to play with docker or other intermediate solutions.
I decoded the data (electric counter), almost everything is working, but I can't manage to decode the date and time :-( How to do it correctly, what is the algorithm?
How to transform the decoded data (hex):
004213353140
to the value of the correct time and date?
(“device_date_time”:“2025-01-21 19:02:00”)
Should I convert hex to BCD and then divide into bits and in the next step into DEC? Or convert everything to DEC and subtract/add something?
What is the algorithm, because on the website (https://wmbusmeters.org/) is the date and time correctly transormed, but how to do it?
I would be very grateful for your help.
Beta Was this translation helpful? Give feedback.
All reactions