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

8 months 2 weeks 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

8 months 2 weeks ago

Thanks a lot. It seems it…

Thanks a lot.

It seems it works well now.

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

Tue, 11/21/2023 - 09:55
Gurux.DLMS.AMI4 4.0.2311.2101
Tue, 11/21/2023 - 09:41
Gurux.DLMS.Net 9.0.2311.2101
Thu, 11/16/2023 - 08:52
gurux.dlms.c 20231116.1
Mon, 11/13/2023 - 15:41
Gurux.DLMS.AMI4 4.0.2311.1301
Mon, 11/13/2023 - 13:26
gurux.dlms.c 20231113.1

Open bugs

gurux.dlms.c
4
gurux.dlms.cpp
3
gurux.dlms.delphi
1

New forum topics

  • [Gurux DLMS for C] Error in "loadSettings" function located in "svr_InitObjects" function
  • Power Meter Integration Using DLMS Protocol
  • [Gurux DLMS for C] Problem writing to an attribute of type 'array'
  • Image transfer failing in cosem_checstructure function
  • Index was out of range. Must be non-negative and less than the size of the collection parameter name:index
More

Who's new

  • Ajith
  • Belete
  • Berkay
  • MohamedYassineGarali
  • Chetna
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin