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

HLS 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 ramdev3108 , 19 March, 2020
Forums
General discussion

Hi,
We are designing the DLSM server application ,When we are interfacing Highlevel-GMAC we are facing problem is that ,once authenticate frame was received, GURUX Tool Raising an error “Long set or Write Aborted” where is the problem is going we are not getting an idea.The resultant frames has given below.
would you please suggest the correct thing.

the server KEYS are

global key is 0123456789ABCDEF
authentication key is 0123456789ABCDEF
system title is ABC00001

Send SNRM request.
TX: 7E A0 20 03 61 93 1B 9F 81 80 14 05 02 05 01 06 02 05 01 07 04 00 00 00 01 08 04 00 00 00 01 DD 70 7E

RX: 7E A0 20 61 03 73 05 9E 81 80 14 05 02 02 00 06 02 02 00 07 04 00 00 00 01 08 04 00 00 00 01 6F EF 7E

Send AARQ request.
TX: 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 30 30 30 30 31 8A 02 07 80 8B 07 60 85 74 05 08 02 05 AC 12 80 10 15 3A 44 11 47 4A 38 06 48 50 76 79 14 21 15 20 BE 34 04 32 21 30 30 00 00 00 00 2F BB EB 75 58 BD 55 B5 3C 83 6E 26 10 82 70 93 09 56 32 7D 98 83 10 56 2A FB B5 91 E6 50 43 F5 09 04 E1 23 67 19 78 F2 6B 93 65 30 29 7E

RX: 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 A4 0A 04 08 41 42 43 30 30 30 30 31 88 02 07 80 89 07 60 85 74 05 08 02 05 AA 12 80 10 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 BE 23 04 21 28 1F 30 00 00 00 03 68 0F FD A4 99 99 56 70 C5 ED 1B 42 E7 D3 3C 47 82 A4 81 B6 87 80 3A 93 C7 9D 0F 93 7E

Authenticating.
TX: 7E A0 3F 03 61 32 C0 5A E6 E6 00 CB 31 30 00 00 00 02 AF 2E 7A E4 19 50 97 AD AD 06 E2 53 98 19 19 CD 7D 29 38 44 59 5D 50 27 D9 ED 34 83 05 F1 FC 0B 85 81 FE D0 3E 15 98 AA F9 E4 62 1D 08 11 7E

RX: 7E A0 37 61 03 52 0E 3A E6 E7 00 CF 29 30 00 00 00 03 A7 0E 3A FB 87 94 47 60 DC F0 1A 94 1C 6E 8E C4 5A AC 2C 72 70 EB 22 70 81 03 A8 54 3C D3 01 DC 52 39 63 9A 56 1C 7E

Regards
DLMS Team.

Profile picture for user Kurumi

Kurumi

6 years 2 months ago

Hi,

Hi,

This is an error that your meter replies. Check your meter code.
BR,
Mikko

<HDLC len="36" >
<TargetAddress Value="30" />
<SourceAddress Value="1" />
<FrameType Value="52" />
<PDU>
<!--Decrypt data: C7 01 C1 00 01 09 11 10 01 00 00 00 FB BA 99 02 0D CA 33 89 63 08 0A C9
<ActionResponse>
<ActionResponseNormal>
<InvokeIdAndPriority Value="C1" />
<Result Value="Success" />
<ReturnParameters>
<DataAccessError Value="LongSetOrWriteAborted" />
</ReturnParameters>
</ActionResponseNormal>
</ActionResponse>
-->
<glo_ActionResponse Value="3000000003A70E3AFB87944760DCF01A941C6E8EC45AAC2C7270EB22708103A8543CD301DC5239639A" />
</PDU>
</HDLC>

ramdev3108

6 years 2 months ago

As per above data analysis,

As per above data analysis, Result Value is success.
Here
01 is array
09 is Octet String
11 is Length of Octet String
10 is Security Control byte (Authentication)
01 00 00 00 is Block Number
FB BA 99 02 0D CA 33 89 63 08 0A C9 is Data

Please suggest correct frame format with above data.

Profile picture for user Kurumi

Kurumi

6 years 2 months ago

Hi,

Hi,

You should check this from DLMS standard, but there is one byte missing. Correct data is:
C7 01 C1 00 01 00 09 11 10 01 00 00 00 FB BA 99 02 0D CA 33 89 63 08 0A C9

BR,

Mikko

ramdev3108

6 years 2 months ago

Thanks for your quick

Thanks for your quick response, as per your shared trace we corrected our end & it's working.

ramdev3108

5 years 9 months ago

Dear Sir,

Dear Sir,

Please provide the client request frame format for the selected capture objects by using the range descriptor (Access selector = 1).
Would you please suggest me,Based on the request we will develop the meter response.

Thanking you,
Regards,
Ramdev

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

The easiest way is if you use GXDLMSDirector to read your meter. It generates that request.

BR,

Mikko

ramdev3108

5 years 9 months ago

Dear Sir,

Dear Sir,

We are using GXDLMSDirector to read the meter. Please suggest us how to set the tool options for the
selected capture objects by using the range descriptor (Access selector = 1).

We are sharing the block load profile reading (1.0.99.1.0.255) screen shot.

Image
Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

Select "Read last" days. It will generate read using a given range. If you want read columns only partially then you need to make own app for that. You can use Client example as a template:

https://github.com/Gurux/Gurux.DLMS.Net/tree/master/Gurux.DLMS.Client.E…

BR,
Mikko

ramdev3108

5 years 9 months ago

Dear Sir,

Dear Sir,

Thanks for your suggestion.

Regards,
Ramdev

ramdev3108

5 years 5 months ago

Dear Sir,

Dear Sir,
in IEC HDLC setup, (class_id = 23, version = 0) what are the max_info_length_ transmit (fifth attribute ) and max_info_length_ receive (sixth attribute). It means transmit /received total length is HDLC frame (including 7E to 7E) total length or HDLC information field length.

Regards
K.Anand.

Profile picture for user Kurumi

Kurumi

5 years 5 months ago

In reply to Dear Sir, by ramdev3108

Dear Sir,

Dear Sir,

Please, create a new topic if you have a new question. I'll answer your question there.
https://www.gurux.fi/ForumRules

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