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. HLS WITH GMAC

HLS WITH GMAC

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 aoudumbarpawar , 15 June, 2021
Forums
General discussion

Hii Mikko,
I want to implement GMAC authentication.

Below are my some queries:
1. Is it compulsory to exchange client-servers system title in AARQ and AARE before pass 3 and 4
2. if suppose i am not included server systems title in AARE then what will happen.
3. How to authenticate the GMAC at server side which is received from the client
4. Which IC (invocation counter) must be used at server side during calculating GMAC

Also can share the frame log along with pass 1 ,2 ,3 ,4 (HDLC)

BR,
AP

Profile picture for user Kurumi

Kurumi

4 years 12 months ago

Hi,

Hi,

1. Yes it's mandatory.
2. Certificate tests will fail.
3. I believe that you need to get a copy of Green Book. It answers all your questions.
4. IC is sent as part of the message.
BR,

Mikko

aoudumbarpawar

4 years 12 months ago

Hii Mikko,

Hii Mikko,
Thanks!!!
I have implemented the GMAC but not getting info how to set GuruxDirector setting for HLS with GMAC.

BR,
AP

aoudumbarpawar

4 years 12 months ago

Hii,

Hii,
Not able to get authenticated using HighGMAC in non suite.

Following is the log:
09:34:24 Send SNRM request.
TX: 7E A0 23 00 02 BA 69 61 93 FA DD 81 80 14 05 02 02 4D 06 02 02 4A 07 04 00 00 00 01 08 04 00 00 00 01 C3 59 7E
09:34:24
RX: 7E A0 23 61 00 02 BA 69 73 09 85 81 80 14 05 02 01 FC 06 02 01 FC 07 04 00 00 00 01 08 04 00 00 00 01 DD A1 7E
09:34:24 Send AARQ request.
TX: 7E A0 5B 00 02 BA 69 61 10 C9 A4 E6 E6 00 60 4A A1 09 06 07 60 85 74 05 08 01 01 A6 0A 04 08 31 32 33 34 35 36 37 38 8A 02 07 80 8B 07 60 85 74 05 08 02 05 AC 12 80 10 1E 62 04 25 51 61 09 61 72 41 56 10 2B 38 63 67 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 5D FF FF 12 56 7E
09:34:24
RX: 7E A0 67 61 00 02 BA 69 30 E6 5D 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 0E A4 0A 04 08 33 44 4C 07 02 20 00 59 88 02 07 80 89 07 60 85 74 05 08 02 02 AA 12 80 10 61 62 63 64 65 66 67 68 69 6A 6B 6C 00 00 18 4D BE 10 04 0E 08 00 06 5F 1F 04 00 00 10 1D 02 00 00 07 B7 46 7E
09:34:24 Authenticating.
TX: 7E A0 2E 00 02 BA 69 61 32 36 47 E6 E6 00 C3 01 C1 00 0F 00 00 28 00 00 FF 01 01 09 10 A1 56 37 25 94 94 70 87 DC E0 34 B1 28 39 EB 22 FA D4 7E
09:34:29 Failed to receive reply from the device in given time.

from log it seems that GuruxSending request of high authentication instead of high GMAC
GMAC frame may be like below:
7E A0 2F 00 02 BA 69 61 32 E3 D8 E6 E6 00 C3 01 C1 00 0F 00 00 28 00 00 FF 01 01 09 11 10 00 00 01 FF 47 C5 1C 9D 3E 2D 64 F0 17 BC 01 22 74 EE 7E

BR,
AP

Image
Profile picture for user Kurumi

Kurumi

4 years 12 months ago

Hi,

Hi,

Your block cipher key and authentication key must be the same as the meter. If they are, the meter doesn't reply.
The reason why High authentication is used is that your meter returns that High authentication is used and not HighGMAC. The client starts to use it automatically.

https://www.gurux.fi/GuruxDLMSTranslator?translate=7EA05B0002BA696110C9…
BR,
Mikko

aoudumbarpawar

4 years 12 months ago

Hii Mikko,

Hii Mikko,
Thanks a lot!!!
I corrected the mistack in AARE but now when getting response from meter gurux shows error "Access error:Long set Or write aborted"

following is the log:
15:04:54 Send SNRM request.
TX: 7E A0 23 00 02 BA 69 61 93 FA DD 81 80 14 05 02 02 4D 06 02 02 4A 07 04 00 00 00 01 08 04 00 00 00 01 C3 59 7E
15:04:54
RX: 7E A0 23 61 00 02 BA 69 73 09 85 81 80 14 05 02 01 FC 06 02 01 FC 07 04 00 00 00 01 08 04 00 00 00 01 DD A1 7E
15:04:54 Send AARQ request.
TX: 7E A0 5B 00 02 BA 69 61 10 C9 A4 E6 E6 00 60 4A A1 09 06 07 60 85 74 05 08 01 01 A6 0A 04 08 31 32 33 34 35 36 37 38 8A 02 07 80 8B 07 60 85 74 05 08 02 05 AC 12 80 10 70 69 48 41 26 57 16 26 1E 5D 67 45 31 5A 62 00 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 5D FF FF 90 83 7E
15:04:54
RX: 7E A0 67 61 00 02 BA 69 30 E6 5D 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 0E A4 0A 04 08 33 44 4C 07 02 20 00 59 88 02 07 80 89 07 60 85 74 05 08 02 05 AA 12 80 10 61 62 63 64 65 66 67 68 69 6A 6B 6C 00 00 18 4F BE 10 04 0E 08 00 06 5F 1F 04 00 00 10 1D 02 00 00 07 AF 94 7E
15:04:54 Authenticating.
TX: 7E A0 2F 00 02 BA 69 61 32 E3 D8 E6 E6 00 C3 01 C1 00 0F 00 00 28 00 00 FF 01 01 09 11 10 00 00 00 00 99 F2 68 BC 19 78 4C FD 17 79 5B D8 29 2D 7E
15:04:55
RX: 7E A0 27 61 00 02 BA 69 52 F4 DA E6 E7 00 C7 01 C1 00 01 09 11 10 00 00 00 00 D5 62 05 41 EB DB 69 04 D9 61 09 E3 0E BF 7E

BR,
AP

Image

aoudumbarpawar

4 years 12 months ago

Hii Mikko,

Hii Mikko,
Thanks!!! Issue is resolved and get authenticated successfully :)

BR,
AP

Profile picture for user Kurumi

Kurumi

4 years 12 months ago

Hi,

Hi,

I'm glad that you solved it. Happy programming.

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