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. How To Prepare Profile General For Writing?

How to prepare Profile General for writing?

By george@n, 31 August, 2025
Forums
Gurux DLMS for ANSI C

Using the API's provided, how to prepare the Profile General to look like in your example below? What need to be done before calling cl_write() to prepare array and structures.

https://www.gurux.fi/sites/default/files/issues/Profile%20Generic%20att…

Profile picture for user Kurumi

Kurumi

7 months 2 weeks ago

Hi, You want to write…

Hi,

You want to write capture objects for the profile generic object.

https://gurux.fi/Gurux.DLMS.Objects.GXDLMSProfileGeneric

set the capture objects like this:

gxTarget* capture;
//Add clock object.
capture = (gxTarget*)malloc(sizeof(gxTarget));
capture->attributeIndex = 2;
capture->dataIndex = 0;
arr_push(&pg.captureObjects, key_init(&clock1, capture))

Then write attribute #3.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 04/14/2026 - 11:47
    gurux.dlms.java 4.0.93
  • Mon, 04/13/2026 - 16:12
    gurux.dlms.java 4.0.92
  • Mon, 04/13/2026 - 11:39
    Gurux.DLMS.Net 9.0.2604.1301
  • Tue, 04/07/2026 - 17:17
    Gurux.DLMS.Python 1.0.197
  • Tue, 04/07/2026 - 15:03
    gurux.dlms.c 9.0.2604.0701

New forum topics

  • Connecting To iskrameco ME382- Single Phase Meter with Optical Probe
  • Create custom AARQ Request for encrypted communication
  • Issue when reading Itron Type620 meter
  • Handling Unexpected Disconnects
  • DLMS Communication Issue – No Response (L&T Meter via USB Probe)
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin