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. How To Handle Push Message In Ansi C Library

how to handle push message in ansi c library

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 Mohanraj , 21 April, 2020
Forums
General discussion

Hi Mikko,

could you please provide sample code for handling push message in ansi c library being client?
push messages are 1.instantaneous data 2. Events.

Thanks
Mohan Raj

Profile picture for user Kurumi

Kurumi

6 years 1 month ago

Hi Mohan,

Hi Mohan,

Check push example. It'll do what you want.
https://github.com/Gurux/GuruxDLMS.c/tree/master/GuruxDLMSPushExample

BR,
Mikko

Mohanraj

6 years 1 month ago

In reply to Hi Mohan, by Kurumi

ok. I shall check

ok. I shall check

Mohanraj

6 years ago

In reply to ok. I shall check by Mohanraj

Hi Mikko,

Hi Mikko,

how to i decrypt or interpret the data received from meter? please guide me to sample code.As i told earlier client is connected already. am not having the clear idea about to how to do.

Type1 message:

00 01 00 01 00 40 00 DF DB 08 56 54 4B 30 30 30 30 32 82 00 00 20 00 00 00 01 0F 00 00 00 01 0C 07 E3 0C 0B 03 0D 1F 12 FF 80 00 FF 02 1A 0A 0D 56 54 4B 30 30 39 31 30 30 30 30 30 32 09 06 00 00 19 09 00 FF 09 0C 07 E3 0C 0B 03 0D 1F 12 FF 80 00 FF 12 5C F0 05 00 00 00 00 05 00 00 00 00 10 03 E8 12 13 86 06 00 00 00 00 05 00 00 00 00 15 00 00 00 00 00 00 00 00 15 00 00 00 00 00 00 00 00 15 00 00 00 00 00 00 00 00 09 0C 00 00 00 00 00 00 00 00 FF 80 00 FF 15 00 00 00 00 00 00 00 00 09 0C 00 00 00 00 00 00 00 00 FF 80 00 FF 06 00 00 00 0E 06 00 00 00 00 06 00 00 00 00 06 00 00 00 01 06 00 00 00 00 06 00 00 00 00 15 00 00 00 00 00 00 00 00 15 00 00 00 00 00 00 00 00 03 01 06 00 00 00 11

Type2 message:

00 01 00 01 00 40 00 5F DB 08 56 54 4B 30 30 30 30 31 82 00 00 20 00 00 00 01 0F 00 00 00 01 0C 07 E3 0C 0B 03 0D 10 06 FF 80 00 FF 02 04 0A 0D 56 54 4B 30 30 39 31 30 30 30 30 30 31 09 06 00 04 19 09 00 FF 09 0C 07 E3 0C 0B 03 0D 10 06 FF 80 00 FF 04 82 00 80 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00

Below link is for push example i.e it will connect to server and sends push message. But my requirement is different that is being a client how to interpret/decrypt/process the data.
https://github.com/Gurux/GuruxDLMS.c/tree/master/GuruxDLMSPushExample

Thanks
Mohan Raj

Mohanraj

6 years ago

In reply to Hi Mikko, by Mohanraj

Hi Mikko,

Hi Mikko,

Any update please? could you please help me?

Thanks
Mohan Raj

Profile picture for user Kurumi

Kurumi

6 years ago

Hi Mohan,

Hi Mohan,

Please, don't ask for updates. I'll answer as soon as I have time.

When you set keys data is encrypted automatically. There is an issue with data that meter sends.
The size of the ciphered service is invalid (zero). Ask your meter manufacturer to fix it.

BR,
Mikko

Mohanraj

6 years ago

In reply to Hi Mohan, by Kurumi

Hi Mikko,

Hi Mikko,

Thanks for the update.
Below is the another message from the meter. could you please tell me how to interpret using ANSI C library?

00 01 00 01 00 20 00 12 C4 01 81 00 09 0C 07 E4 04 0F 03 10 1E 34 FF 80 00 FF 00 01 00 01 00 40 00 DF DB 08 56 54 4B 30 30 30 32 31 82 00 00 20 00 00 00 01 0F 00 00 00 01 0C 07 E4 04 0F 03 10 1E 37 FF 80 00 FF 02 1A 0A 0D 56 54 4B 30 30 39 31 30 30 30 30 32 31 09 06 00 00 19 09 00 FF 09 0C 07 E4 04 0F 03 10 1E 37 FF 80 00 FF 12 5A 12 05 00 00 00 00 05 00 00 00 00 10 03 E8 12 14 0B 06 00 00 00 00 05 00 00 00 00 15 00 00 00 00 00 00 47 4A 15 00 00 00 00 00 00 47 5A 15 00 00 00 00 00 00 00 00 09 0C 00 00 00 00 00 00 00 00 FF 80 00 FF 15 00 00 00 00 00 00 00 00 09 0C 00 00 00 00 00 00 00 00 FF 80 00 FF 06 00 00 5E D9 06 00 00 00 00 06 00 00 00 03 06 00 00 00 01 06 00 00 00 24 06 00 00 00 24 15 00 00 00 00 00 00 00 00 15 00 00 00 00 00 00 00 00 03 01 06 00 00 00 11

Please guide me after receiving the above data what are all functions and settings to be done to have data.

Thanks
Mohan Raj

Mohanraj

6 years ago

In reply to Hi Mikko, by Mohanraj

Hi Mikko,

Hi Mikko,

I will ask meter manufacturer to fix this and share you proper ciphered push message. So that you can tell me what are things i have to follow to interpret and get the data.

Thanks
Mohan Raj

Profile picture for user Kurumi

Kurumi

6 years ago

Hi Mohan,

Hi Mohan,

Before this is fixed to the meter you can't get the decrypted data.

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