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. Filtering Spontaneous Messages

Filtering spontaneous messages

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 zon7 , 11 November, 2021
Forums
Gurux.DLMS

Hello.
We are playing with a device (server) that is able to geneate data by its own. As this is a TCP connection, we are using WRAPPED mode. The thing is that the meter generates a message and to identify it, the device is using serverAddress=0 for these messages. Is there a way to filter them so they do not end in the general buffer?
As I'm using GXNet, all data is received and stored in the __handleReceivedData method and even if I use a listener, I'm notified but the data remains in the buffer. What should be my approach?
I'm thinking maybe having a custom GXNet where I can modify the __handleReceivedData method so I dont' play with your files.

Any help will be appreciated.
Thanks

Profile picture for user Kurumi

Kurumi

4 years 7 months ago

Hi,

Hi,

Is it possible that you use some other address than zero as a server address? If you can do it, the messages are automatically ignored.

Data is appended to the buffer when you are reading data synchronously and it's removed from the buffer when data is read with GXNet.receive method.

You can read data using count or setting eop (EndOfPacket) when data is read until eop is found.

BR,
Mikko

zon7

4 years 7 months ago

I don't understand. What

I don't understand. What difference will make to set serverAddress to another value?
Can you point me where is the discard part? Right now it fails when I try to read an obis and what I have first in the buffer is that message. It fails in the getPdu as the command is unknown

Profile picture for user Kurumi

Kurumi

4 years 7 months ago

Hi,

Hi,

You can use all other server address values, but server address zero means that the server address is unknown (No-station in DLMS standard) and I believe it will cause problems.

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