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 10 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

  • 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