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?
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 :
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
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
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
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,
Hi, Thank you for pointing…
Hi,
Thank you for pointing this out. This is now fixed. Get the latest version.
BR,
Mikko
Hello, Thanks for kind…
Hello,
Thanks for kind support! Push is fine now
BR,