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. Cannot Read AssociationView Using Arduino Client C Example

Cannot read AssociationView using Arduino Client C example

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 Jeroen88 , 8 April, 2021
Forums
Gurux.DLMS

Hi Mikko,

I am using the Arduino Client C example on a Landis Gyr E650, so SN. I successfully connected to the meter using IEC62056-21 Mode E on the public client (0x10) without authetication. However I cannot read the association view. What am I doing wrong?

In com_readAllObjects I added:
ret = com_getAssociationView();
if(ret != DLMS_ERROR_CODE_OK) {
GXTRACE_INT(PSTR("com_getAssociationView failed"), ret);
return ret;
}
GXTRACE_INT(PSTR("com_getAssociationView SUCCEEDED"), ret);
after the connection was made, so after ret = com_initializeConnection();

I also added code to show the request and response in readDLMSPacket(). This gives:

:Start readingSend:
7e a0 07 03 21 93 0f 01 7e
Received:
81 80 12 05 01 80 06 01 3e 07 04 00 00 00 01 08 04 00 00 00 01
Send:
7e a0 2b 03 21 10 fb af e6 e6 00 60 1d a1 09 06 07 60 85 74 05 08 01 02 be 10 04 0e 01 00 00 00 06 5f 1f 04 00 1c 03 20 ff ff 80 ab 7e
Received:
61 28 a1 09 06 07 60 85 74 05 08 01 02 a2 03 02 01 00 a3 05 a1 03 02 01 00 be 0f 04 0d 08 00 06 5f 1f 04 00 18 02 20 09 60 fa 00
:com_initializeConnection SUCCEEDED 0
Send:
7e a0 11 03 21 32 b7 3d e6 e6 00 05 01 02 fa 08 18 9e 7e
Received:
01 82 01 25 02 04 10 00 10 12 27 16 11 03 09 06 00 00 f0 0d 00 ff 02 04 10 00 e8 12 27 12 11 07 09 06 00 00 f0 00 00 ff 02 04 10 01 50 12 27 60 11 04 09 06 00 00 f0 0f ff ff 02 04 10 04 10 12 00 03 11 00 09 06 00 00 61 61 00 ff
:com_getAssociationView failed 258
Send:
7e a0 07 03 21 53 03 c7 7e
Received:
81 80 12 05 01 80 06 01 3e 07 04 00 00 00 01 08 04 00 00 00 01

Best, Jeroen

Jeroen88

5 years 2 months ago

This question is outdated,

This question is outdated, failing to read the object list was caused by an error in de library that I reported in the General discussion forum.

Profile picture for user Kurumi

Kurumi

5 years 2 months ago

Hi Jeroen,

Hi Jeroen,

Part of the data is missing from the meter reply. I believe that you have read only the first frame. You need to read all data from the better before you can parse the association view.

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