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. Reading Obis Object Values

Reading Obis Object values

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 ogtheterror , 29 April, 2022
Forums
Gurux.Net

Hi All

We trying to read DLMS meters.
We can successfully connect and create association views. We are now trying to read the values of the GXDLMSObject's but we are not able to identify the reading value in the reply object when doing a Read as per the example below:
Read attribute value.public object Read(GXDLMSObject it,int attributeIndex)
{
GXReplyData reply = new GXReplyData();
ReadDataBlock(Client.Read(it.Name, it.ObjectType, attributeIndex), reply);
return Client.UpdateValue(it, attributeIndex, reply.Value);
}

We are trying to Read OBIS Code: 1.1.32.7.0.255 Ch. 1 - L1 Voltage Inst. value
And receiving this reply object when sterilized to JSon:
{"DataType":9,"Value":"AQEgBwD/","ReadPosition":8,"PacketLength":23,"RawPdu":false,"Command":196,"CipheredCommand":0,"Data":{"Capacity":12,"Position":0,"Size":8,"Available":8,"Data":"CQYBASAHAP8gBwD/"},"IsComplete":true,"FrameId":82,"InvokeId":193,"Error":0,"EmptyResponses":0,"TotalCount":0,"CipherIndex":0,"Time":"0001-01-01T00:00:00","BlockNumber":0,"BlockNumberAck":0,"ClientAddress":18,"TargetAddress":18,"ServerAddress":16,"SourceAddress":16,"Gateway":null,"IsMoreData":false,"IsNotify":false,"MoreData":0,"ErrorMessage":"","Count":0,"Peek":false}

TX: 10:18:45 7E A0 19 21 25 32 8C 09 E6 E6 00 C0 01 C1 00 03 01 01 20 07 00 FF 01 00 38 36 7E
RX: 10:18:48 7E A0 18 25 21 52 30 72 E6 E7 00 C4 01 C1 00 09 06 01 01 20 07 00 FF 04 08 7E

BlockCipher key: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
Authentication Key:D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF
1: 7E A0 18 25 21 52 30 72 E6 E7 00 C4 01 C1 00 09 06 01 01 20 07 00 FF 04 08 7E
<HDLC len="17" >
<TargetAddress Value="12" />
<SourceAddress Value="10" />
<FrameType Value="52" />
<PDU>
<GetResponse>
<GetResponseNormal>
<!-- Priority: High, ServiceClass: Confirmed, Invoke ID: 1 -->
<InvokeIdAndPriority Value="C1" />
<Result>
<Data>
<!-- 1.1.32.7.0.255 -->
<OctetString Value="0101200700FF" />
</Data>
</Result>
</GetResponseNormal>
</GetResponse>
</PDU>
</HDLC>

Is the OctetString the meter reading and how do we translate the value?
If its not the reading where / how do we get it?
Please could you help with some insight.
Regards
Gavin

Profile picture for user Kurumi

Kurumi

4 years 3 months ago

Hi,

Hi,

You have read the logical name of the object. It's in attribute index #1. Try to read index #2.
Try to read the meter with GXDLMSDirector first. It will help you to get an idea from DLMS meters.

BR,
Mikko

ogtheterror

4 years 2 months ago

Thanks Mikko, we knew we

Thanks Mikko, we knew we where missing something small.
Gavin

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More

Who's new

  • Thomasqto
  • Uka Ibe
  • CTKNhZElptjSlOrpkXl
  • YCbccqfLGRMnlCWoJhXP
  • Malcolmactig
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin