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

2 years 11 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

2 years 11 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

  • Sun, 02/01/2026 - 19:47
    gurux.dlms.cpp 9.0.2602.0101
  • Tue, 01/20/2026 - 10:38
    gurux.dlms.java 4.0.89
  • Wed, 01/14/2026 - 14:29
    Gurux.DLMS.Python 1.0.196
  • Mon, 12/29/2025 - 10:38
    Gurux.Serial.Android 3.0.5
  • Mon, 12/15/2025 - 08:11
    Gurux.DLMS.Net 4.0.87

New forum topics

  • Asynchronous support in Gurux DLMS stack (.NET)?
  • Multiple meter loop On OFF Problem
  • Python GXDLMSTranslator
  • Issue with KWH Value Reading Using Gurux DLMS Library.
  • CEWE Prometer 100
More

Who's new

  • mokujiny
  • Nazar
  • niels_joulz
  • Nitish_kumar
  • wilsont
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin