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. Node
  3. Question In Function ReadRowsByEntry In GXDLMSClient.cpp

Question in function ReadRowsByEntry in GXDLMSClient.cpp

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 gunmox , 25 March, 2018
Forums
Gurux.DLMS

Hello everyone

According to the DLMS/COSEM Blue Book Ed 12th, section 4.3.6 Profile generic, for the selective access parameters the numbering of entries and selected values starts from 1. But in the ReadRowsByEntry function, of the GXDLMSClient.cpp file, it is shown that the column starts at 0 and not at 1 for the SN context:

if (GetUseLogicalNameReferencing())
{
tmp = 1;
GXHelpers::SetData(buff, DLMS_DATA_TYPE_UINT16, tmp);
}
else
{
tmp = 0;
GXHelpers::SetData(buff, DLMS_DATA_TYPE_UINT16, tmp);
}

For both the SN and the LN context, the value of the variable tmp should not always be 1?

Regards Cristian

Profile picture for user Kurumi

Kurumi

8 years 5 months ago

Question in function ReadRowsByEntry in GXDLMSClient.cpp

Hi Cristian,

Standard says that value should be 1. We are reading one meter that was expecting that value was 0. I check this yesterday and that is now fixed for the firmware of the meter.

We'll change this to 1 also when short name referencing is used.

BR,

Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More

Who's new

  • cyby
  • Metin Onan
  • ssv007
  • 3nzol3dur
  • dw772
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin