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. Parse Meter's Push Data

Parse meter's push data

By Mahaveer, 7 March, 2025
Forums
Gurux.Net

Hi Team

Please guide me to parse received meter data which is pushed by meter on port 4059.
I am using below code, but getting error as invalid client.

private GXDLMSSecureClient client = new GXDLMSSecureClient(true, 0x10, 1, Authentication.None, null, InterfaceType.WRAPPER);

void OnReceived(object sender, Gurux.Common.ReceiveEventArgs e)
{
try
{
lock (this)
{
if (trace)
{
Console.WriteLine("Data from client {0}: {1}", e.SenderInfo, GXCommon.ToHex((byte[])e.Data, true));
// Getting below response in e.data
00 01 00 01 00 40 00 67 DB 08 5A 45 4E 31 35 36 39 32 5C 30 00 00 DC 6C C4 E5 F8 D6 EC 21 54 59 EC DA 99 C9 2F 3E BF A5 26 9B B7 6B AB A8 81 07 DA DF C6 E9 E4 F7 84 D8 FE 17 07 E5 B9 EF 56 9B 32 C5 C8 BD 3C CA 68 94 6F 8F 60 C6 1D 34 E6 8A 34 BA F3 26 FB 30 99 22 7A 23 00 51 06 69 54 72 33 23 97 B2 57 8A 96 CA 03 80 52 7E 3F 36 AE

}

byte[] data = (byte[])e.Data;
GXReplyData info = new GXReplyData();
client.GetData(data, info); // getting error here

I am using ZenMeter's single phase meter.
I have tried different client address and server address, but nothing is working.

Thanks,
Mahaveer

Profile picture for user Kurumi

Kurumi

3 months 1 week ago

Hi, Your data is encrypted…

Hi,

Your data is encrypted. You need to set the block cipher key and authentication key to the client.

client.Ciphering.BlockCipherKey = METER BLOCK CIPHER KEY;
client.Ciphering.AuthenticationKey= METER AUTHENTICATION KEY;

BR,
Mikko

Mahaveer

3 months 1 week ago

Hi Mikko, Thanks for the…

Hi Mikko,
Thanks for the support, now it's working fine.

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

Hire Us!

Latest Releases

  • Tue, 06/17/2025 - 13:03
    Gurux.DLMS.Python 1.0.182
  • Wed, 06/04/2025 - 13:35
    gurux.dlms.c 9.0.2506.0401
  • Fri, 05/30/2025 - 08:30
    gurux.dlms.c 9.0.2505.3001
  • Tue, 05/27/2025 - 08:10
    Gurux.Serial.Android 2.0.12
  • Mon, 05/26/2025 - 08:39
    gurux.dlms.c 9.0.2505.2601

New forum topics

  • Day profile action item add error (String is not recognized as valid DateTime value)
  • Create gateway protocol in c
  • Error while reading event log object
  • GXDLMS Simulator – AssociationLogicalName Not Listed
  • Failed to read meter through raspberry pi 5 and probe
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin