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. Translating XML From MessageToXml() Back To HDLC Frame

Translating XML from messageToXml() back to HDLC frame

By farsight , 6 February, 2024
Forums
Gurux.DLMS

Hello everyone,

I'm currently using (https://github.com/Gurux/gurux.dlms.java/tree/master/gurux.dlms.simulat…) for the smart meter simulator and I connect to it using GXDLMS Director. I can successfully read and translate all the HDLC frames that the simulator is printing on the terminal using the messageToXml() function from GXDLMSTranslator in python.

However, I am not able to find a way to translate the xml data back to an HDLC frame. The reason why I want to do this, is to eventually, be able to intercept a HDLC frame from the simulator, translate it to XML, edit a value, convert it back to an HDLC frame and send it to the director.

Do you know if there is a function, or a completely seperate program, that can craft HDLC frames (either from xml data or anything else) that are understood by the GXDLMSDirector? Anything with that capability would help.

Thank you for taking the time to read this.

Profile picture for user Kurumi

Kurumi

2 years 5 months ago

Hi, Have you checked…

Hi,

Have you checked XMLClient? I believe it will do what you want to do.

https://github.com/Gurux/Gurux.DLMS.Net/tree/master/Gurux.DLMS.XmlClient

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

  • 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
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin