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

6 years 3 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

6 years 3 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

6 years 3 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

6 years 3 months ago

Hi,

Hi,

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

BR,

Mikko

youserj

6 years 3 months ago

glad was to seen you Mikko

glad was to seen you Mikko

Profile picture for user Kurumi

Kurumi

6 years 3 months ago

Hi,

Hi,

This is fixed. Get the latest version.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Thu, 11/19/2026 - 10:57
    Gurux.DLMS.Python 1.0.204
  • Thu, 11/19/2026 - 10:12
    gurux.dlms.c 9.0.2611.1901
  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101

New forum topics

  • Landis E650 meter reading over DLMS
  • class_id = 40, version = 2, pushsetup Unparsed data frame
  • GXObisValueItem entries without MaskSize appear to be interpreted as bit flags
  • CheckedListBox incorrectly selects GXObisValueItem Value=0 for non-zero values
  • UIValueType=TextBox is rendered as CheckedListBox when Values are defined
More

Who's new

  • Sayang
  • q80435762@gmail.com
  • ONCAK
  • Berhasil
  • ratirvivege1979
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin