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. DLMS Meter Listener Is Not Connecting With Client

DLMS Meter Listener is not connecting with Client

By Charan , 9 January, 2024
Forums
Gurux.DLMS

Hi,

we are trying to connect energy meter with gurux dll to establish connection and to read the DLMS electricity meter. we have tried with DLMS Listener source code.

To the server we have sent parameters as TCP and Port number, due to wrong port number it gave errors initially but once the right parameters were passed, status of server.Open() updated to True.

But Client connection is not establishing, OnClientConnected method event is not getting called and facing problems regarding it.

We need to connect & read the data from the DLMS electricity meters.

Thankyou,

Profile picture for user Kurumi

Kurumi

2 years 5 months ago

Hi, Is your meter sending…

Hi,

Is your meter sending the push messages or is using auto-connect and the meter is establishing the connection for the server?

Read your meter with GXDLMSDirector and check if auto-connect is available.

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

If your meter is sending push messages you need to use push listener example.

https://github.com/Gurux/Gurux.DLMS.Net/tree/master/Gurux.DLMS.Push.Lis…

BR,
Mikko

Charan

2 years 5 months ago

tried sending readmeter…

tried sending
readmeter(server);

readmeter tried transmitting AARQ request as in the screenshot, but no response from meter.

Image

Charan

2 years 5 months ago

Trying with Push.listner…

Trying with Push.listner code, but GXDLMSSecureNotify is giving missing assembly error. which dll is required for this.

Thanks,
Charan

Profile picture for user Kurumi

Kurumi

2 years 5 months ago

Hi, Please, don't add hex…

Hi,

Please, don't add hex pics. They are hard to read. Plain text is better.
I believe that one of your meter settings is different what the meter expects. Check first the server and client address. They are usually the reason.

Visual studio should update all assemblies. What error you are getting?

BR,
Mikko

Charan

2 years 5 months ago

Hi Mikko, I have tried with…

Hi Mikko,

I have tried with push.listener code, I recieved the console output as below:

Listening DLMS Push IEC 62056-47 messages on port 4059.

Press X to close and Enter to send a Push message.
Sending Push message.
Client Connected.
Sending Push message.
Client Connected.
<- 00 01 00 01 00 0A 00 16 0F C0 00 00 02 00 02 01 09 0C 07 E8 01 09 FF 10 0F 0B FF FE B6 00
Client Disconnected.
Sending Push message.
Client Connected.
<- 00 01 00 01 00 0A 00 16 0F C0 00 00 03 00 02 01 09 0C 07 E8 01 09 FF 10 17 35 FF FE B6 00
Client Disconnected.
Sending Push message.
Client Connected.
<- 00 01 00 01 00 0A 00 16 0F C0 00 00 04 00 02 01 09 0C 07 E8 01 09 FF 10 18 28 FF FE B6 00
Client Disconnected.
Sending Push message.
Client Connected.
<- 00 01 00 01 00 0A 00 16 0F C0 00 00 05 00 02 01 09 0C 07 E8 01 09 FF 10 19 30 FF FE B6 00
Client Disconnected.

the above things meant data from the meter? Does it mean its connected? Can you please let me know?

Thanks,
Charan

Profile picture for user Kurumi

Kurumi

2 years 5 months ago

Hi, I believe you have…

Hi,

I believe you have pressed enter when the push listener client sends an example message that is shown in the command line.

In the log, it looks like your meter has not established the connection for the server.

Can you read your meter with GXDLMSDirector? You can see the correct port and other settings if you can do it. Without this information, I can't help you. Can your meter establish the connection for your PC? Check that you don't have firewalls, etc.

BR,
Mikko

Charan

2 years 4 months ago

Thanks for your response,…

Thanks for your response, Mikko.

In Meter.Listener code, inside try block, server.open() status turning into true once I gave correct details as below, but why OnClientConnected method is not getting called in debug mode? Why is this event not firing? How will I know client is connected with out entering into this method?

try
{
GXNet server = new GXNet(NetworkType.Tcp, "localhost", 4059);
server.Open();  Turned to True
server.OnClientConnected += OnClientConnected;(not going inside the OnClientConnected Method)

Can you please help me with why this method is not getting called, not entering inside it?

Image
Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi, Your meter hasn't…

Hi,

Your meter hasn't established the connection for the server.
Check if your meter supports auto-connect and then check that you have set the correct hostname and TCP/IP port number.

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