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. Understanding Bit String Data Type

Understanding bit string data type

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 Pavan.NR , 5 June, 2019
Forums
Gurux.DLMS

I have bytes as 0F 00 00 00 01 0C 07 E2 0C 1D FF 0E 36 07 FF 80 00 00 02 04
0A 0A 49 54 50 31 33 35 34 36 39 31 09 06 00 04 19 09 00 FF 09 0C 07 E2 0C 1D
FF 0E 36 07 FF 80 00 00 04 81 80 00 00 00 00 00 00 10 00 00 00 05 00.
In this i am not able to understand bit string 04 81 80 00 00 00 00 00 00 10
00 00 00 05 00. This bytes are for first breath event push.

RAW BYTES: 00 01 00 01 00 40 00 59 DB 08 49 54 50 35 34 36 39 31 4E 20 00 00 00 00 3F 27 08 2B DC C5 4C A6 C6 B6 46 03 89 86 8A 7E 86 B6 F9 4D 48 6B C6 D2 24 B0 B4 25 85 8D F0 F4 49 0A DF B1 62 29 02 C1 71 FB BE 37 29 44 7C 54 51 71 5B AD 02 19 1F FF B7 72 B0 0F 1F D9 80 78 9B 51 0F B3 C1 F4 01 05 78

DE-CRYPT-ED BYTES: 0F 00 00 00 01 0C 07 E2 0C 1D FF 0E 36 07 FF 80 00 00 02 04 0A 0A 49 54 50 31 33 35 34 36 39 31 09 06 00 04 19 09 00 FF 09 0C 07 E2 0C 1D FF 0E 36 07 FF 80 00 00 04 81 80 00 00 00 00 00 00 10 00 00 00 05 00

Please help me with your valuable input for the same.
Thank you in advance.

Pavan NR
Senior Software Engineer
Bangalore, India

Profile picture for user Kurumi

Kurumi

7 years ago

Hello Pavan,

Hello Pavan,

Your meter is sending invalid bit string. after 04 should be the length of bit string. Now it's 128, but there are only 96 bits.

Ask the manufacturer to fix this.

04 BIT_STRING
81 80 //LEN = 128 BITS
00 00 00 00 00 00 10 00 00 00 05 00 //12*8=96 bits.

Correct PDU is this:
http://www.gurux.fi/GuruxDLMSTranslator?pdu=0F000000010C07E20C1DFF0E360…

BR,

Mikko

jan.kolar

6 years 5 months ago

Hello Mikko, could you please

Hello Mikko, could you please explain why 04 means BIT_STRING and how is length 128 bits encoded to 81 80 ? If possible to reference standard where I can find more information.

Profile picture for user Kurumi

Kurumi

6 years 5 months ago

Hi Ján,

Hi Ján,

Please, create a new topic if you have a new question.

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