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. Unable To Read Data Object "0.0.42.0.0.255"

Unable to read data object "0.0.42.0.0.255"

By Padma Kannan , 8 August, 2023
Forums
Gurux.DLMS

Hi,

I'm using example application "AtMega2560\GuruxDLMSClientExample" from GuruxDLMS.c.

Between the DLMS client and meter, HDLC connection is setup by transmitting and receiving SNRM and AARQ requests and responses. However, after that the application fails to read data object "0.0.42.0.0.255".

Function call hierarchy:
int com_readAllObjects()
|
int com_read(gxObject* object,unsigned char attributeOrdinal) //For "Data"
|
int cl_read(dlmsSettings* settings,gxObject* object,unsigned char attributeOrdinal,message* messages)
|
int cl_readLN(dlmsSettings* settings,unsigned char* name,DLMS_OBJECT_TYPE objectType,unsigned char attributeOrdinal,gxByteBuffer* data, message* messages)
|
int dlms_getLnMessages(gxLNParameters* p,message* messages)
|
int dlms_getLNPdu(gxLNParameters* p,gxByteBuffer* reply)

In dlms_getLNPdu(), ciphering for DLMS_COMMAND_GET_REQUEST command is resulting in default_handler().

Console log for HDLC connection:
Tx: 7E A0 07 03 21 93 0F 01 7E

Rx: 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E

Tx: 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF C5 E4 7E

Rx: 7E A0 37 21 03 30 6C 7C E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 BE 10 04 0E 08 00 06 5F 1F 04 00 00 00 10 03 0C 00 07 04 53 7E

Profile picture for user Kurumi

Kurumi

2 years 11 months ago

Hi, Are you receiving an…

Hi,

Are you receiving an error from com_read? There are no read requests In your trace. Is that missing?

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • gurux_dlms.GXDateTime.GXDateTime object Error in Python
  • T_APPL_DATA_LN_N1 subtest 3 fails on an LN-only server regardless of the response to a non-existing-object GET
  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin