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

Push Listener

By kevin jose minj , 6 April, 2023
Forums
General discussion

I updated push setup with destination address and port number. How to check it is working or not? We are built an application using python and hosted and it is listening meter. I have a question that if I click push through GXDLMSDirector message reach server or not? Please help me out

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

Hi, After you have set the…

Hi,

After you have set the destination and port number for the push object you can activate it with the Push method.

If you activate the push with the GXDLMSDirector you are not receiving an exception if the message was handled in the meter. The push message is usually sent right away.

BR,
Mikko

kevin jose minj

3 years 2 months ago

So if I click on push button…

So if I click on push button that time some packets will sent to server? or only when the events happen with meter? We are using IPV6 server is causing any issue with push setup

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

Hi, When you press the push…

Hi,

When you press the push button it will activate the push message and it's sent to the given address when TCP/IP connection is used.

If you are connected to a serial port and there is no TCP/IP connection the push message is sent to the serial port.

BR,
Mikko

kevin jose minj

3 years ago

I want to understand more…

I want to understand more about this push listener. Below I am given a block diagram related with if a tamper event occurs in a meter. And it is sending the packets to server which is listening the meter.

If meter sends the packet push listener example will translate to human readable form?

I created the server using python gurux library and I used below parameters for the push listener

"-p", "4059", "-T", "49534B3030303031", "-A", "000102030405060708090A0B0C0D0E0F", "-B", "000102030405060708090A0B0C0D0E0F", "-D", "6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B","-t", "Verbose"
here I am not mentioning the -h tag and IP address.Is it required or not?

Image
Profile picture for user Kurumi

Kurumi

3 years ago

Hi, You don't need to define…

Hi,

You don't need to define the IP Ip address because the example is bind to the local computer. You can define the used TCP/IP port with -p argument.

BR,
Mikko

kevin jose minj

3 years ago

I mentioned -p with meter…

I mentioned -p with meter port no 4059. If IP address is not required how the server will listen the meter? I created one dlms stack server using python how to check this push listener example through TCP/IP channel?

Profile picture for user Kurumi

Kurumi

3 years ago

Hi, The meter sends push…

Hi,

The meter sends push messages to the given IP address.

Check Send destination and method:
https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSPushSetup

BR,
Mikko

kevin jose minj

3 years ago

If I configure the address…

If I configure the address something like localhost:7000, and start the server if some events occur in, meter send the hex traces to server?

Profile picture for user Kurumi

Kurumi

3 years ago

Hi, Yes, the meter is…

Hi,

Yes, the meter is sending bytes to the server, and server shows the received bytes as a hex string.

BR,
Mikko

kevin jose minj

3 years ago

Hi Mikko, The thing is I am…

Hi Mikko,

The thing is I am able to update IPv4 and IPv6 address. If I updadte IPv4 address it is like xx.xx.xx.xx:7000 and if IPv6 means xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx here I am not able to update the port number. Our server have both IPv4 and IPv6 address but the sim I inserted in meter will only connect to IPv6 address. In this scenario what can I do ?

Profile picture for user Kurumi

Kurumi

3 years ago

Hi, You need to ask the…

Hi,

You need to ask the meter manufacturer about this. DLMS standard doesn't define this.
I believe that IPv6 is using a different separator than ':' for this meter because it's used in the IPv6 format.

BR,
Mikko

kevin jose minj

2 years 12 months ago

Hi Mikko, This is data…

Hi Mikko,

This is data packets I got from meter.

0|dlms | trace:20:24:07 TraceTypes.INFO Client connected.
0|dlms | trace:20:24:07 TraceTypes.RECEIVED 03 00 00 2F 2A E0 00 00 00 00 00 43 6F 6F 6B 69 65 3A 20 6D 73 74 73 68 61 73 68 3D 41 64 6D 69 6E 69 73 74 72 0D 0A 01 00 08 00 03 00 00 00
0|dlms | New data is received. 194.165.16.37:65254:03 00 00 2F 2A E0 00 00 00 00 00 43 6F 6F 6B 69 65 3A 20 6D 73 74 73 68 61 73 68 3D 41 64 6D 69 6E 69 73 74 72 0D 0A 01 00 08 00 03 00 00 00
0|dlms | trace:15:36:33 TraceTypes.INFO Client connected.
0|dlms | trace:15:36:33 TraceTypes.RECEIVED 03 00 00 2F 2A E0 00 00 00 00 00 43 6F 6F 6B 69 65 3A 20 6D 73 74 73 68 61 73 68 3D 41 64 6D 69 6E 69 73 74 72 0D 0A 01 00 08 00 03 00 00 00
0|dlms | New data is received. 194.165.16.73:65526:03 00 00 2F 2A E0 00 00 00 00 00 43 6F 6F 6B 69 65 3A 20 6D 73 74 73 68 61 73 68 3D 41 64 6D 69 6E 69 73 74 72 0D 0A 01 00 08 00 03 00 00 00

How to convert it into human readable form?

Profile picture for user Kurumi

Kurumi

2 years 12 months ago

Hi, This isn't DLMS framing…

Hi,

This isn't DLMS framing. It would be best if you asked the manufacturer what format is used. Part of the data in ASCII is:

43 6F 6F 6B 69 65 3A 20 6D 73 74 73 68 61 73 68 3D 41 64 6D 69 6E 69 73 74 72
Cookie: mstshash=Administr

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