Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Problem With Decrypt In Python

Problem with Decrypt in Python

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By SgmUsr , 27 January, 2021
Forums
General discussion

Hi,

I'm having a problem with a decryption phase with Python.

With this "Get Clock" request "7ea02e022103101c2ce6e600db001e3080000050523e079fa8b6375439df06798690dd1abf4c6357aba96cb98a72bd7e", meter returns "7ea033030221304d25e6e700db002330800000445765bdffdb7758bf79857392065e5c8a55a716ae902eac60519da7a9eeee42747e", which is correct.

But with self.clientSecure.getData(result, reply), it returns
"\gurux_dlms\GXDLMS.py", line 1678, in getPdu
raise ValueError("Invalid Command.")
ValueError: Invalid Command."

I'm using
- cst = '0000000000000000',
- sst = '3435110210410103',
- authenticationKey = 'A55E245150AE1CD434D58C5E08884084'
- blockCipherKey = 'A55E245150AE1CD434D58C5E08884084'

Could anyone help me?

Thanks a lot

Profile picture for user Kurumi

Kurumi

5 years 4 months ago

Hi,

Hi,

I checked from the trace that you are using Management client. Italy standard doesn't send serverSystemTitle Have you set it like this:
client = GXDLMSClient(...)
client.serverSystemTitle = GXByteBuffer.hexToBytes('3435110210410103')

BR,
Mikko

Profile picture for user Kurumi

Kurumi

5 years 4 months ago

Hi,

Hi,

Italy standard doesn't send system title as part of GLO_CIPHERING and now server system title is set to zero. I created an issue from this:
http://www.gurux.fi/node/17764

This is now fixed. Update to version 1.0.96.

BR,
Mikko

SgmUsr

5 years 4 months ago

In reply to Hi, by Kurumi

Hi,

Hi,

I found an error also in \gurux_dlms\GXDLMSChippering.py, row 112: tmp2.SetUInt8(0)

It could be "tmp2.setUInt8(0)".

Without this error it works very well.

Thank.

Profile picture for user Kurumi

Kurumi

5 years 4 months ago

Hi,

Hi,

Thank you for this info. I created an issue from this and this is fixed. The new version is released today.
https://www.gurux.fi/node/17766

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin