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. [Gurux.DLMS.Python] ValidateAare Invalid Tag Error

[Gurux.DLMS.Python] validateAare Invalid tag error

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 pablo.ospino , 7 December, 2021
Forums
Gurux.DLMS

Hi there,

I have a problem with the connection with my Landis+Gyr E650 Meter through IP/PORT.

Here I attach the dataframes.

RX: 10:32:23 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 3E 07 04 00 00 00 01 08 04 00 00 00 01 07 22 7E
TX: 10:32:23 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 02 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 1C 03 20 FF FF 80 AB 7E
RX: 10:32:24 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 3E 07 04 00 00 00 01 08 04 00 00 00 01 07 22 7E
TX: 10:32:24 7E A0 07 03 21 53 03 C7 7E
RX: 10:32:25 7E A0 37 21 03 30 6C 7C E6 E7 00 61 28 A1 09 06 07 60 85 74 05 08 01 02 A2 03 02 01 00 A3 05 A1 03 02 01 00 BE 0F 04 0D 08 00 06 5F 1F 04 00 18 02 20 09 60 FA 00 0A A8 7E

In any case, in the python code appears the following error.
--> ValueError: Invalid tag. on the validateAareResponse method.

```python
reply = GXReplyData()
data = self.client.snrmRequest()
if data:
self.readDLMSPacket(data, reply)
self.client.parseUAResponse(reply.data)
size = self.client.limits.maxInfoTX + 40
self.replyBuff = bytearray(size)
reply.clear()
self.readDataBlock(self.client.aarqRequest(), reply)
self.client.parseAareResponse(reply.data) <============= ERROR Happens here
reply.clear()
```

What could it be the cause of it? Is there any extra information I can provide to help solve this issue?

Thanks!

Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi,

Hi,

The content of the data is correct, but data comes in the wrong order and some of the data is echoed. Are you using Moxa, etc. that might cause this? I believe that your meter is not using TCP/IP module?

BR,
Mikko

pablo.ospino

4 years 6 months ago

Thanks Mikko for the quick

Thanks Mikko for the quick response.

I am using a Landys gyr meter. Specifically the one with model E650.
does this one need to install the TCP/IP module?

Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi,

Hi,

If you are using Communication Units E20 there should be no problem. You can connect directly to the meter. Are you using RS-232 to TCP/IP router?

BR,
Mikko

pablo.ospino

4 years 6 months ago

Hi Mikko,

Hi Mikko,

Thanks a lot, I will check and let you know.
Another fact is that the meter can correctly connect to the software .dMap110 from LandysGyr through TCP/IP without any problem.

Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi,

Hi,

The data frames that you added are invalid. Have you tried to read the meter with DLMS client example?

parameters are something like:

-h YOUR_METER_ADDRESS -p YOUR_METER_PORT -r sn -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

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin