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. AARQ Question

AARQ question

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 ac123 , 19 June, 2020
Forums
Gurux.DLMS

Hi,

I am using Landis E650 meter, when I try to send an AARQ request i get denied.

S -> 7ea03c0381108494e6e600602e80020780a1090607608574050801028a0207808b0760857405080200be10040e01000000065f1f04001c0b2000008e2a7e

R <- 7ea036810330006fe6e7006128a109060760857405080102a203020101a305a10302010ebe0f040d0800065f04001802200960fa00203b7e

But if I use the AARQ tha is generated using .MAP program it works.

S-> 7EA02E038110536EE6E600602080020780A109060760857405080102BE0F040D01000000065F04001C1320000008047E

R<- 7ea036810330006fe6e7006128a109060760857405080102a203020100a305a103020100be0f040d0800065f04001802200960fa0064c27e

What's the difference between the 2 and how can I get the second request using your library.
I am using Android.

Regards,
Alex

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi Alex,

Hi Alex,

Don't set Protocol version. I believe that you are not using Gurux Android component?

BR,
Mikko

ac123

5 years 11 months ago

In reply to Hi Alex, by Kurumi

Hi Mikko,

Hi Mikko,

I tried not setting the protocol version however I still got the same result:
S-> 7ea03803811068e6e6e600602aa1090607608574050801028a0207808b0760857405080200be10040e01000000065f1f04001c0b200000137c7e

R<- 7ea036810330006fe6e7006128a109060760857405080102a203020101a305a10302010ebe0f040d0800065f04001802200960fa00203b7e

And as per your question, yes I am using Gurux Android ( but only for the first aarq req that i showed above, the second one is copied from .map110 software). I have implemented these packages into my app:
implementation 'com.github.gurux:gurux.common.android:-SNAPSHOT'
implementation 'com.github.gurux:gurux.serial.android:-SNAPSHOT'
implementation 'com.github.gurux:gurux.dlms.android:-SNAPSHOT'

And the way I init the client is:

client = new GXDLMSClient();
client.setUseLogicalNameReferencing(false);
client.setInterfaceType(gurux.dlms.enums.InterfaceType.HDLC);
client.setServerAddress(1);
client.setClientAddress(64);
client.setAuthentication(Authentication.NONE);
client.getProposedConformance().add(Conformance.BLOCK_TRANSFER_WITH_SET_OR_WRITE);
client.setMaxReceivePDUSize(0);
...
Send -> client.aarqRequest();

I have also tried not adding "BLOCK_TRANSFER_WITH_SET_OR_WRITE" and not setting max PDU size but I get the same result as the rest. The reason i did those including setting the protocol version is to get as close as possible to the request that works.

The only difference I see between the two signals above is that the one that doesn't work has these two additional lines:
<SenderACSERequirements Value="1" />
<MechanismName Value="None" />

Could I somehow remove those 2?

BR,
Alex

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

Are you sure that you are running version from GitHub? I made a new project added your source code and there is no version. What is your Android Studio version?

BR,
Mikko

ac123

5 years 11 months ago

In reply to Hi, by Kurumi

Hi,

Hi,

I am using Android Studio 3.6.3, and i'm pretty sure that it's your github version since it says github in the implementation itself implementation 'com.github.gurux:gurux.serial.android:-SNAPSHOT'. Did you add your library the same way? Which version do you not have, are you talking about ProposedDlmsVersionNumber or ProtocolVersion?

Also today I downloaded your github code and modified your method 'getAuthenticationString' to suppress ACSE-requirements field (in the previous comments I used the unmodified github version) and it worked.

S-> 7ea0340381105c71e6e6006026a1090607608574050801028b0760857405080200be10040e01000000065f1f04001c0b200000551b7e

R<- 7ea037810330bb73e6e7006128a109060760857405080102a203020100a305a103020100be0f040d0800065f1f04001802200960fa000aa87e

Why would that be an issue?

BR,
Alex

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

You are right. I accidentally use a different version that is not published yet. This is fixed. Get the latest version.

BR,
Mikko

ac123

5 years 11 months ago

In reply to Hi, by Kurumi

Thank you for your help.

Thank you for your help.

BR,
Alex

  • 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