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. Push Action Scheduler With 'Every X Min' (python)

Push Action Scheduler with 'Every X min' (python)

By mick93, 1 July, 2025
Forums
Gurux.DLMS

I have obis "0.3.15.0.4.255" - Class: 22 (Single Action Schedule), Push Action Scheduler and in attribute 4 there's execution time. So far, to change push interval to 'Every X min' I was using gurux.xml and I executed ready xml files, below is one of examples:

<?xml version="1.0" encoding="utf-8"?>
<Messages>
<SetRequest>
<SetRequestNormal>
<!-- Priority: Normal, ServiceClass: Confirmed, Invoke ID: 1 -->
<InvokeIdAndPriority Value="41" />
<AttributeDescriptor>
<!-- ActionSchedule -->
<ClassId Value="0022" />
<!-- 0.3.15.0.4.255 -->
<InstanceId Value="00030F0004FF" />
<!-- Execution time -->
<AttributeId Value="04" />
</AttributeDescriptor>
<Value>
<Array Qty="01" >
<Structure Qty="02" >
<!-- *:*:00 -->
<OctetString Value="FF8F0000" />
<!-- */*/* -->
<OctetString Value="FFFFFFFFFF" />
</Structure>
</Array>
</Value>
</SetRequestNormal>
</SetRequest>
</Messages>

The example above uses 'FF8F0000' which means 'Every 15min' (second OctetString will be always empty [FFFFFFFFFF] for my cases).
But as xml executing takes some time, and I want to make it quicker, I tried to use reader.write() instead - and failed. I only managed to set exact date/time (like 07.07.2025 15:00), but I dont know how to change it to 'Every X min'?

Furthermore, 2nd question: I have this object: obis 0.3.25.9.0.255, Method:1, Push_Setup (class ID:40). Like with previous example, I was executing 'method 1' using gurux.xml for Python, see below:

<?xml version="1.0" encoding="utf-8"?>
<Messages>
<ActionRequest>
<ActionRequestNormal>
<!-- Priority: Normal, ServiceClass: Confirmed, Invoke ID: 1 -->
<InvokeIdAndPriority Value="41" />
<MethodDescriptor>
<!-- PushSetup -->
<ClassId Value="0040" />
<!-- 0.3.25.9.0.255 -->
<InstanceId Value="0003190900FF" />
<!-- Push -->
<MethodId Value="01" />
</MethodDescriptor>
<MethodInvocationParameters>
<Int8 Value="00" />
</MethodInvocationParameters>
</ActionRequestNormal>
</ActionRequest>
</Messages>

and it actually worked, but it's slow. Is it possible to execute this method using another way?

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

Hire Us!

Latest Releases

  • Wed, 07/09/2025 - 16:41
    Gurux.Serial.Android 2.0.13
  • Wed, 07/09/2025 - 12:07
    gurux.dlms.c 9.0.2507.0901
  • Sat, 07/05/2025 - 15:04
    Gurux.DLMS.Python 1.0.188
  • Tue, 07/01/2025 - 10:09
    Gurux.DLMS.Python 1.0.187
  • Tue, 07/01/2025 - 09:54
    gurux.dlms.c 9.0.2507.0101

New forum topics

  • Authentication issues (AARQ) with WASION IM300
  • Regarding the dlms android project
  • Unable to read attribute =3 (1.0.94.91.0.255) IC=7 for Indian Metering, while I'm able to read attribute 3 for other Profile generic class
  • Register Activation class (class_id = 9) attribute index 3 data is not visible
  • Load profile
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin