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. How Can I Make Control Field One Byte Hex Value?????

How can i make control field one byte hex value?????

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 chang2 , 14 October, 2018
Forums
General discussion

I am using obis code to construct a dlms frame.

our test device is NJ12-210-GEN made by NamJun Co,Ltd in korea

we send broadcast packet by using python pyserial module, but we don't know how control field is set..

For example, we want to know date/time information, then we send dlms data included OBIS Code(08 00 00 01 00 00 FF)

In this case, full dlms data are set to "7E A0 1A 02 FF 23 54 DA 6D E6 E6 00 C0 01 81 00 08 00 00 01 00 00 FF 02 00 65 D7 7E"

when i translate they by using DLMS Translator, i can get xml code

<HDLC len="25" >
<TargetAddress Value="255" />
<SourceAddress Value="17" />
<!--I frame.-->
<FrameType Value="54" />
<PDU>
<GetRequest>
<GetRequestNormal>
<InvokeIdAndPriority Value="129" />
<AttributeDescriptor>
<!--CLOCK-->
<ClassId Value="8" />
<!--0.0.1.0.0.255-->
<InstanceId Value="0000010000FF" />
<AttributeId Value="2" />
</AttributeDescriptor>
</GetRequestNormal>
</GetRequest>
</PDU>
</HDLC>

But I don't know how Frame Type(A.K.A control field, 0x54) is set.

please teach me how to make control field byte...

Profile picture for user Kurumi

Kurumi

7 years 7 months ago

How can i make control field one byte hex value?????

Hi,

HDLC frame is described on the standard. Its value is changed all the time. I believe that the best and fastest way is if you use our open source libraries to read your meter.

BR,
Mikko

Charaniya

1 year 7 months ago

not need to use your library…

not need to use your library just share how we make control frame for any hex string?

Profile picture for user Kurumi

Kurumi

1 year 7 months ago

Hi, DLMS is a complicated…

Hi,

DLMS is a complicated protocol and the control frame is part of HDLC framing.
It's not possible to describe shortly. You need the "IEC 62056-46 Data link layer using HDLC protocol" standard to handle the HDLC frames.

https://gurux.fi/DLMSCOSEMFAQ

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