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. Node
  3. Invalid Tag

Invalid tag

By nick32 , 23 August, 2023
Forums
Gurux DLMS for Java

Hi Mikko,

I am working with Buyi DLMS Meter and talking to them about how to connect their meters, they said use Wrapper Mode Interface to send AARQ message, but when I take response meter message and parse using client.parseAareResponse(reply.getData()) I have "invalid tag" error:

Exception in thread "main" java.lang.RuntimeException: Invalid tag.
at gurux.dlms.GXAPDU.validateAare(GXAPDU.java:797)
at gurux.dlms.GXAPDU.parsePDU(GXAPDU.java:809)
at gurux.dlms.GXDLMSClient.parseAareResponse(GXDLMSClient.java:630)
at com.example.Main.main(Main.java:39)

The message was sent to meter, look like this:

AARQ Message: 00 01 00 02 00 01 00 38 60 36 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 32 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 40 1E 1D FF FF

Meter Response: 00 01 00 01 00 02 00 2B 61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 BE 10 04 0E 08 00 06 5F 1F 04 00 00 12 15 00 C8 00 07

idk what do i have to do, Can you help me please ?

Profile picture for user Kurumi

Kurumi

3 years ago

Hi, Have you modified the…

Hi,

Have you modified the source code? I just tested this with java client and connection succeeded without problems.
https://github.com/Gurux/gurux.dlms.java/tree/master/gurux.dlms.client…

Command line parameters are:
-h YOUR_METER_IP -p PORT_NUMBER -i WRAPPER -c 2 -a Low -P 00000002 -t Verbose

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin