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 9 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

  • 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