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 Code Values Decimal Is Missing

reading OBIS code values decimal is missing

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 vamsi , 4 May, 2017
Forums
Gurux.DLMS

Hi,

I am trying to read indual OBIS code values ,ican able to read the value but decimal is missing .
i am using the below code to read OBIS value.

CGXDLMSVariant value;
CGXReplyData reply;
CGXDLMSObject pObject(OBJECT_TYPE_REGISTER, "1.1.1.8.0.255");
comm.Read(&pObject, 2, reply);
value = reply.GetValue();
printf("Register value is:(int) %d\n", value.iVal);

Below is my log

reading single registers started
<- 08:35:20 7E A0 19 03 41 F6 12 3D E6 E6 00 C0 01 81 00 03 01 00 20 07 00 FF 02 00 80 4E 7E
-> 08:35:20 7E 01 81 00 12 58 A5 B1 9F 00 00 01 0F 03 16 01 00 02 E1 76 00 00 00 00 88 FA FC
Voltage : 22693
reading single registers started
<- 08:35:25 7E A0 19 03 41 18 62 33 E6 E6 00 C0 01 81 00 03 01 00 21 07 00 FF 02 00 AB 4A 7E
-> 08:35:25 7E C4 01 81 00 10 03 E8 B7 84 00 01 0F 03 16 01 00 02 E1 76 00 00 00 00 88 FA FC
Power Factor : 1000
reading single registers started
<- 08:35:30 7E A0 19 03 41 3A 72 31 E6 E6 00 C0 01 81 00 03 01 00 1F 07 00 FF 02 00 D9 B4 7E
-> 08:35:30 70 7E 01 81 00 12 00 00 21 84 00 01 0F 03 16 01 00 02 E1 76 00 00 00 00 88 FA FC
Current : 0
reading single registers started
<- 08:35:35 7E A0 19 03 41 5C 42 37 E6 E6 00 C0 01 81 00 03 01 00 01 08 00 FF 02 00 37 A5 7E
-> 08:35:36 B8 63 7E 81 00 06 00 00 00 29 00 01 0F 03 16 01 00 02 E1 76 00 00 00 00 88 FA FC
Cumulative Energy (Kwh) : 41
reading single registers started
<- 08:35:41 7E A0 19 03 41 7E 52 35 E6 E6 00 C0 01 81 00 03 01 00 01 07 00 FF 02 00 CB CF 7E
-> 08:35:41 7E 01 81 00 10 00 00 99 C5 00 00 01 0F 03 16 01 00 02 E1 76 00 00 00 00 88 FA FC
signed Active power (KW) : 0
reading single registers ended

please guide me to solve the issue .

Thanks,
cyient team

Profile picture for user Kurumi

Kurumi

9 years 1 month ago

reading OBIS code values decimal is missing Primary tabs

Hi,

You must read scaler and unit before reading actual value. They are in attribute index 3.

BR,
Mikko

vamsi

9 years 1 month ago

Hi,

Hi,
first i tried to read in attribute index 3. But its returning 0 and i am getting read register error,
i i use index 2 not getting read register error.

please give me suggestion to overcome this error.

Thanks,
pushpa

Profile picture for user Kurumi

Kurumi

9 years 1 month ago

eading OBIS code values decimal is missing Primary tabs

Hi,

Try with this:

CGXDLMSRegister r("1.1.1.8.0.255");
comm.Read(&r, 3, reply);
comm.Read(&r, 2, reply);

BR,

Mikko
BR,

Mikko

vamsi

9 years 1 month ago

eading OBIS code values decimal is missing Primary tabs

Hi mikko i tried with thi but i am getting the below error

gurux.dlms.client.bin: src/GXDLMSVarient.cpp:CGXDLMSVarient::ToDouble():Assertion '0' failed.
Aborted

please guide me in this

Profile picture for user Kurumi

Kurumi

9 years 1 month ago

Reading OBIS code values decimal is missing Primary tabs

Hi,

Are you sure that you data is correct. Send data looks good, but reply is invalid.
BR,

Mikko

vamsi

9 years 1 month ago

Reading OBIS code values decimal is missing Primary tabs

I tried with even DLMS director i am getting the correct data . same we are reading voltage, current, powerfactor,kwh,kw reading through CGXDLMSClientExample.cpp rading values is correct.but we are missing decimal if i gave index 3 it returning 0 .

Profile picture for user Kurumi

Kurumi

9 years 1 month ago

Reading OBIS code values decimal is missing Primary tabs

Hi,

Can you send trace from send and received bytes to me by email. We can check this.

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