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. Decryption Problem After Get

Decryption problem after Get

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 , 1 July, 2022
Forums
General discussion

Hi,

After a CompactData Get request, i found a problem during decyphering:
this is the received (crypted) frame from the meter:
0001000100010034DB08343500896745230182012730000000BC08DDEA27AF02D4FCB6AE07634D2E103BFFA78D7F38891D84A780B23450B5F47252D60E0F213110326A42F818196AA3E9C4BDB158CC63E5C80F262097D127B7DBA97426B109734447EB8A877E6653B6ED0F180B808A2B3CCE9AB5F79165B9727288B0DED8563CF3A8DC2B2A4425AA80A2FEA75777364175667819C3DCDE29D41BB53A2B85BCF932086A181496907A10C8CE88C58E17A328E2104A029D4DDC676CBCDE579CE168B40409CD7BABA921855977FF4F734EC1B6E51A918F3807F948C3E593395B440ABD34EAFBE43DA76EE88A17D891A51BE045BA2BD3923EEEAAD9F1FC3C07720721CE546E2B66F202F1548F6E09D20F7AE2BA3E0617B76DFBCEDB60DB0CCFA73B3E189204127BA14CC4EAF34EAC380930C15F872E6AFE3A7B3F60966E19

this is the decrypted frame: C4 01 C1 00 09 82 01 0E 29 04 04 06 05 00 00 05 FF FF FF FF FF 04 00 00 00 00 05 00 00 00 00 00 04 00 00 00 00 05 00 00 00 00 00 04 00 00 00 00 05 00 00 00 00 00 01 00 3E 06 00 00 42 00 30 FF 02 00 00 FF FF FF FF 1C 20 00 00 00 04 04 06 05 00 00 05 FF FF FF 03 D8 04 00 00 00 00 05 00 00 00 00 00 04 00 00 00 00 05 00 00 00 00 00 04 00 00 00 00 05 00 00 00 00 00 01 00 3E 06 00 00 42 00 30 FF 02 00 00 FF FF FF FF 1C 20 00 00 00 04 04 06 05 00 00 05 FF FF FF 02 DC 04 00 00 00 00 05 00 00 00 00 00 04 00 00 00 00 05 00 00 00 00 00 04 00 00 00 00 05 00 00 00 00 00 01 00 3E 06 00 00 42 00 31 FF 02 00 00 FF FF FF FF 1C 20 00 00 00 04 04 06 05 00 00 05 FF FF FF FF 07 04 00 00 00 00 05 00 00 00 00 00 04 00 00 00 00 05 00 00 00 00 00 04 00 00 00 00 05 00 00 00 00 00 01 00 3E 06 00 00 42 00 33 FF 02 00 00 FF FF FF FF 0E 10 00 00 00 00

but when I use GXDLMSClient.GetData(byte[] reply, GXReplyData data, GXReplyData notify), I see the part that it uses to decipher is only
DB 08 34 35 00 89 67 45 23 01 82 01 27 30 00 00 00 BC 08 DD EA 27 AF 02 D4 FC B6 AE 07 63 4D 2E 10 3B FF A7 8D 7F 38 89 1D 84 A7 80 B2 34 50 B5 F4 72 52 D6 (it removes part of the frame)

so it returns
throw new Exception("Not enought data.");

Is there a sort of frame size limit?

Thanks

Profile picture for user Kurumi

Kurumi

3 years 11 months ago

Hi,

Hi,

There aren't any limits. Can you share the ciphering key with me for example with email so I can check the bytes and what is causing this?

BR,
Mikko

SgmUsr

3 years 11 months ago

the key is

Hi,

the key is 000102030405060708090a0b0c0d0e0f and client system title is 0000000000000000.

thanks

Profile picture for user Kurumi

Kurumi

3 years 11 months ago

Hi,

Hi,

There is an issue with the meter. The data length is invalid.

0001
0001
0001
0034 //WRONG. There are more bytes than 52 bytes.
...

You need to ask the meter manufacturer to fix it.

BR,
Mikko

SgmUsr

3 years 11 months ago

In reply to Hi, by Kurumi

Hi,

Hi,
thanks for your time and for your help.

I'll check this length value with them.

BR

  • 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