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
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.
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.
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
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
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?
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.
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.
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
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.
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
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
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
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.
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
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.
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