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 Association View

Cannot read association view

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 DenisMalakhov , 3 March, 2023
Forums
Gurux.DLMS

Hello, I tried to run example from your github, but the exception occurred. In the code below, the connection was successfully established, but when trying to read the association, it immediately throws an exception. But with GXDLMSDirector association was read successfully.

public void ReadAll(string outputFile)
{
try
{
InitializeConnection(); // OK
if (GetAssociationView(outputFile)) // "Service not allowed"-exception.
{
GetScalersAndUnits();
GetProfileGenericColumns();
}
GetReadOut();
GetProfileGenerics();
if (outputFile != null)
{
try
{
Client.Objects.Save(outputFile, new GXXmlWriterSettings() { UseMeterTime = true, IgnoreDefaultValues = false });
}
catch (Exception)
{
//It's OK if this fails.
}
}
}
finally
{
Close();
}
}

There is log from console:

Standard: DLMS
Send SNRM request.7E A0 0A 00 02 FE FF 61 93 BB C4 7E
TX: 10:40:34 7E A0 0A 00 02 FE FF 61 93 BB C4 7E
RX: 10:40:35 7E A0 23 61 00 02 10 3D 73 33 4D 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.
Send AARQ request
TX: 10:40:35 7E A0 4F 00 02 FE FF 61 10 8D 45 E6 E6 00 60 3E A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 02 AC 12 80 10 14 5C 76 33 40 44 10 5B 2C 15 61 6A 1D 79 47 29 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 62 1E 5D FF FF 36 83 7E
RX: 10:40:37 7E A0 5B 61 00 02 10 3D 30 0C F2 E6 E7 00 61 4A A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 88 02 07 80 89 07 60 85 74 05 08 02 02 AA 12 80 10 9D 02 BE 46 C6 59 D4 DE D9 B7 46 20 0C CD DE 34 BE 10 04 0E 08 00 06 5F 1F 04 00 00 1C 1D 00 80 00 07 2E 40 7E
Parsing AARE reply61 4A A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 88 02 07 80 89 07 60 85 74 05 08 02 02 AA 12 80 10 9D 02 BE 46 C6 59 D4 DE D9 B7 46 20 0C CD DE 34 BE 10 04 0E 08 00 06 5F 1F 04 00 00 1C 1D 00 80 00 07
Conformance: BlockTransferWithGetOrRead, BlockTransferWithSetOrWrite, BlockTransferWithAction, Get, Set, SelectiveAccess, Action
Parsing AARE reply succeeded.
TX: 10:40:43 7E A0 1C 00 02 FE FF 61 32 3C 9D E6 E6 00 C0 01 C1 00 0F 00 00 28 00 00 FF 02 00 91 53 7E
RX: 10:40:44 7E A0 12 61 00 02 10 3D 52 27 34 E6 E7 00 D8 01 01 3C 43 7E
Disconnecting from the meter.
TX: 10:40:44 7E A0 0A 00 02 FE FF 61 53 B7 02 7E
RX: 10:40:45 7E A0 0A 61 00 02 10 3D 73 89 6F 7E
Exception response. "Service not allowed"-exception. Operation not possible

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

Hi, It seems like your meter…

Hi,

It seems like your meter doesn't implement an association view for this association. Can you connect without authentication (Authentication is None) and read the association view?

Association view is mandatory in DLMS meters, but some DLMS sub-standards (e.g. India and Italy) define used objects and some meter doesn't implement the association view because of that.

If your meter doesn't implement the association view you must know what you want to read and add those objects by yourself.

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