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. Proposed Conformance Using HighGMAC

Proposed conformance using HighGMAC

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 AndreasAtPowel , 19 September, 2017
Forums
Gurux.DLMS

Hello

We have an application where we previously used version 8.2.0.3 of Gurux.DLMS. We then had the following code:

var gxdlmsClient = new GXDLMSSecureClient(true, 0x01, 0x01, Authentication.HighGMAC, authenticationSettings.UniqueSecret, InterfaceType.WRAPPER);
gxdlmsClient.LNSettings.SetConformanceBlock(new byte[] { 0x00, 0x1F, 0x1F });
gxdlmsClient.MaxReceivePDUSize = 0x00C8;
gxdlmsClient.Password = authenticationSettings.UniqueSecret.ToByteArray();
gxdlmsClient.Ciphering.SystemTitle = authenticationSettings.SystemTitle.ToByteArray();
gxdlmsClient.Ciphering.Security = Security.AuthenticationEncryption;
gxdlmsClient.Ciphering.AuthenticationKey = authenticationSettings.AuthenticationKey.ToByteArray();
gxdlmsClient.Ciphering.BlockCipherKey = authenticationSettings.UnicastKey.ToByteArray();

This week we have updated the version of Gurux.DLMS to Version 8.5.1709.1201. We see that we no longer can use gxdlmsClient.LNSettings.SetConformanceBlock. So instead we are setting the following property:

ProposedConformance = Conformance.Action |
Conformance.EventNotification |
Conformance.SelectiveAccess | Conformance.Set |
Conformance.Get | Conformance.InformationReport |
Conformance.MultipleReferences |
Conformance.BlockTransferWithAction |
Conformance.BlockTransferWithSetOrWrite |
Conformance.BlockTransferWithGetOrRead,

But when we try to run the application we get the error "Connection is permanently rejected. Authentication is required". Do you have any good ideas to how we can solve this problem?

Thanks
Andreas

Profile picture for user Kurumi

Kurumi

8 years 10 months ago

Proposed conformance using HighGMAC

Hi Andreas,
Can you send trace from sent and received bytes? We'll check this ASAP.

BR,
Mikko

AndreasAtPowel

8 years 10 months ago

Hi,

This is what we have traced as sent/received bytes when trying to connect to the meter using version 8.5.1709.1201of Gurux::

char peer0_0[] = { /* Packet 1 */
0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x63,
0x60, 0x61, 0xa1, 0x09, 0x06, 0x07, 0x60, 0x85,
0x74, 0x05, 0x08, 0x01, 0x03, 0xa6, 0x0a, 0x04,
0x08, 0x4d, 0x4d, 0x4d, 0x00, 0x00, 0xbc, 0x61,
0x4e, 0x8a, 0x02, 0x07, 0x80, 0x8b, 0x07, 0x60,
0x85, 0x74, 0x05, 0x08, 0x02, 0x05, 0xac, 0x12,
0x80, 0x10, 0x3f, 0x29, 0x12, 0x76, 0x70, 0x00,
0x31, 0x18, 0x5c, 0x41, 0x55, 0x25, 0x16, 0x60,
0x1d, 0x12, 0xbe, 0x27, 0x04, 0x25, 0x21, 0x23,
0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xd3, 0x03, 0xda, 0xc9, 0x02, 0x36, 0x9b,
0xf9, 0x52, 0xfc, 0x36, 0x75, 0x4b, 0x70, 0xf9,
0x88, 0x0f, 0xe9, 0xc3, 0x8c, 0x68, 0xf6, 0xb6,
0x44, 0xdf, 0x9d };

char peer1_0[] = { /* Packet 2 */
0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x2a,
0x61, 0x28, 0xa1, 0x09, 0x06, 0x07, 0x60, 0x85,
0x74, 0x05, 0x08, 0x01, 0x03, 0xa2, 0x03, 0x02,
0x01, 0x01, 0xa3, 0x05, 0xa1, 0x03, 0x02, 0x01,
0x0e, 0x89, 0x07, 0x60, 0x85, 0x74, 0x05, 0x08,
0x02, 0x05, 0xbe, 0x06, 0x04, 0x04, 0x0e, 0x01,
0x06, 0x00 };

/Andreas

Profile picture for user Kurumi

Kurumi

8 years 10 months ago

GMAC issue

Hi,

We have fix this. I'm sorry about the inconvenience.
http://www.gurux.fi/node/6261

BR,
Mikko

AndreasAtPowel

8 years 10 months ago

Hi,

This seems to have solved our issue!

Thanks for the quick fix!

/Andreas

  • 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

  • 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
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
More

Who's new

  • Kak_maKr
  • Marciaannem
  • Scottstike
  • rcprociG
  • helloworld
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin