Closed petergam closed 3 years ago
Did you tro to enter the encryption keys without the initial «0x»? I think (@gskjold will probably confirm) the code just wants the hexadecimal keys without the preceding 0x that signifies that the string is hexadecimal.
Did you tro to enter the encryption keys without the initial «0x»? I think (@gskjold will probably confirm) the code just wants the hexadecimal keys without the preceding 0x that signifies that the string is hexadecimal.
If I do that and press save the web UI will automatically add the 0x
prefix again.
Your python decoder only shows the decrypted payload, while my firmware shows the entire frame wrapped around the decrypted payload. You will find the result from your python decoder inside the frame starting in the second line.
Anyway, the problem here is that the DLMS decoder only works if the list size of the payload is correct for the type of meter selected. Right now this only supports the frame I was given by the guy who originally asked for this implementation, which had a list size of 65, not 25. But it looks like you have the same frame as used for unencrypted Kamstrup in Norway, so attached is a firmware the hopefully works for you.
Strange case. Around 20 of my cards are running in Denmark now, and I have not seen this before. If other similar cases show up I will direct them to this thread. @petergp : Email me on post@amsleser.no if you need guidance on how to update the firmware. It can be done via the GUI (easiest) or by cable/FTDI.
I updated the firmware and everything seems to be working correctly now. Thanks for the quick help @gskjold and @ArnieO.
Good to hear! But I am puzzled as to the reason for the issue you experienced here, so taking due note of this.
Commited fix, due for next release.
I wrote an email asking my electricity provider if it would be possible to change to a list size of 65 every 10th second to get all the data more frequently. They replied that my meter was setup to use the norwegian list but they have now changed it to the danish list. I guess this explains the confusion.
Thank you for that information @petergp - very useful to know in case I run into the same issue again!
Hey @gskjold
I have an issue where the data is not shown using my Danish Kamstrup Omnipower meter running on POW-K from @ArnieO. The HAN module is just red.
Here is a dump from the log
I've been able to decrypt the data on my own machine using the python script below.
It seems like the decryption is succesfull since the result I get is similar to what is printed in the logs. Converting this using http://www.gurux.fi/GuruxDLMSTranslator gives
however something must go wrong when parsing the result since it doesn't show any data in AMS or by accessing/data.json directly.
Any help is highly appreciated.