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. Push Message Sends Only LN

push message sends only LN

Profile picture for user batulzii
By batulzii , 23 January, 2024
Forums
Gurux.DLMS

notify_generatePushSetupMessages function returns error for other objects and send only single object even added a few.

Profile picture for user batulzii

batulzii

2 years 4 months ago

Hello, I've check what i did…

Hello,
I've check what i did changed is bellow in the preread function for clock, because i using rtc chip. Changes is behind of time_now(). no other changes. may be clock1 object has problem with push?

if (e->target == BASE(clock1) && e->index == 2)
{
gxtime dt;
time_now(&dt, 1);
e->error = (DLMS_ERROR_CODE)cosem_setDateTimeAsOctetString(e->value.byteArr, &dt);
e->value.vt = DLMS_DATA_TYPE_DATETIME;
e->handled = 1;
}

so e->error returns error with parameters.
Please, advice

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi, Date-time is usually…

Hi,

Date-time is usually part of every push message and I haven't heard any problems with push.

Are you using malloc on your server-side implementation? How many objects there are in your push messages? What is the maximum PDU side?

BR,
Mikko

Profile picture for user batulzii

batulzii

2 years 4 months ago

Push sending okay, if i…

Hello,
I do with DLMS_IGNORE_MALLOC.

Push sending okay, if i exclude clock1. i had energy register index 2&3. svr_preRead calls cosem_setDateTimeAsOctetString and cosem_setDateTimeAsOctetString returns error. because bb_setUInt8(bb, DLMS_DATA_TYPE_OCTET_STRING) returns error :

#ifdef DLMS_IGNORE_MALLOC
p[0].target = it->target;
p[0].index = it->attributeIndex;
svr_preRead(settings, &args);
if (p[0].error != 0)
{
break;
}
if ((ret = notify_addData(settings, it->target, it->attributeIndex, &pdu)) != 0)
{
break;
}
#else

sorry for my bad english

Profile picture for user batulzii

batulzii

2 years 4 months ago

Hello, Here are payload…

Hello,
Here are payload without clock1:

1: 7E A0 38 01 01 13 87 ED E6 E7 00 0F C0 00 00 09 00 02 04 09 11 47 52 58 30 30 30 30 30 30 30 30 30 30 33 30 33 00 12 00 00 02 02 0F 03 16 1E 09 06 00 00 19 09 00 FF A7 6A 7E
<HDLC len="37" >
<TargetAddress Value="0" />
<SourceAddress Value="0" />
<!-- Notification frame. -->
<FrameType Value="13" />
<PDU>
<DataNotification>
<!-- High priority. -->
<!-- Confirmed service. -->
<!-- Invoke ID: 9 -->
<LongInvokeIdAndPriority Value="C0000009" />
<!-- 1/1/0001 12:00:00 AM -->
<DateTime Value="" />
<NotificationBody>
<DataValue>
<Structure Qty="04" >
<OctetString Value="4752583030303030303030303033303300" />
<UInt16 Value="0000" />
<Structure Qty="02" >
<Int8 Value="03" />
<Enum Value="1E" />
</Structure>
<!-- 0.0.25.9.0.255 -->
<OctetString Value="0000190900FF" />
</Structure>
</DataValue>
</NotificationBody>
</DataNotification>
</PDU>
</HDLC>

BR,

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi, Thank you for pointing…

Hi,

Thank you for pointing this out. This is now fixed. Get the latest version.

BR,
Mikko

Profile picture for user batulzii

batulzii

2 years 4 months ago

Hello, Thanks for kind…

Hello,
Thanks for kind support! Push is fine now
BR,

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin