Hi there,
May somebody help me with the error I get when trying to decode a message from my meter?
I'm using a Siemens IM350 SmartMeter that is pushing messages once a second without sending anything to it, so no initialization happening.
The data I get is encrypted with a block cypher key.
When useing Gurux DLMS Transfer and the correct cypher key I get a perfectly fine decoded XML with all the data I need.
When trying the same with GXDLMSTranslator in Python I get the error message:
"'NoneType' object has no attribute 'moreData'"
The code I'm using is:
----------------------------------------------------------------------------------------
# import modules needed
from gurux_dlms import *
# reading from serial interface
data = "7ea079cf0002002313d986e6e700db08534d53677004b5f75f200014d81a188d82989644c709df1f1e596d4c26a2ffd254d2e8ac5fdbfbb3e3c9f6f5b13ca752720feb366ba57086a153442f8c8fbc56cdb46fc0b92b1e9e2b9c5433bdffaffe1b037d65624b2fa1c6178caee285ac2e2507877c47b0a6e6c2e27e"
xml = ""
# decrypting received data
decrypt = GXDLMSTranslator(TranslatorOutputType.SIMPLE_XML)
decrypt.comments = True
decrypt.blockCipherKey =GXByteBuffer.hexToBytes("My Cypher Key")
some examples are:
7ea079cf0002002313d986e6e700db08534d53677004b5f75f200014d823276045d54aa189b6cff959acde7909846ac7d6cdeff082cb1232d8d62976b24e91aa8d06eeca29c87a4de23dff2b4ffc0483399f1814e3456f26af70e36c74e0cf4c679f90c95c990965937993d65f8b21ba6b3c0137268b14ea2c8d7e
Somehow the versions of the gurux-modules got mixed up. Probably because I installed them by running pip and in addition to that cloning them from git.
Anyway I'm now able to decode my data! :-)
That's a huge step of integrating my smartmeter towards the integration in my volkszaehler-application!
Hi Philipp,
Hi Philipp,
Thank you fro thin info. This is fixed and new version is released later today.
BR,
Mikko
Hi,
Hi,
This is fixed. Get the latest version.
BR,
Mikko
Hi Mikko,
Hi Mikko,
Thx for coming back to me that quick.
I've updated all Gurux-Libraries with "git pull ..." and pip install.
I'm now running:
gurux_dlms version: 1.0.58
gurux_net version: 1.0.17
gurux_serial version: 1.0.14
Nonetheless I do get the same error-message "'NoneType' object has no attribute 'moreData'"
May you assist further please?
Thx,
Philipp
Hi,
Hi,
Update gurux.dlms. run
pip install --upgrade gurux_dlms. Your version should be 1.0.64.
BR,
Mikko
Hi!
Hi!
Did that but still no luck.
Why does your Python Push Example report back a different version of the library?
Cheers,
Philipp
Hi,
Hi,
You have not installed the latest version. Try with this:
pip3 install --upgrade gurux_dlms. Your version should be 1.0.64.
You can get list from outdated version running:
pip list --outdated
or
pip3 list --outdated
BR,
Mikko
Good Morning Mikko,
Good Morning Mikko,
Somehow the versions of the gurux-modules got mixed up. Probably because I installed them by running pip and in addition to that cloning them from git.
Anyway I'm now able to decode my data! :-)
That's a huge step of integrating my smartmeter towards the integration in my volkszaehler-application!
Thank you very much!