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. GXDLMSServer On Python

GXDLMSServer on python

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 germka , 21 June, 2021
Forums
Gurux.DLMS

Hi, I'm trying to make a DLMS server using your python libraries, since there is no example of a server in python, I used it in NET, but I ran into a problem that `media` (GXNet) sends data to listeners in the `_NetReceiveEventArgs` structure, but `GXDLMSServer` expects data in the other class, which has `isStreaming`, `setReply` and `connectionInfo` methods, is most similar to the `GXServerReply` class, but it does not have all the methods.
Please tell how to process incoming data from IGXMediaListener methods or give a short example of a server in Python.

Profile picture for user Kurumi

Kurumi

5 years 1 month ago

Hi,

Hi,

Server-side code is not implemented for python at the moment. It's released in the autumn for the python.

BR,
Mikko

germka

5 years 1 month ago

Thanks for the quick response

Thanks for the quick response!

R374

5 years ago

Dear Mikko,

Dear Mikko,

Consider that device could established a socket to a server and server could accept the device and register. (based on https://realpython.com/python-sockets/)
Is there any way that we could pass the socket to the "Gurux.DLMS.Client.Example.python" and continue the communication?
for instance:
- in server side:
sock = key.fileobj
conn, addr = sock.accept()
conn.setblocking(False)
data = xxxxxxxxxxxxxxxxxxxxxxx
events = selectors.EVENT_READ | selectors.EVENT_WRITE
self.sel.register(conn, events, data=data)
.
.
.
sampleclient.main(arg, conn)

- in Gurux.DLMS.Client.Example.python main.py
class sampleclient():
@classmethod
def main(cls, args, conn):
.
.
.
settings.media = conn

Profile picture for user Kurumi

Kurumi

5 years ago

Hi,

Hi,

The server-side functionality and messages are totally different from than client-side, so this will not work.
You need to wait until the server side is implemented if you want to use it or then you can use other programming languages.

BR,
Mikko

R374

5 years ago

I'll try to use current

I'll try to use current features of Gurux.DLMS.Python considering Gurux.DLMS.AMI project to implement the server.
I appreciate your efforts and wish the server could be implemented in near future so that we can upgrade ours.
Thanks,

Profile picture for user Kurumi

Kurumi

5 years ago

Hi Ryan,

Hi Ryan,

Server-side for python and Delphi are released in August.

BR,
Mikko

Profile picture for user phplego

phplego

4 years 11 months ago

Hi Kurumi,

Hi Kurumi,

Am I right that server-side python example will be commited here?
https://github.com/Gurux/Gurux.DLMS.Python

I'm also waiting for the same. I will monitor the repo then :)
Thanks

R374

4 years 11 months ago

In reply to Hi Ryan, by Kurumi

Dear Mikko,

Dear Mikko,

Is there any chance that you would release server-side for python this month ?
Your guidance is so helpful.
Thank you.

Profile picture for user Kurumi

Kurumi

4 years 11 months ago

Hi,

Hi,

Yes, that is the place where server-side example will come in any day now. :-)

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

  • Vital479
  • HealthPro16
  • Brandondiz
  • JeffreyPal
  • DingfanXue
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin