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. DLMS Cleint Association View Read Problem

DLMS Cleint Association View read problem

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 horcsa , 10 August, 2017
Forums
Gurux.DLMS

Hi,

I'd like to read Association View using DLMS client, but implementing Simple Reading Meter example not working:

Connection is made by the server but this read not ok.

/// Read Association View from the meter.
GXReplyData reply = new GXReplyData();
readDataBlock(client.getObjects(), reply);
GXDLMSObjectCollection objects = client.parseObjects(reply.getData(), true);

client.getObjects() method is not implemented in the GXDLMSClient.

Can anybody help how to implement this read?

HorCsa

Profile picture for user Kurumi

Kurumi

8 years 10 months ago

DLMS Client Association View read problem

Hi,

This sounds strange. Are you using Eclipse?

BR,

Mikko

horcsa

8 years 10 months ago

I use C# and Visual Studio.

I use C# and Visual Studio.

I find only GetObjectsRequest, GetObjectTypes, GetObjectTypes2 in the source of GXDLMSClient.

May I have downloaded wrong version? I've downloaded Gurux.DLMS.Net 2 weeks ago.

Profile picture for user Kurumi

Kurumi

8 years 10 months ago

DLMS Client Association View read problem

Hi,

Your example is Java example. With C# you need to use client.Objects , not getObjects.

BR,

Mikko

horcsa

8 years 10 months ago

DLMS Client Association View read problem

Ok, thanx. I'll try using it. This client.Objects will read all the objects meter offers? Or I have to use GetObjectsRequest()? This is not rally clear for me.

But on the webpage Simple meter reading example if I click on the C# tab the example code also contains GetObjects() method:

/// Read Association View from the meter.
GXReplyData reply = new GXReplyData();
ReadDataBlock(client.GetObjects(), reply);
GXDLMSObjectCollection objects = client.ParseObjects(reply.Data, true);

(In my code I tried to use the C# example, but when I copied it to my forum question I missed the tab I've selected.

Profile picture for user Kurumi

Kurumi

8 years 10 months ago

DLMS Client Association View read problem

Hio,

There is an example available, Gurux.DLMS.Client.Example.Net.
You can use that to read your meter.

GXReplyData reply = new GXReplyData();
ReadDataBlock(Client.GetObjectsRequest(), reply);
Client.ParseObjects(reply.Data, true);

BR,
Mikko

horcsa

8 years 9 months ago

Actaris SL7000 Parse AARE Response error

Hi,

I'am trying to use Gurux.DLMS.Client.Example.Net example and I get exception:
Connection is permanently rejected. The application context name is not supported.

The log for my communication:
Initializing serial connection.
Send SNRM request.7E A0 0A 00 22 00 CB 03 93 69 CE 7E
7E A0 0A 00 22 00 CB 03 93 69 CE 7E ->

7E A0 23 03 00 22 00 CB 73 CA E0 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 CE 6A 7E <-

Parsing UA reply.81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01
Parsing UA reply succeeded.

7E A0 47 00 22 00 CB 03 10 B3 91 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 02 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 5C 03 20 FF FF 6C B9 7E ->

7E A0 53 03 00 22 00 CB 30 19 81 E6 E7 00 61 42 A1 09 06 07 60 85 74 05 08 01 02 A2 03 02 01 01 A3 05 A1 03 02 01 02 88 02 07 80 89 07 60 85 74 05 08 02 01 AA 0A 80 08 00 00 00 00 00 00 00 00 BE 10 04 0E 08 00 06 5F 1F 04 00 00 30 1D 21 34 00 07 7C 78 7E <-

Note: I commented out UpdateManufactureSettings(man.Identification); because it made my address settings incorrect.

Profile picture for user Kurumi

Kurumi

8 years 9 months ago

Actaris SL7000 Parse AARE Response error

Hi,

Get latest version. We have updated new client example.

You are using Short name referencing. Your meter is using Logical name referencing.
Add /r=ln parameter.

BR,

Mikko

horcsa

8 years 9 months ago

All objects invalid

Hi,

Thanx for your reply. This works.

My next problem is that all objects are invalid:
--- Available objects ---
0.0.148.0.1.255 Invalid
0.0.148.0.3.255 Invalid
0.0.148.2.3.255 Invalid
0.0.130.0.1.255 Invalid
0.0.130.0.2.255 Invalid
.....

What can be the problem?

horcsa

8 years 9 months ago

new version client example

Hi,

I've tried nem version of client example.
I've set the options:
dlms.InterfaceType = InterfaceType.HDLC;
dlms.ClientAddress = 1;
dlms.ServerAddress = GXDLMSSecureClient.GetServerAddress(17, 101, 4);
dlms.ServerAddressSize = 4;
dlms.UseLogicalNameReferencing = true;

The result is:
Initializing serial connection.
Send SNRM request.7E A0 0A 00 22 00 CB 03 93 69 CE 7E
<- 14:37:29 7E A0 0A 00 22 00 CB 03 93 69 CE 7E
-> 14:37:29 7E A0 23 03 00 22 00 CB 73 CA E0 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 CE 6A 7E
Parsing UA reply.81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01
Parsing UA reply succeeded.
<- 14:37:29 7E A0 47 00 22 00 CB 03 10 B3 91 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 5C 03 20 FF FF B4 31 7E
-> 14:37:29 7E A0 49 03 00 22 00 CB 30 87 DD E6 E7 00 61 38 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 01 A3 05 A1 03 02 01 01 88 02 07 80 89 07 60 85 74 05 08 02 01 AA 0A 80 08 00 00 00 00 00 00 00 00 BE 06 04 04 0E 01 06 02 B9 99 7E
Disconnecting from the meter.
Connection is permanently rejected. No reason is given.

So it can't parse AAREResponse....

horcsa

8 years 9 months ago

All readed objects are invalid

Hi

I still have problems reading the device.

Using an earlier version of C# client example I can connect to the Actaris SL7000, but att the request of association view I get that all objects are invalid.

Using the last client example I have to change the options for:
dlms.InterfaceType = InterfaceType.HDLC;
dlms.ClientAddress = 1;
dlms.ServerAddress = GXDLMSSecureClient.GetServerAddress(17, 101, 4);
dlms.ServerAddressSize = 4;
dlms.UseLogicalNameReferencing = true;

This way the program disconnects when parsing AARE reply.

Have You got any idea what can be the problem?

Profile picture for user Kurumi

Kurumi

8 years 9 months ago

In reply to All objects invalid by horcsa

Add new comment

Hi,

You manufacturer is using Manufacturer specific OBIS codes. We'll change this description from "Invalid" to "Manufacturer specific". Main idea of OBIS codes is that all meter manufacturers use same OBIS codes,
but this is not how they behave at the moment.

BR,

Mikko

Profile picture for user Kurumi

Kurumi

8 years 9 months ago

All readed objects are invalid

Hi,

Your meter is returning: IncompatibleConformance.
Are you setting ProposedConformance? That is wrong.
You can try to set this:
dlms.ProposedConformance = Conformance.BlockTransferWithAction |
Conformance.BlockTransferWithSetOrWrite |
Conformance.BlockTransferWithGetOrRead |
Conformance.Set | Conformance.SelectiveAccess |
Conformance.Action | Conformance.MultipleReferences |
Conformance.Get;
BR,

Mikko

horcsa

8 years 9 months ago

In reply to Add new comment by Kurumi

OBIS codes

Hi,

If I have OBIS codes (because I've found some in a documnet that was written by the former company that used theese devices) how can I read those from the device?

Examples: 1.1.1.8.0, 1.1.2.8.0 ...

Profile picture for user Kurumi

Kurumi

8 years 9 months ago

In reply to OBIS codes by horcsa

OBIS codes

Hi,

Download GXDLMSDirector. It reads Association View when you connect first time. Association view tells all the objects what you have on your meter and thir OBIS codes.

BR,

Mikko

horcsa

8 years 9 months ago

In reply to OBIS codes by Kurumi

OBIS codes

I've tried, but I can not configure GXDLMSDirector to use ServerAddressSize = 4

With C# client example I could read OBIS codes with AssociationView, butt all was invalid. I think GXDLMSDirector would read theese OBIS codes too. Or am I wrong?

Profile picture for user Kurumi

Kurumi

8 years 9 months ago

In reply to OBIS codes by horcsa

OBIS codes

Hi,

Our clients are reading Actaris LS7000 and ACE6000 with GXDLMSDirector. You don't need to set ServerAddressSize = 4. It's handled automatically.

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