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. Insert Special_day

insert special_day

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By youserj , 18 August, 2020
Forums
Gurux.DLMS

maybe only for Python:
1: 7E A0 29 03 21 54 AD 92 E6 E6 00 C3 01 C1 00 0B 00 00 0B 00 00 FF 01 01 01 01 02 03 12 00 05 09 05 07 E4 09 1C 01 11 05 7F FD 7E
<ActionRequest>
<ActionRequestNormal>
<InvokeIdAndPriority Value="C1" />
<MethodDescriptor>
<!-- SpecialDaysTable -->
<ClassId Value="000B" />
<!-- 0.0.11.0.0.255 -->
<InstanceId Value="00000B0000FF" />
<MethodId Value="01" />
</MethodDescriptor>
<MethodInvocationParameters>
<Array Qty="01" >
<Structure Qty="03" >
<UInt16 Value="0005" />
<!-- 28.09.2020 -->
<OctetString Value="07E4091C01" />
<UInt8 Value="05" />
</Structure>
</Array>
</MethodInvocationParameters>
</ActionRequestNormal>
</ActionRequest>
2: 7E A0 11 21 03 74 85 BC E6 E7 00 C7 01 C1 03 00 94 9E 7E
<ActionResponse>
<ActionResponseNormal>
<InvokeIdAndPriority Value="C1" />
<Result Value="ReadWriteDenied" />
</ActionResponseNormal>
</ActionResponse>

method insert in SpecialDayTable add array type of entry's to PDU, but 62056-62 only one entry may be in method. Or me mistake?

youserj

5 years 11 months ago

#method insert2 is Right

#method insert2 is Right
#method insert is wrong
def insert(self, client, entries):
bb = GXByteBuffer()
bb.setUInt8(DataType.ARRAY)
_GXCommon.setObjectCount(len(entries), bb)
for entry in entries:
bb.setUInt8(DataType.STRUCTURE)
bb.setUInt8(3)
_GXCommon.setData(None, bb, DataType.UINT16, entry.index)
_GXCommon.setData(None, bb, DataType.OCTET_STRING, entry.date)
_GXCommon.setData(None, bb, DataType.UINT8, entry.dayId)
return client.method(self, 1, bb.array(), DataType.ARRAY)

def insert2(self, client, entry):
bb = GXByteBuffer()
bb.setUInt8(DataType.STRUCTURE)
bb.setUInt8(3)
_GXCommon.setData(None, bb, DataType.UINT16, entry.index)
_GXCommon.setData(None, bb, DataType.OCTET_STRING, entry.date)
_GXCommon.setData(None, bb, DataType.UINT8, entry.dayId)
return client.method(self, 1, bb.array(), DataType.ARRAY)

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

The current implementation is correct. You can add an array of entries.

From BB:
array spec_day_entry

BR,
Mikko

youserj

5 years 11 months ago

in my BB ver 7.0: array spec

in my BB ver 7.0: array spec_day_entry is the Attribute description to write all;
Method description: Inserts a new entry in the table -> entry spec_day_entry

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

I'm sorry. My mistake. This is fixed tomorrow.

BR,

Mikko

youserj

5 years 11 months ago

glad was to seen you Mikko

glad was to seen you Mikko

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

This is fixed. Get the latest version.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
More

Who's new

  • Dawley07
  • nostra
  • cuiVEAwINCoyynjjn
  • qlMlMNfbqjNumKgGFIo
  • randx-super.ru
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin