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. Handling DLMS_ACTION_REQUEST_TYPE_NORMAL For Multiple Blocks

Handling DLMS_ACTION_REQUEST_TYPE_NORMAL for multiple blocks

By bushidik, 13 June, 2024
Forums
Gurux.DLMS

Hello!

I'm using CPP lib for server implementation.
Recently i've found out that if method action request from client contains response, which doesn't fit to the PDU buffer size (~1024) the "MethodRequestNormal" function doesn't create server->m_Transaction = new CGXDLMSLongTransaction object, which will contain remaining data buffer. So I do it myself in the code for MethodRequestNormal:

CGXDLMSLNParameters p(&settings, invokeId, DLMS_COMMAND_METHOD_RESPONSE, 1, NULL, &bb, error, cipheredCommand);
ret = CGXDLMS::GetLNPdu(p, *replyData);

// MY PART
CGXDLMSValueEventCollection arr;
if (bb.GetSize() != bb.GetPosition())
{
if (server->m_Transaction != NULL)
{
delete server->m_Transaction;
server->m_Transaction = NULL;
}
server->m_Transaction = new CGXDLMSLongTransaction(arr, DLMS_COMMAND_METHOD_REQUEST, bb);
}

But I'm not sure, that everything will be working correctly

Please help me with this

Best regards!

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

Hire Us!

Latest Releases

  • Tue, 06/17/2025 - 13:03
    Gurux.DLMS.Python 1.0.182
  • Wed, 06/04/2025 - 13:35
    gurux.dlms.c 9.0.2506.0401
  • Fri, 05/30/2025 - 08:30
    gurux.dlms.c 9.0.2505.3001
  • Tue, 05/27/2025 - 08:10
    Gurux.Serial.Android 2.0.12
  • Mon, 05/26/2025 - 08:39
    gurux.dlms.c 9.0.2505.2601

New forum topics

  • Day profile action item add error (String is not recognized as valid DateTime value)
  • Create gateway protocol in c
  • Error while reading event log object
  • GXDLMS Simulator – AssociationLogicalName Not Listed
  • Failed to read meter through raspberry pi 5 and probe
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin