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. Authentication Failure Error In Mechanism ID 2

Authentication failure error in Mechanism ID 2

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 shashanksonibhl , 26 April, 2020
Forums
General discussion

I am getting an error when I tried to log in using the Mechanism ID with a Dedicated key.
See the log below. The function of S to C must be encrypted with the Block Cipher key. But it is encrypting using the Dedicated key.

Send AARQ request.
7E A0 7C 03 61 10 AA 6B E6 E6 00 60 6E A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 41 42 43 44 45 46 47 48 8A 02 07 80 8B 07 60 85 74 05 08 02 02 AC 12 80 10 4E 26 1D 0E 1D 1E 41 6A 05 63 74 23 55 46 3E 4C BE 34 04 32 21 30 30 00 00 00 00 55 B2 74 21 35 43 BF C6 2B 20 31 60 A9 B5 C1 2D 97 3B DF F2 7E 02 AC F1 11 5E 58 F8 AE A7 7A C2 4C D8 23 83 73 70 D6 F0 0D 15 3E 6F 86 7E

7E A0 77 61 03 30 AD 6C E6 E7 00 61 69 A1 09 06 07 60 85 74 05 08 01 03 A2 03 02 01 00 A3 05 A1 03 02 01 0E 88 02 07 80 89 07 60 85 74 05 08 02 02 AA 12 80 10 47 65 6E 75 73 37 00 00 00 00 09 1D 36 48 C3 7E A4 0A 04 08 47 4F 45 00 00 58 1C F1 BE 23 04 21 28 1F 30 00 00 04 88 A9 FA E4 4B 57 40 DB 41 F5 78 B7 CC 15 B4 BE 1B 58 52 F6 40 1C FB C0 6A FB 87 B2 00 7E
Parsing AARE reply succeeded.
Authenticating.
7E A0 3E 03 61 32 7B 46 E6 E6 00 D3 30 30 00 00 00 03 3D B1 8A 0A E9 B1 D9 F4 84 E0 52 ED 90 86 CD 91 A8 19 5C C1 41 58 90 1B 12 04 DC 6B CB B4 F2 FB E9 07 C7 CB 83 5C 41 F5 BD 3C 8D B5 01 7E

7E A0 10 61 03 52 7C E2 E6 E7 00 0E 06 00 06 DD 48 7E
Gurux.DLMS.GXDLMSConfirmedServiceError: ServiceError Write exception. ApplicationReference DecipheringError
at GXDLMSDirector.GXDLMSDevice.InitializeConnection()
at GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)

Profile picture for user Kurumi

Kurumi

6 years 1 month ago

Hi,

Hi,

I don't know your keys, so I can't check this your data but you are using High authentication, not HighGMAC. High authentication don't use Block Cipher or authentication key. You need to use HighGMAC if you want to use keys.

BR,
Mikko

shashanksonibhl

6 years 1 month ago

Hi Mikko

Hi Mikko

In Authenticating command tag should be CB instead of D3 and this whole command must encrypted by Block Cipher Key.

Profile picture for user Kurumi

Kurumi

6 years 1 month ago

Hi,

Hi,

If method is GloMethodRequest (CB), you are communicating using Glo-methods and not Ded-methods.
Your meter doesn't use dedicated key. Clear it.

BR,
Mikko

shashanksonibhl

6 years 1 month ago

I tested CTT on the meter, it

I tested CTT on the meter, it also used global Method (CB) in authentication command and used dedicated key after association successfully received.

Gurux, too uses the same method earlier as CTT. I did use the Indian Standard as a manufacturer.

Profile picture for user Kurumi

Kurumi

6 years 1 month ago

Hi,

Hi,

If the dedicated key is used then ded_ messages are used. If the client doesn't send a dedicated key then Glo_ messages are used. Try to send dedicated key for T_APPL_OPEN_1 test and you see that client sends ded_GetRequest, not glo_GetRequest.

Check that you have set Style = SERVICE_DED to the CTI file.

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