Skip to main content
Home
for DLMS smart meters

Main navigation

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

Breadcrumb

  1. Home
  2. Decrypting Smart Meter With DLMS Translator

Decrypting Smart Meter with DLMS Translator

By Franz, 28 May, 2024
Forums
DLMSDirector

I have tried to decrypt my encrypted smart meter data with this version 9.0.2404.1801. To do this, I copied the encrypted message (which I also copied to the Serial Monitor) to Messages in the DLMS Translator and entered my Global Unicast Encryption Key (GUEK) under Ciphering. When I click on File-> Translate, however, nothing happens - on the right-hand side I only see the block cipher key and no decrypted data. Smart Meter is the Sagemcom T210-D-r from Energienetze Steiermark.
Does anyone have any idea what is going wrong here?

KR
Franz

Image
Profile picture for user Kurumi

Kurumi

11 months 3 weeks ago

Hi Franz, You need to select…

Hi Franz,

You need to select "Messages" tab and add a frame to the left side. Then press Translate and you can see the output on the right side. If you don't see anything you need to make sure that framing is correct. DLMS data can be sent in multiple different frames.

BR,
Mikko

Franz

11 months 3 weeks ago

Hi Mikko, thanks for the…

Hi Mikko,
thanks for the quick reply - unfortunately I'm not an expert on this. This is what my message currently looks like:

DB 08 53 41 47 35 00 04 3D DB 82 01 F2 30 00 00 00 7E 22 DC D9 E6 8B CA 69 2B F4 07 5A 5B DF 4F 5E81 08 60 AA D1 B4 9D 5B 5E 1B 78 A5 D1 AA E5 BC F1 10 88 74 CA 28 F5 B1 2B EB 70 50 98 95 47 E7 48 57 21 71 37 29 CB 55 19 7E 26 E5 9F C5 61 E8 2D EE 45 C5 EF 53 3E EB 5C FD 22 3B 08 63 88 3E 7D 97 352C FD 87 82 71 5F 11 05 2E BD 88 97 39 4C 99 34 5B 5A 0D 62 78 58 1E 26 5A BA D9 45 B3 02 AC 84 65 88 0C AB 1C 34 A7 D5 BC A5 BE A3 3E 23 EF 68 E1 16 7F AA 96 F0 EF DC 30 4B 37 90 B2 3B 76 CA 1A83 76 3B DB E6 26 1B 4D C5 55 8C 52 0A 87 1D 34 8E 85 6E AB 20 D0 BE 77 14 ED E7 FE EC E2 E8 28 91 AC 33EF ED 09 38 BA 7B 4B 09 66 72AC 37 01 2C CB 76 1A5D B4 22 F2 F3 CC 28 69 49 B7 65 75 1E 0B F6 5E A8 F6 A6 4B 40 95 12 02 E6 B1 C8 A8 EC 8C A3 B6 01 85 68 20 FA 24 70 D7 C5 89 60 90 71 47 2A 72 A2 3A AC 32 18 0E E7 75 07 C1 0E 94 F3 78 58 E8 78 3A C1 D0 66 30 D2 5E 73 9A A0 4D 8E 45 91 01 D4 C0 A1F6 CC 48 8A 22 45 32 14 E9 40 C3 7D 8D EE 52 84 3A C5 85 36 64 27 07 6A 73 41 EC 8E 7C 00 74 A2 1C C4 4C 88 62 49 87 31 B2 6B 12 A6 B0 D0 AA 17 14 7B 47 FE FF 30 33 EB 65 37 4C C8 CF 64 63 9A 31 ED F8 49 9C 39 A8 1D 46 7F 0C 31 14 3F E6 10 E3 4D 5F 83 0C CA 82 88 E2 36 34 1F E9 38 44 43 CC 04 9E 87A3 5C 0F BA D1 88 78 68 3D BEF7 BB 20 C2 9A 32 E1 30 36 0D 1B 9E 58 14 0B E9 7F 63 38 EB 34 85 9F 6C 44 C2 89 7E CC 8A EF 04 19 94 C7 60 AB C1 13 04 EC F2 28 FC EE D6 10 72 F2 97 AB A2 94 BB EC 16 6C 56 1ADD 73 D5 05 F2 52 C5 E5 A2 0E D1 B3 95 37 CD 57 1E 1F A9 50 0A 61 A0 32 55 A5 C6 40 67 DB 8D0C 7B DB 81 03 DA E3 18 CA 71 A5

In my opinion, the data that is determined every 5 seconds has the same format

KR

Profile picture for user Kurumi

Kurumi

11 months 3 weeks ago

Hi, This is a plain PDU…

Hi,

This is a plain PDU without a frame. Usually PDU is the payload of the frame. Now there are no checksums, etc.

Select "PDU" tab and add this data there. Select "Translate" and you can see the decrypted output if your authentication and block cipher keys are correct.
You can see XML output even if your keys are wrong, but the content of the data is not shown because it can't be decrypted.

BR,
Mikko

Franz

11 months 3 weeks ago

thanks, understood. When I…

thanks, understood.

When I do this, I get the following result:

<!-- DLMS system title:
Manufacturer Code: SAG
Serial number: 277979
-->
<GeneralGloCiphering>
<SystemTitle Value="5341473500043DDB" />
<CipheredService Value="300000007E22DCD9E68BCA692BF4075A5BDF4F5E810860AAD1B49D5B5E1B78A5D1AAE5BCF1108874CA28F5B12BEB7050989547E7485721713729CB55197E26E59FC561E82DEE45C5EF533EEB5CFD223B0863883E7D97352CFD8782715F11052EBD8897394C99345B5A0D6278581E265ABAD945B302AC8465880CAB1C34A7D5BCA5BEA33E23EF68E1167FAA96F0EFDC304B3790B23B76CA1A83763BDBE6261B4DC5558C520A871D348E856EAB20D0BE7714EDE7FEECE2E82891AC33EFED0938BA7B4B096672AC37012CCB761A5DB422F2F3CC286949B765751E0BF65EA8F6A64B40951202E6B1C8A8EC8CA3B601856820FA2470D7C589609071472A72A23AAC32180EE77507C10E94F37858E8783AC1D06630D25E739AA04D8E459101D4C0A1F6CC488A22453214E940C37D8DEE52843AC585366427076A7341EC8E7C0074A21CC44C8862498731B26B12A6B0D0AA17147B47FEFF3033EB65374CC8CF64639A31EDF8499C39A81D467F0C31143FE610E34D5F830CCA8288E236341FE9384443CC049E87A35C0FBAD18878683DBEF7BB20C29A32E130360D1B9E58140BE97F6338EB34859F6C44C2897ECC8AEF041994C760ABC11304ECF228FCEED61072F297ABA294BBEC166C561ADD73D505F252C5E5A20ED1B39537CD571E1FA9500A61A03255A5C64067DB8D0C7BDB8103DAE318CA71A5" />
</GeneralGloCiphering>

If I understand you correctly, you mean that the keys are not correct because it could not decode the values?

KR

Profile picture for user Kurumi

Kurumi

11 months 3 weeks ago

Hi, Yes, the block cipher…

Hi,

Yes, the block cipher key is not correct because you don't see decoded values.

BR,

Mikko

Franz

11 months 3 weeks ago

Hi Mikko, i was afraid of…

Hi Mikko,

i was afraid of that. I received a Global Unicast Encryption Key (GUEK) and a Global Authentication Key (GAK) from the network operator. I assume that the Global Unicast Encryption Key is the correct one for the block cipher, correct?

Profile picture for user Kurumi

Kurumi

11 months 3 weeks ago

Hi, Yes, set GUEK to the…

Hi,

Yes, set GUEK to the encryption key and GAK to the authentication key. If they are the correct keys you can see the decrypted output.

I can say from experience that it's quite common that the network operator sent the wrong keys. You are lucky if you have received the correct keys on the first try. :-)

The bigger problem is if the meter is sending data without framing. There is no checksum, etc...

BR,
Mikko

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 05/14/2025 - 08:30
    gurux.dlms.c 9.0.2505.1401
  • Tue, 05/13/2025 - 10:00
    Gurux.DLMS.Android 2.0.15
  • Fri, 05/09/2025 - 13:03
    Gurux.DLMS.Python 1.0.181
  • Wed, 05/07/2025 - 16:09
    Gurux.DLMS.Android 2.0.14
  • Tue, 05/06/2025 - 09:34
    gurux.dlms.c 9.0.2505.0601

New forum topics

  • How to create an DLMS Simulator with HighGMac authentication
  • Actaris Itron - SL7000 761 - "disconnected mode" problem
  • gxaes.c can be compiled in current version under Linux
  • how to limit frame size on client side?
  • MBUS Diagnostic
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin