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. Electricity Meters From Kaifa Do Not Seem To Transmit Valid Frames

Electricity meters from Kaifa do not seem to transmit valid frames

By Olverine , 26 October, 2023
Forums
General discussion

Here is an example of hexadecimal data received from the HAN port of a Kaifa MA304H4PSE:

7e a0 9a 01 00 01 10 12 10 e6 e7 00 0f 40 00 00 00 09 0c 07 e7 0a 14 05 12 3a 0f ff ff c4 00 02 12 09 07 4b 46 4d 5f 30 30 31 09 10 37 33 34 30 31 35 37 30 33 30 39 30 34 30 34 35 09 07 4d 41 33 30 34 48 34 06 00 00 01 a9 06 00 00 00 00 06 00 00 00 00 06 00 00 00 04 06 00 00 00 61 06 00 00 01 ac 06 00 00 05 c4 06 00 00 08 fa 06 00 00 08 fe 06 00 00 09 0f 09 0c 07 e7 0a 14 05 12 3a 0f ff ff c4 00 06 00 07 4b b5 06 00 00 00 00 06 00 00 64 3c 06 00 02 6e f6 4b 0b 7e

A whole list of examples can be found here: https://github.com/roarfred/AmsToMqttBridge/blob/master/Samples/Kaifa/H…

There seems to be a problem parsing this data. The online parser says 'Invalid DLMS framing.'

After analyzing it myself, This seems to be because of the 18th byte (0c) which seems to represent the datatype (octet string) of the date time. As far as I understand, this byte is not supposed to be present.

Frames from Kamstrup for example look very similar but do not have this byte and they are parseble.

Am I correct in assuming that the Kaifa implementation is incorrect or am I missing something?

Profile picture for user Kurumi

Kurumi

2 years 10 months ago

Hi, There is an issue with…

Hi,
There is an issue with this meter. The meter sends date-time and it should be an octet-string without the data type. If you remove 0x09 before 0x0c you can get the correct outcome. You need to ask if there is a firmware update available for the meter that fixes this.

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