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. Mdm

Mdm

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 benyamin.chesh… , 24 January, 2022
Forums
Gurux.DLMS.AMI

Hi sir
I am building a modem for DLms meters and I have successfully launched the client with a microcontroller stm32 and read data meters successful and now I want to process it with the wrapper tcp that takes the request from the MDM's and reading it from the meters with client. How should I do that ?

Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi,

Hi,

You need to implement both client and server for the stm32. The server is using WRAPPER and client HDLC. When svr_preRead of the server is invoked you will get the OBIS code and read that from the meter.
Then you set handled to true and return read value.

You can check this example to get started:

https://github.com/Gurux/GuruxDLMS.c/tree/master/GuruxDLMSDataCollector…

BR,
Mikko

benyamin.chesh…

4 years 6 months ago

Thank you, what I do not have

Thank you, what I do not have here is the lack of data sent from the
mdm and I do not know how to give and receive that data or what the data sent from the mdm is like. I have read section 10.7 of the Green Book. My country mdm use this method gateway portocol . Can you tell me how to build a simulator mdm that can test my modem?

Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi,

Hi,

The simulator doesn't support gateway protocol at the moment without modifications. What framing you are using to send gateway protocol data? I can check if it can be added to the simulator.

BR,
Mikko

benyamin.chesh…

4 years 4 months ago

In reply to Hi, by Kurumi

0001000100010025E60002105CC81

0001000100010025E60002105CC81E300000038A5CC472560AE01B9C40F9491BAAD2377790ABFB1D3E2C5D0670
hi sir
Sample code that you wanted

Profile picture for user Kurumi

Kurumi

4 years 4 months ago

Hi,

Hi,

So you are using WRAPPER. We can add support to the gateway protocol for the simulator, but it will take time because there are other topics on the worklist at the moment.

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

Who's new

  • NnmIomcqcTDVWiDuCD
  • iRnseovnShdVWR…
  • HgGuaAJJjTLjzz…
  • HYpmSpMsbgNghuph
  • ocYOMgUlQIJbgMUiQdIn
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin