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 4 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

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin