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. Node
  3. HDLC Length Question In "Gurux DLMS Translator"

HDLC length question in "Gurux DLMS Translator"

By qiumike , 27 February, 2024
Forums
DLMSDirector

Hi there.

I'm new to the DLMS world and currently using this wonderful tools to help with meter development.

I just don't know for these two frames, why the len field in the parsed xml doesn't match the actual frame
e.g.
* First frame's len is 0x0A but in XML it is "C"
* 2nd frame's len is 0x23 but in XML it is "22"

Could anyone help to explain this?

Thx!

Image
Profile picture for user Kurumi

Kurumi

2 years 6 months ago

Hi, HDLC len 0xC is the…

Hi,

HDLC len 0xC is the total length of the HDLC frame. It includes all the data in the HDLC frame (including bytes before HDLC frame length).

BR,
Mikko

qiumike

1 year 9 months ago

Hi Mikko According this…

Hi Mikko

According this logic, I think the "HDLC len" of the second frame should be 25 instead of 22, could you further explain the logic? Thx!

BR,
Mike

Profile picture for user Kurumi

Kurumi

1 year 9 months ago

Hi, Can you add those frames…

Hi,

Can you add those frames as a hex value so I can validate them?

BR,
Mikko

qiumike

1 year 9 months ago

Hi Here is the frame: 7E A0…

Hi

Here is the frame:

7E A0 23 03 00 02 C0 01 73 D9 52 81 80 14 05 02 01 4A 06 02 01 4A 07 04 00 00 00 01 08 04 00 00 00 01 E8 AB 7E

BR,
Mike

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin