Skip to main content
Home
for DLMS smart meters

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

1 year 7 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

1 year 6 months ago

Thanks Mikko, we knew we

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

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

Tue, 11/21/2023 - 09:55
Gurux.DLMS.AMI4 4.0.2311.2101
Tue, 11/21/2023 - 09:41
Gurux.DLMS.Net 9.0.2311.2101
Thu, 11/16/2023 - 08:52
gurux.dlms.c 20231116.1
Mon, 11/13/2023 - 15:41
Gurux.DLMS.AMI4 4.0.2311.1301
Mon, 11/13/2023 - 13:26
gurux.dlms.c 20231113.1

Open bugs

gurux.dlms.c
4
gurux.dlms.cpp
3
gurux.dlms.delphi
1

New forum topics

  • [Gurux DLMS for C] Error in "loadSettings" function located in "svr_InitObjects" function
  • Power Meter Integration Using DLMS Protocol
  • [Gurux DLMS for C] Problem writing to an attribute of type 'array'
  • Image transfer failing in cosem_checstructure function
  • Index was out of range. Must be non-negative and less than the size of the collection parameter name:index
More

Who's new

  • Ajith
  • Belete
  • Berkay
  • MohamedYassineGarali
  • Chetna
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin