Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
  • Gurux Club
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Connection stuck at AARQRequest

Connection stuck at AARQRequest

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 hhkx, 8 July, 2022
Forums
Gurux.Net

Hi,

I am trying to read a Hexing ATC dlms meter while console app. The connection gets stuck at _settings.Client.AARQRequest()

Connection settings: InterfaceType.Hdlc, Password.None, Client Address: 1, Server Address: 1, useLogicalNameReferencing: true.

I have even set these settings and tried again but nothing changes:
Client.HdlcSettings.MaxInfoTX = 512;
Client.HdlcSettings.UseFrameSize = true;

Their own software log below:

12:19:59 MeterTalkerThread: Start Meter Reading......
12:19:59 COM14 Send: 7E A0 07 03 03 93 8C 11 7E
12:20:00 COM14 Rcv:7E A0 20 03 03 73 F0 2E 81 80 14 05 02 02 00 06 02 00 00 07 04 00 00 00 01 08 04 00 00 00 01 BB 12 7E
12:20:00 COM14 Send: 7E A0 47 03 03 10 A8 B1 E6 E6 00 60 39 80 02 07 80 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 30 30 30 30 30 30 30 30 BE 0F 04 0D 01 00 00 00 06 5F 04 00 00 00 19 FF FF C2 2A 7E
12:20:01 COM14 Rcv:7E A0 44 03 03 30 67 B5 E6 E7 00 61 36 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 88 02 07 80 89 07 60 85 74 05 08 02 01 BE 10 04 0E 08 00 06 5F 1F 04 00 00 00 18 01 C2 00 07 D2 2B 7E
12:20:01 SERVICE = GET REQUEST, OBIS =1-0-1-8-0-255, IC=3, ATTR: INDEX=2
12:20:01 COM14 Send: 7E A0 19 03 03 32 EC C8 E6 E6 00 C0 01 81 00 03 01 00 01 08 00 FF 02 00 37 A5 7E
12:20:02 COM14 Rcv:7E A0 15 03 03 52 DE 3C E6 E7 00 C4 01 81 00 06 00 00 00 00 7B DF 7E
12:20:02 SERVICE = GET REQUEST, OBIS =1-0-1-8-0-255, IC=3, ATTR: INDEX=3
12:20:02 COM14 Send: 7E A0 19 03 03 54 DC CE E6 E6 00 C0 01 81 00 03 01 00 01 08 00 FF 03 00 EF BC 7E
12:20:02 COM14 Rcv:7E A0 16 03 03 74 27 5D E6 E7 00 C4 01 81 00 02 02 0F 01 16 1E 4C EB 7E
12:20:02 Read Total active energy+ ,[current month] Data success!
12:20:02 Read Energy Data success!
12:20:02 COM14 Send: 7E A0 07 03 03 53 80 D7 7E
12:20:03 COM14 Rcv:7E A0 20 03 03 73 F0 2E 81 80 14 05 02 02 00 06 02 00 00 07 04 00 00 00 01 08 04 00 00 00 01 BB 12 7E

Image
Profile picture for user Kurumi

Kurumi

1 year 2 months ago

Hi,

Hi,

There is an issue with the meter. The meter returns that the maximum receive frame size is zero in UA frame and this is an invalid value. This basically means that the meter can only send push messages and can't receive any data from the client.
You should info the meter vendor about this.

You can handle this error if you manually set MaxInfoTX like this before you call AARQRequest:

_settings.Client.HdlcSettings.MaxInfoTX = 512;

hhkx

1 year 2 months ago

Hi Kurumi,

Hi Kurumi,

I have added manually the MaxInfo setting before calling AARQRequest before calling as you said.
It throws an authentication exception.

Send SNRM request.7E A0 07 03 03 93 8C 11 7E
Info: Receive-Send Waiting Time: 30 sn.
TX: 11:53:02 7E A0 07 03 03 93 8C 11 7E
! Received byte count:34
Final! Received byte count:34
RX: 11:53:02 7E A0 20 03 03 73 F0 2E 81 80 14 05 02 02 00 06 02 00 00 07 04 00 00 00 01 08 04 00 00 00 01 BB 12 7E
Parsing UA reply.81 80 14 05 02 02 00 06 02 00 00 07 04 00 00 00 01 08 04 00 00 00 01
Parsing UA reply succeeded.
Send AARQ request 7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 5D FF FF B3 E2 7E
Info: Receive-Send Waiting Time: 30 sn.
TX: 11:53:02 7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 5D FF FF B3 E2 7E
! Received byte count:91
Final! Received byte count:91
RX: 11:53:03 7E A0 37 03 03 30 EF CA E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 01 A3 05 A1 03 02 01 0D BE 10 04 0E 08 00 06 5F 1F 04 00 00 18 18 01 C2 00 07 28 F0 7E
Parsing AARE reply61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 01 A3 05 A1 03 02 01 0D BE 10 04 0E 08 00 06 5F 1F 04 00 00 18 18 01 C2 00 07
Gurux.DLMS.GXDLMSException: Connection is permanently rejected. Authentication failure.
at Gurux.DLMS.Internal.GXAPDU.ParsePDU2(GXDLMSSettings settings, GXICipher cipher, GXByteBuffer buff, GXDLMSTranslatorStructure xml)
at Gurux.DLMS.Internal.GXAPDU.ParsePDU(GXDLMSSettings settings, GXICipher cipher, GXByteBuffer buff, GXDLMSTranslatorStructure xml)
at Gurux.DLMS.GXDLMSClient.ParseAAREResponse(GXByteBuffer reply)
at DLMSClient.DLMSReader.InitializeConnection() in C:\Repos\DLMSClient\DLMSReader.cs:line 71
at DLMSClient.Program.Main(String[] args) in C:\Repos\DLMSClient\Program.cs:line 331
Disconnecting from the meter.
Info: Receive-Send Waiting Time: 30 sn.
TX: 11:53:03 7E A0 07 03 03 53 80 D7 7E
! Received byte count:125
Final! Received byte count:125
RX: 11:53:04 7E A0 20 03 03 73 F0 2E 81 80 14 05 02 02 00 06 02 00 00 07 04 00 00 00 01 08 04 00 00 00 01 BB 12 7E

hhkx

1 year 2 months ago

Okay, It has a password.

Okay, It has a password.

It is okay now. Thank you.

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

Fri, 09/22/2023 - 19:50
gurux.dlms.c 20230922.1
Mon, 09/18/2023 - 13:51
Gurux.DLMS.AMI4 4.0.2309.1801
Fri, 09/15/2023 - 12:00
gurux.dlms.c 20230915.1
Tue, 09/12/2023 - 11:10
Gurux.DLMS.AMI4 4.0.2309.1201
Fri, 09/08/2023 - 10:59
gurux.dlms.c 20230908.1

Open bugs

gurux.dlms.c
3
gurux.dlms.cpp
3
gurux.dlms.delphi
1

New forum topics

  • problem with date and time in ION
  • Permament rejected
  • DLMS- GMAC: SNRM, AARQ, AARE is responding but not able to decrypt the Authentication key received from the meter
  • List complete policy security configuration basic (configuration security))
  • Save Association view in database
More

Who's new

  • azcah
  • Robertciz
  • Ilushikqtg
  • Margaretyhs
  • Mariohag
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin