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. Authentication Problem

Authentication 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 Varun Sharma , 14 November, 2019
Forums
General discussion

Error :Gurux.DLMS.GXDLMSException: 'Connection is permanently rejected. Authentication is required.'
This exception occurs in this =>Client.ParseAAREResponse(reply.Data) method.
This occurs when i choose Authentication.High
it works fine when authentication is low
My password for the meter is also correct

Profile picture for user Kurumi

Kurumi

6 years 7 months ago

Hi,

Hi,

I believe that your meter is not supporting High authentication. You need to ask the meter vendor what authentication levels are supported. Supported authentication levels depend from the meter model and manufacturer.

BR,
Mikko

Varun Sharma

6 years 7 months ago

It is supporting high

It is supporting high authentication.it works in Gxdlmsdirector.
But when i use in Gurux.DLMS.Client.Example.Net and set parameter to High with correct password it does not work.
One more thing is that where can i get the values of downloaded profile like Nameplate or Instant because i want to store them in database.

Profile picture for user Kurumi

Kurumi

6 years 7 months ago

Hi,

Hi,

Check your settings. Both are using the same code, so the difference must be in the settings.
If you are using the optical probe, you must add -i so start with IEC.
BR,
Mikko

Varun Sharma

6 years 7 months ago

Yes I m using optical

Yes I m using optical
But if i m putting -i its not working at all even in low authentication.
My sequence is like this
-S COM1 -c 32 -s 1 -a Low -P 123456 -C Encryption -g "0.0.94.91.10.255:2" -i
Is my sequence wrong

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,

If you are using Encryption, you need to update system title, block cipher key, and authentication key.
Can you make a connection to the meter without ciphering?

BR,
Mikko

Varun Sharma

6 years 6 months ago

I am using

I am using AuthenticationEncryption.
And also updated system title, block cipher key, and authentication key in client profile.
but its not working.

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,

Are you reading the Invovacation counter in GXDLMSDirector? That is not read in the client example and that is causing the problem. I think how we can add the command line parameter for that.

You must add own implementation for that for now. You can copy it from GXDLMSDirector.

BR,
Mikko

Varun Sharma

6 years 6 months ago

Invovacation counter is set

Invovacation counter is set to 60 in GXDLMSDirector.
How can i add it in my project. In which gurux library i can find it.

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,

OK, I belive that this is the problem.
Find //Read frame counter if GeneralProtection is used.
It's on InitializeConnection. It reads the invocation counter from the meter.

We'll add the command line parameter later.

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