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. 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 5 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 8 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 8 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 8 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

  • 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

  • Possible memory leak in file dlms.c, getCompactArrayItem(), getCompactArrayItem2()
  • Official Gurux.DLMS.Client.Example.Net fails during High GMAC secure association (Invalid PDU), while Gurux Director connects successfully
  • gurux_dlms.GXDateTime.GXDateTime object Error in Python
  • T_APPL_DATA_LN_N1 subtest 3 fails on an LN-only server regardless of the response to a non-existing-object GET
  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin