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. 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 6 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 6 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

  • 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