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. Forums
  3. 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 9 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 9 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 9 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 9 months ago

Hi,

Hi,

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

BR,

Mikko

youserj

5 years 9 months ago

glad was to seen you Mikko

glad was to seen you Mikko

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

This is fixed. Get the latest version.

BR,
Mikko

  • 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

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin