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. Capture Objects In Ansi C

Capture objects in ansi c

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 KostaG , 15 March, 2023
Forums
General discussion

Hi,

How can I implement and replicate in ANSI C, in the client side of the program, the action of Capture Objects of profile generics.

This is the dialog GXDLMSDirector shows when I press the Capture action:

12:50:08 Method object 1.0.99.1.0.255, interface ProfileGeneric
TX: 7E A0 1B 03 23 76 89 D6 E6 E6 00 C3 01 C1 00 07 01 00 63 01 00 FF 02 01 0F 00 73 A3 7E
12:50:08
RX: 7E A0 11 23 03 96 21 CD E6 E7 00 C7 01 C1 00 00 FC B4 7E

I want to implement in C this action, in the client side, but I don´t know how to do it.

Thanks.

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

Hi, This will do what you…

Hi,

This will do what you want to do:

BR,
Mikko

/**
* Calls capture of the profile generic object..
*/
int CaptureProfileGeneric(connection* connection)
{
int ret;
gxProfileGeneric pg;
unsigned char ln[] = { 1,0,99,1,0,255 };
INIT_OBJECT(pg, DLMS_OBJECT_TYPE_PROFILE_GENERIC, ln);
//Invokes capture action.
dlmsVARIANT param;
GX_INT8(param) = 0;
ret = com_method(connection, BASE(pg), 2, &param);
return ret;
}

KostaG

3 years 2 months ago

Thanks a lot. It seems it…

Thanks a lot.

It seems it works well now.

  • 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