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. Client.GetData(trama, Rd, New GXReplyData()) False Though Frame Received Is Correct

client.GetData(trama, rd, new GXReplyData()) false though frame received is correct

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 , 16 October, 2019
Forums
Gurux.DLMS

Hi all,

I'm trying to comunicate with my smart meter locally but sometimes when I receive frame and try to do "Client.GetData(p.Reply, reply)" to decrypt the frame, this method return false and I receive in system console "Invalid HDLC Frame: 52. Expected: 32", though frame I received is correctly decrypted.

(Now I'm not using "void ReadDataBlock(byte[] data, GXReplyData reply)" because I don't understand the method Client.ReceiverReady(reply.MoreData), but I'm only using Serial.Send() and Serial.Receive().)

An example:

<- 03:49:44.854 Sent 7E A0 2E 02 21 03 32 0C 2E E6 E6 00 DB 00 1E 30 80 00 01 02 BE B4 68 6B DC B5 90 85 48 E9 49 09 58 96 E8 6D 07 61 F9 26 02 1E 27 D1 C0 96 DB 7E
Decrypted Frame: (C0 01 C1 00 01 00 00 5E 27 14 FF 02 00)

and I receive
-> 03:49:44.985 Received 7E A0 36 03 02 21 52 0D 43 E6 E7 00 DB 00 26 30 80 00 00 FB 04 2F 17 1A
-> 03:49:45.014 Received 1A EF B3 E6 72 3F DB
-> 03:49:45.041 Received 17 74
complete frame (7E A0 36 03 02 21 52 0D 43 E6 E7 00 DB 00 26 30 80 00 00 FB 04 2F 17 1A EF B3 E6 72 3F DB D0 19 A2 51 0F 1B 9F C0 0D C0 D7 73 24 79 62 9F 72 B2 BE 8E 9D D8 D0 17 74 7E)
decrypted frame: (C4 01 C1 00 02 03 06 00 00 00 00 06 00 00 00 00 06 00 00 00 00)

Invalid HDLC Frame: 52. Expected: 32

Best Regards.

Profile picture for user Kurumi

Kurumi

6 years 9 months ago

Hi,

Hi,

Are you using pre-established communication? How often this is happening? Can you send the trace from the previous frame? HDLC frame ID is wrong, but I need previous frames to check what is causing it.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
More

Who's new

  • hirenec11mic
  • Yeyen
  • Virtual
  • joesa4
  • SgwTHoQsOQXBixXP
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin