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

  • 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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin