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. Garbage Bytes Read In TCP Wrapper

Garbage bytes read in TCP wrapper

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 Jayaraj , 23 November, 2021
Forums
DLMSDirector

Hi Mikko,
I am using GuruX director v8.2.2111.1801. I have made a setup to to periodically pull data from 5 meters over 4G TCP wrapper. I sometimes observed that communication is failing because of additional garbage bytes appended at the beginning of the frame. I tried probing meter to see if meter is sending these garbage values but didnt find any garbage outputting from meter. Your view on understanding the problem would help solve the issue.

Also one more observation when it happens is, part of previous response bytes gets appended to subsequent responses.

Image
Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi,

Hi,

WRAPPER is expecting that TCP/IP channel is reliable. There are no check-sum, etc in WRAPPER, but I know what you are talking about. Sometimes there might be extra data. I have seen strange data coming before and after the DLMS data in GRPS network.

The easy fix is to improve the antenna and communication channel reliability.
In your example case, there are only extra bytes but I have seen cases where data is corrupted and because the checksum is missing from the WRAPPER it will cause serious problems.

It's possible to find the WRAPPER frame, but I would say that the best way to handle this is to close the connection and read the meter again. You can't be 100% sure if the received data is corrupted or not.

The bad this is that this is happening more often as the frame size increases. So try to read as little data as possible.

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