Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Connecting To More Meters On The Same IP Address and Port.

Connecting to more meters on the same IP address and port.

By kuba172, 12 February, 2025
Forums
Gurux.DLMS

Is it possible in Python to simultaneously connect to two or more meters that are on the same IP address and port? So that I can keep that connection and read data from two meters at once?

Thanks in advance for your reply

Profile picture for user Kurumi

Kurumi

10 months ago

Hi, That depends on the…

Hi,

That depends on the meter manufacturer. It can be done, if the manufacturer supports it. This usually depends on whether HDLC or WRAPPER is used.

BR,
Mikko

kuba172

10 months ago

Hi, thanks for the answer…

Hi, thanks for the answer again.

My meters are Landys+Gyr E570 and E650 (mainly E570). I am writing a program that would handle many such meters at the same time. I manage to connect to e.g. two meters at once and maintain the connection using the keep-alive function, which reads the clock every 30 seconds. However, I cannot always read the data if more than one meter is connected via the same IP and port. I get a wrong CRC error, or I do not see any communication with the meter at all, or data send failed. My method is to use multithreading, locks and the ConnectManager class with connection management functions. Maybe it can be done better?

Thanks in advance for the tips.

Profile picture for user Kurumi

Kurumi

10 months ago

Hi, I believe that you must…

Hi,

I believe that you must change the device address so each meter has its own unique address like in a daisy chain.

Read more from here:
https://gurux.fi/Gurux.DLMS.Objects.GXDLMSIecHdlcSetup

Then you need to use the device address as a meter address.

The only problem is that this is not defined in DLMS standards and the meter manufacturers have implemented this differently. This shouldn't be a problem If all your meters are from Landis+Gyr.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Fri, 12/12/2025 - 08:38
    Gurux.DLMS.Python 1.0.195
  • Thu, 12/11/2025 - 13:22
    Gurux.DLMS.Python 1.0.194
  • Thu, 12/11/2025 - 11:01
    gurux.dlms.java 4.0.86
  • Wed, 12/10/2025 - 08:45
    gurux.dlms.java 4.0.85
  • Tue, 12/02/2025 - 10:21
    gurux.dlms.c 9.0.2512.0201

New forum topics

  • Inhemeter i210 dlms director
  • Gurux.Net
  • GXTIME Conversion Issue
  • DLMS Meter Gurux DLMS Director Properties
  • Using MAX3232 + FT232RL to Energy meter with GXDLMS Director
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin