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

2 years 11 months 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

  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200
  • Mon, 06/15/2026 - 08:52
    gurux.dlms.c 9.0.2606.1501

New forum topics

  • Service not known error on gprs communication
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin