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. Node
  3. DLMS/COSEM Communication Issue With Electricity Meter

DLMS/COSEM Communication Issue with Electricity Meter

By kuba172 , 9 February, 2025
Forums
Gurux.DLMS

I'm experiencing issues with DLMS/COSEM communication when trying to read profile data from an electricity meter. While the initial connection is successful, reading profile data results in invalid HDLC frames.

Environment:
- Python with Gurux DLMS library
- TCP/IP connection to the meter
- Authentication Level: Low
- Using HDLC protocol

The connection parameters:
- IP: xx.xx.xx.xx
- Port: xxxx
- Client Address: xx
- Server Address: derived from meter serial number
- Password: ********

The issue:
1. Initial connection to the meter works fine
2. When trying to read profile data, I get HDLC frame errors:

The logs show "Invalid HDLC Frame: 0x3a Expected: 0x5a" errors, followed by "Data send failed".

I've tried:
1. Implementing a keep-alive mechanism
2. Setting appropriate timeouts
3. Reading capture objects before attempting to read profile data
4. Multiple reconnection attempts

The communication sequence:
1. Successfully establish connection
2. Get association view - successful
3. Try to read profile data - fails with HDLC frame errors
4. Subsequent retry attempts fail

Has anyone encountered similar issues? What could be causing these HDLC frame errors even though the initial connection is successful?

Any suggestions for:
1. Proper HDLC frame handling
2. Optimal DLMS/COSEM settings for profile data reading
3. Dealing with connection stability issues

My meters are Landis+Gyr E570 and E650

Thanks in advance for any help!

kuba172

1 year 8 months ago

Problem solved - threads and…

Problem solved - threads and locks should have been used appropriately for keep-alive functions.

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101
  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202

New forum topics

  • Need RJ45 pin configuration for Saral 300 and Saral 305 Secure meters
  • Query Regarding Class 63 Status Mapping Support in Gurux DLMS Python
  • Inhemeter
  • DLMS Server - Profile Generic - can't add too many items to profile generic capture object - how to set maximum profile entries
  • HDLC Frames sequencing
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin