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. Using GXDLMS To Create and Read Image(packets To Send/receive)

Using GXDLMS to create and read image(packets to send/receive)

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 Virus , 17 November, 2021
Forums
Gurux.DLMS

Good day

I have application (win32) that works with IEC commands reading Load Profile and Billing Data.
It can use Network, USB and Modem.

After meter connection and <ACK>202 meter in dlms mode, how do I create correct message to send via Network( send(socket, message, messageLength,0)) and how to interoperate received data.

I want to read Landis Gyr meter Registers one at a time.

Profile picture for user Kurumi

Kurumi

4 years 10 months ago

Hi,

Hi,

IEC 62056-21 and DLMS/COSEM are different procols.
http://www.gurux.fi/DLMSCOSEMFAQ

In DLMS you don't just read the value, you need first to establish the connection to the meter before you can read anything. I strongly propose that you use Gurux Open Source libraries to read your meter if you need to use DLMS. DLMS is not an easy protocol where you just send a message and get a reply.

BR,
Mikko

Virus

4 years 10 months ago

In reply to Hi, by Kurumi

I want to use the GuruX Open

I want to use the GuruX Open Source libraries to read meter after establishing TCP connection.
Is there a way to hand a socket over to GuruX libraries after succesfull connection and then do readings?

Profile picture for user Kurumi

Kurumi

4 years 10 months ago

Hi,

Hi,

Gurux libraries only generate and parse the data. You need to send the generated bytes using a communication channel that you like. In this case TCP/IP or UDP. Check the client example it will do what you want to do.

BR,
Mikko

  • 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

Who's new

  • Anaglyfos Trading CC
  • cyby
  • Metin Onan
  • ssv007
  • 3nzol3dur
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin