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. 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, ¶m); return ret; } Thanks a lot. It seems it… Thanks a lot. It seems it works well now. Log in or register to post comments
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, ¶m); return ret; }
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, ¶m);
return ret;
}
Thanks a lot. It seems it…
Thanks a lot.
It seems it works well now.