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. Connect To DLMS Meter With HLS (High GMAC)

Connect to DLMS meter with HLS (High 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 paulws85 , 5 November, 2019
Forums
Gurux DLMS for Java

Hello,

Could you help me resolve my problem with connection to the DLMS meter using following settings: GXDLMSSecureClient dlmsSecureMeter = new GXDLMSSecureClient(true, 1, 1, Authentication.HIGH_GMAC, "01234567", InterfaceType.WRAPPER);
dlmsSecureMeter.getCiphering().setSecurity(Security.AUTHENTICATION_ENCRYPTION);
dlmsSecureMeter.getCiphering().setSystemTitle("ABCD1234".getBytes("ASCII"));
dlmsSecureMeter.getCiphering().setAuthenticationKey(GXCommon.hexToBytes("30303030303030303030303030303032"));
dlmsSecureMeter.getCiphering().setBlockCipherKey(GXCommon.hexToBytes("30303030303030303030303030303030"));

As you can see I was trying to communicate with meter using High GMAC authentication and encryption but without result.
Below you can find my results of connection test:
Authentication: HighGMac
ClientAddress: 0x1
ServerAddress: 0x1
TX: 18:00:56.703 00 01 00 01 00 01 00 5F 60 5D A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 41 50 41 30 30 38 30 37 8A 02 07 80 8B 07 60 85 74 05 08 02 05 AC 12 80 10 4D 70 5E 3D 17 55 60 6A 3A 40 78 03 54 20 70 3C BE 23 04 21 21 1F 30 00 00 00 00 7B 7A B6 C0 7B 55 0F BD 74 04 59 3F 51 B5 91 2F 12 32 15 68 42 13 6B 07 18 B5
RX: 18:00:57.194 00 01 00 01 00 01 00 6B 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 A4 0A 04 08 41 50 41 BB 04 05 72 72 88 02 07 80 89 07 60 85 74 05 08 02 05 AA 12 80 10 8A 6E 95 7B 70 1A DF 71 DD E4 6F 77 CE A2 A6 36 BE 23 04 21 28 1F 30 00 30 44 94 87 23 B0 C3 E4 93 E3 11 6C C1 A1 DF C6 62 3A 3A 3D 21 84 81 D8 ED 96 5A 82 7A
TX: 18:00:57.200 00 01 00 01 00 01 00 33 CB 31 30 00 00 00 00 B9 7B 77 C0 72 0A 10 91 74 04 B8 23 AF 43 99 51 9C 8A 92 A2 D1 66 FB 75 A3 59 5D C1 EE 00 D4 9D 23 14 9F AA 38 61 F7 30 A5 2B CA 10
Data send failed. Try to resend 1/3
TX: 18:01:57.201 00 01 00 01 00 01 00 33 CB 31 30 00 00 00 00 B9 7B 77 C0 72 0A 10 91 74 04 B8 23 AF 43 99 51 9C 8A 92 A2 D1 66 FB 75 A3 59 5D C1 EE 00 D4 9D 23 14 9F AA 38 61 F7 30 A5 2B CA 10

Please tell me if I made mistake during configuration or I missed something.

P.S. I'm sure that the authentication and cipher keys are fine because they were tested using another application that doesn't use your library. Also, I have tested your simple client with security level set to NONE and then the connection to meter and reading of meters were sucesfull.

I attached also the results for the GXDLMSDirector tests. After connection I couldn't read the Association view.

Thank you!
BR,
Paweł

Image

paulws85

6 years 7 months ago

Next image from the

Next image from the GXDLMSDirector

Image

paulws85

6 years 7 months ago

Next image from

Next image from GXDLMSDirector

Image
Profile picture for user Kurumi

Kurumi

6 years 7 months ago

Hi,

Hi,

Meter reply for AARQ correctly, but when you are sending Client to server challenge it fails to reply.
Is this implemented for the meter?
BR,
Mikko

paulws85

6 years 6 months ago

Hello Mikko,

Hello Mikko,

Thank you for your reply! Yes, I tested real DLMS meter.
I know also that for the following proper constructed TX & RX messages I can communicate with meter properly. I noticed that the <CallingAuthentication> & <RespondingAuthentication> values are shorter compared with the values from TX & RX messages from my previous post besides I used the same input parameters. Do you have any idea why there are such differences?

Thank you and
Best regards,
Paweł
---------------------------------------
TX: <WRAPPER len="95" >
<TargetAddress Value="1" />
<SourceAddress Value="1" />
<PDU>
<AssociationRequest>
<ApplicationContextName Value="LN_WITH_CIPHERING" />
<CallingAPTitle Value="4142434431323334" />
<SenderACSERequirements Value="1" />
<MechanismName Value="HighGMac" />
<CallingAuthentication Value="D010A7CEC3163A66" />
<glo_InitiateRequest Value="3000007B14DAD8F1F9060A7D94E5C1F0E2309DFECC1DD7A81B385F16B9D001" />
</AssociationRequest>
</PDU>
</WRAPPER>
---------------------------------------
RX: <WRAPPER len="107" >
<TargetAddress Value="1" />
<SourceAddress Value="1" />
<PDU>
<AssociationResponse>
<ApplicationContextName Value="LN_WITH_CIPHERING" />
<AssociationResult Value="0" />
<ResultSourceDiagnostic>
<!--AUTHENTICATION_REQUIRED-->
<ACSEServiceUser Value="14" />
</ResultSourceDiagnostic>
<RespondingAPTitle Value="415041BB04057272" />
<ResponderACSERequirement Value="1" />
<MechanismName Value="HighGMac" />
<RespondingAuthentication Value="D54658F5A176E9C6" />
<glo_InitiateResponse Value="3000308B35BE2C1A6CB7AFBBD9A8EDDBD26AFE7929F352E8B0E5DE8E4769BF" />
</AssociationResponse>
</PDU>
</WRAPPER>
---------------------------------------
TX: <WRAPPER len="59" >
<TargetAddress Value="1" />
<SourceAddress Value="1" />
<PDU>
<glo_ActionRequest Value="3000007B1512AF8564D6F94A4449F265DF47C75491976BF6131E6CD606F63A0A6644CF0E403B80A13F5A62F8C0384441A7" />
</PDU>
</WRAPPER>

Profile picture for user Kurumi

Kurumi

6 years 5 months ago

Hi,

Hi,

CallingAuthentication is a random challenge and it might vary. You can set "Challenge" in "Secured connections" tab if you want to use same challenge every time.

I believe that one of your settings is invalid and for this reason meter read fails.

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