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. Communication With Meter (meter Will Communicate With Our Server Ip and Port)

Communication with meter (meter will communicate with our server ip and port)

By Shekhar_HSL , 5 March, 2025
Forums
Gurux.DLMS

Hello, I am new to DLMS and trying to connect to a meter using the Gurux DLMS library via GPRS. Here is the process I am following according to meter document:

1. The meter will initiate a TCP connection to our server's TCP port.
2. Once connected via TCP, we will send an AARQ (Association Request).
3. The meter will respond with an AARE (Association Response).
4. After a successful connection, we will read meter data and control the valve (open/close).

From the Gurux library examples, it seems that we typically need to provide the meter's IP and port to establish a connection. However, in this scenario, we do not have the meter's IP and port, as the meter itself initiates the connection. Additionally, we need to use encryption (AES-128) and authentication keys for communication.

Could you please guide us on how to handle this setup? It would also be extremely helpful if you could provide sample code snippets for both the server and client in this scenario.

Profile picture for user Kurumi

Kurumi

1 year 3 months ago

Hi, The DLMS term for this…

Hi,

The DLMS term for this is auto connect.

https://gurux.fi/Gurux.DLMS.Objects.GXDLMSAutoConnect

Gurux.DLMS.AMI does what you try to do. Check OnOnReceived:

https://github.com/Gurux/Gurux.DLMS.AMI4/blob/77dbfa56684c1d8484f0a9ba6…

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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin