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. Ciphered XDLMS PDU

Ciphered xDLMS PDU

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 Shaswat , 9 December, 2014

Good Day!

I just start working on DLMS protocol for my 3 phase energy meter. I want to know that how Ciphered xDLMS APDU's works. I don't understand how security header and encrypted parts works. What value should I assign into it.

I was also trying to understand using example provided into DLMS website, but get no success. I also tried to find out in excerpt Green book but still stuck in there.

Can you please give me some brief explanation how to take care of this with example?

Any new idea would be really appreciated...

Thanks in advance

Profile picture for user Kurumi

Kurumi

11 years 6 months ago

Ciphered xDLMS PDU

Hi,

Just to make sure:

1. What programming language you want to use?

2. What High Level Authentication you want to use?

BR,

Mikko

Shaswat

11 years 6 months ago

In reply to Ciphered xDLMS PDU by Kurumi

Hi, Currently, I am using C

Hi,

Currently, I am using C programming language. For the sake of simplicity, I want to use Lowest Level Authentication. I read the "Data Access Security" , "Data Transport Security" and "Ciphered xDLMS APDU" (Fig. 64 Green Book Ed. 7) section but still not understand how to encode the message , how to use security header bits and encrypted xDLMS APDU. What values to assign them.

Profile picture for user Kurumi

Kurumi

11 years 5 months ago

Ciphered xDLMS PDU

Hi,

You must implement GMAC crypter. If you get source codes from C# you can get a clue how to start. DLMS/COSEM is quite complicated protocol. :-(

It's too hard to explain structure of APDU.
You can send me an email and we can talk more
if you want us to help you more in this case.

BR,

Mikko

Profile picture for user pardeepk3264

pardeepk3264

6 years 6 months ago

I just start working on DLMS

I just start working on DLMS protocol for my 1-phase energy meter. I want to know that how Ciphered DLMS APDU's works.

Can you please give me some brief explanation in C Language, how to get or set METER RTC using Ciphering with 32 or 48 Association ?

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi PARDEEP ,

Hi PARDEEP ,

Please, if you have a new question, create a new topic.

I believe that the best way to start is if you download GXDLMSDirector and play with that.
Try first without ciphering. It makes things easier.

If you want to use ciphering you need to set system title, authentication key, and block cipher key.
You find this information from "Secured connections" tab.
BR,
Mikko

Profile picture for user pardeepk3264

pardeepk3264

6 years 5 months ago

BE 34 04 32 21

BE 34 04 32 21
30 //length
30 //sc-ae
00 00 00 03 //ic inovation counter

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 //apdu
93 E5 23 2C E1 54 85 A3 68 39 58 CE

17 : 25 : 30 METER-1 COSEM OUT DATA - CIPHERED
17 : 25 : 30 ====>Tx METER-1 60 63 A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 41 4D 45 30 30 30 30 30 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 07
80 05 48 65 6C 6C 6F BE 34 04 32 21 30 30 00 00 00 03
92 F8 7C 7E 36 F0 5B 2A 8B BB BA 13 79 8C 15 EA AE 7C D0 D9 EE 02 7D F7 DD 63 A5 F4 38 6B 33
93 E5 23 2C E1 54 85 A3 68 39 58 CE

PLEASE HELP ME TO HOW CONVERT THE APDU DATA IN TO CIPHERTEXT{00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 //apdu} AND HOW CALCULATE A AUTHENTICATION TAG {93 E5 23 2C E1 54 85 A3 68 39 58 CE}

Profile picture for user Kurumi

Kurumi

6 years 5 months ago

In reply to BE 34 04 32 21 by pardeepk3264

Hi ,

Hi ,

When you select forum, example
http://www.gurux.fi/forum/25

there is a "New Topic". Press that and create a new topic.

http://www.gurux.fi/node/add/forum/25

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