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. Data Unmatched While Writing Bill Date From Java Library

Data Unmatched while writing bill date from Java library

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 Remith , 28 July, 2021
Forums
Gurux DLMS for Java

Hi Mikko,
I am facing issue while writing end bill date using Gurux Java library. Getting as unmatched type from meter. But its working with GXDLMSDirectory. Can you refer the logs tell me what is the issue.

Code
---------
GXDLMSActionSchedule ac = new GXDLMSActionSchedule("0.0.15.0.0.255");
com.readObject(ac, 4);
GXDateTime gxTime = new GXDateTime("*/1/* 12:00:00 AM"); //M/d/yy h:mm:ss a
ac.setExecutionTime(new GXDateTime[]{ gxTime });
com.writeObject(ac, 4);

Given both java and DLMSDirectory logs.

GXDLMSDirector
------------------
00 01 00 30 00 01 00 31 D1 2F 30 00 00 00 07 EC DE 94 0E 32 91 4A 36 EE 1F 33 E7 86 09 7D 5A 64 A1 0F 3F CE 1F 16 5D 35 6E 87 19 9F D3 A4 6D 92 A6 E4 FE 73 7B 66 49 3F B8
<WRAPPER len="39" >
<TargetAddress Value="30" />
<SourceAddress Value="1" />
<PDU>
<!-- Invocation Counter: 7 -->
<!-- Decrypt data: C1 01 C1 00 16 00 00 0F 00 00 FF 04 00 01 01 02 02 09 04 00 00 00 FF 09 05 FF FF FF 01 FF
<SetRequest>
<SetRequestNormal>
# Priority: High, ServiceClass: Confirmed, ID: 1
<InvokeIdAndPriority Value="C1" />
<AttributeDescriptor>
# ActionSchedule
<ClassId Value="0016" />
# 0.0.15.0.0.255
<InstanceId Value="00000F0000FF" />
<AttributeId Value="04" />
</AttributeDescriptor>
<Value>
<Array Qty="01" >
<Structure Qty="02" >
# 0:00:00
<OctetString Value="000000FF" />
# 01-*-*
<OctetString Value="FFFFFF01FF" />
</Structure>
</Array>
</Value>
</SetRequestNormal>
</SetRequest>
-->
<ded_SetRequest Value="3000000007ECDE940E32914A36EE1F33E786097D5A64A10F3FCE1F165D356E87199FD3A46D92A6E4FE737B66493FB8" />
</PDU>
</WRAPPER>

Java Library
------------------
00 01 00 30 00 01 00 31 D1 2F 30 00 00 00 03 1C 0A 50 E1 3C D3 CF A7 76 BF 6F 55 7E B7 0C 66 6B 5E D6 F3 CB 74 AA 4F 24 E6 F6 5F 81 50 1A 1C A6 65 AA 22 FC 0E BA 56 6C 3E
<WRAPPER len="39" >
<TargetAddress Value="30" />
<SourceAddress Value="1" />
<PDU>
<!-- Invocation Counter: 3 -->
<!-- Decrypt data: C1 01 C1 00 16 00 00 0F 00 00 FF 04 00 01 01 02 02 09 04 00 00 00 FF 09 05 FF FF FF 01 06
<SetRequest>
<SetRequestNormal>
# Priority: High, ServiceClass: Confirmed, ID: 1
<InvokeIdAndPriority Value="C1" />
<AttributeDescriptor>
# ActionSchedule
<ClassId Value="0016" />
# 0.0.15.0.0.255
<InstanceId Value="00000F0000FF" />
<AttributeId Value="04" />
</AttributeDescriptor>
<Value>
<Array Qty="01" >
<Structure Qty="02" >
# 0:00:00
<OctetString Value="000000FF" />
# 01-*-*
<OctetString Value="FFFFFF0106" />
</Structure>
</Array>
</Value>
</SetRequestNormal>
</SetRequest>
-->
<ded_SetRequest Value="30000000031C0A50E13CD3CFA776BF6F557EB70C666B5ED6F3CB74AA4F24E6F65F81501A1CA665AA22FC0EBA566C3E" />
</PDU>
</WRAPPER>

Kindly help me to find out a solution for this

Profile picture for user Kurumi

Kurumi

4 years 12 months ago

Hi,

Hi,

You need to skip the day of the week. Java is not skip it when you give date time as a hex string. It's changed for the next version. You can do it like this in the mean time.

GXDateTime gxTime = new GXDateTime("*/1/* 12:00:00 AM");
gxTime.getSkip().add(DateTimeSkips.DAY_OF_WEEK);

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • 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
  • Mon, 06/15/2026 - 08:52
    gurux.dlms.c 9.0.2606.1501

New forum topics

  • Service not known error on gprs communication
  • 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

  • Dawsontot
  • Jerrylam
  • qvlLdJweKzGUYaSOVS
  • LindanEt
  • annoyingconsultants
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin