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

4 years 11 months 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

4 years 11 months ago

Thanks for the quick response

Thanks for the quick response!

R374

4 years 11 months 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

4 years 11 months 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

4 years 10 months 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

4 years 10 months 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 10 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 9 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 9 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

  • 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

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin