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. Profile Generic Reading Issues

Profile Generic Reading Issues

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 lara.wakim , 12 June, 2020
Forums
General discussion

We based all our tests on the Gurux DLMS library for ANSI C, especially the Gurux DLMS server example 2 playing the role of the meter (server).

We faced some issues concerning the Profile Generic (interface class id = 7), especially in the reading services.

However, the latest release number "20200610.1", we noticed in the file "gxget.c" in the function "cosem_getProfileGeneric" that you replaced this block of code (check the picture):

gxValueEventCollection arr;
vec_attach(&arr, e, 1, 1);
#ifndef DLMS_IGNORE_SERVER
svr_preGet(settings, &arr);
#endif
e->byteArray = 1;

by :
ret = DLMS_ERROR_CODE_NOT_IMPLEMENTED;

After these changes, each time we try to read, the GXDLMSDirector throws an error: "Access Error: Device reports a hardware fault". We are not able to read anymore.

When, i tried to run the old section of code that you replaced, it is running with some issues surely but we can read normally by index and by range.

We want to know why did you do these changes?

Do you intend to implement a new code instead and solve the reading issues?

Image
Profile picture for user Kurumi

Kurumi

5 years 12 months ago

Hi,

Hi,

We have made changes and update the server example today.
BR,

Mikko

lara.wakim

5 years 12 months ago

Hi,

Hi,

You said yesterday that you have made changes and update the server example. But I noticed that there are no new release committed.

Just want to make sure if you have any problem.

Profile picture for user Kurumi

Kurumi

5 years 12 months ago

Hi Lara,

Hi Lara,

Testing was taking a little bit longer and new version is released. Get the latest version.

lara.wakim

5 years 12 months ago

Hi Mikko,

Hi Mikko,

Thank you for your work, much appreciated.

However, I noticed that you merged the "exampleserver.c" and "connection.c" of GuruxDLMSServerExample2 into "main.c".

Can you please explain why you made these changes?

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

The reason for this is that this is usually used in microcontrollers and it's easier to convert to different compilers. We are making one more change and split COSEM object to own file.

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