Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
  • Gurux Club
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Error while writing to DayProfile (ActivityCalendar)

Error while writing to DayProfile (ActivityCalendar)

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 wooreeinfo, 28 December, 2022
Forums
Gurux DLMS for Java

Hi Gurux team,
We hope you're doing well.

I make a simple meter server using gurux library for Java, and I tried to write ActivityCalendar object via GXDLMSDirector.

It works well when it has the only one DayId and five DayProfileActions.
But I add more than five items, It returns error below like this:

RX: 7E A8 8A 02 FF 25 72 73 62 E6 E6 00 C1 02 C1 00 14 00 00 0D 00 00 FF 05 00 00 00 00 00 01 6D 01 0A 02 02 11 00 01 0C 02 03 09 04 00 00 00 00 09 06 00 00 0A 00 64 FF 12 00 01 02 03 09 04 04 00 00 00 09 06 00 00 0A 00 64 FF 12 00 01 02 03 09 04 08 00 00 00 09 06 00 00 0A 00 64 FF 12 00 02 02 03 09 04 0C 00 00 00 09 06 00 00 0A 00 64 FF 12 00 03 02 03 09 04 10 00 00 00 09 06 00 00 0A 00 64 FF 12 00 03 02 03 09 20 B5 7E
TX: 7E A0 08 25 02 FF 51 1D C5 7E
RX: 7E A0 0D 02 FF 25 74 94 9C 04 14 00 E7 5E 7E
TX: 7E A0 17 25 02 FF 76 1C 4E E6 E7 00 C5 02 C1 00 00 00 01 00 00 00 63 A6 7E
RX: 7E A8 8A 02 FF 25 96 59 C3 E6 E6 00 C1 03 C1 00 00 00 00 02 77 00 00 09 06 00 00 0A 00 64 FF 12 00 04 02 03 09 04 FF FF FF FF 09 06 00 00 00 00 00 00 12 00 00 02 03 09 04 FF FF FF FF 09 06 00 00 00 00 00 00 12 00 00 02 03 09 04 FF FF FF FF 09 06 00 00 00 00 00 00 12 00 00 02 03 09 04 FF FF FF FF 09 06 00 00 00 00 00 00 12 00 00 02 03 09 04 FF FF FF FF 09 06 00 00 00 00 00 00 12 00 00 02 03 09 04 FF FF FF FF D1 0D 7E
TX: 7E A0 08 25 02 FF 91 11 03 7E
RX: 7E A0 0D 02 FF 25 98 F6 B1 09 06 00 B9 07 7E
12월 28, 2022 1:02:25 오후 gurux.dlms.GXDLMSLNCommandHandler handleSetRequest
SEVERE: null
TX: 7E A0 11 25 02 FF B8 F6 5A E6 E7 00 C5 03 C1 03 73 0E 7E

I don't understand why encounter this error.
Would you please let me know what's the problem?

Thanks,
Hyunse Cho
wooreeinfo

Profile picture for user Kurumi

Kurumi

2 months 3 weeks ago

Hi Hyunse Cho,

Hi Hyunse Cho,

This is now tested and it worked without problems. 20 items were added on the test. What version you are using? What is your max PDU size? You can see it if you select the current association and then select "xDLMS Context info". It's on the Max receive PDU size field.

BR,
Mikko

wooreeinfo

2 months 3 weeks ago

Hi Mikko,

Hi Mikko,

Thank you for taking the trouble to help me.

Does the version you told that mean DLMS version number? It currently set to 6.

I changed the Max PDU size 128 to 512 yesterday, and it works fine up to 2 Day IDs with 12 DayActions. (total : 24 DayActions)

However, starting with Day ID 3, I get the new error encounter like this:

RX: 7E A8 8A 02 FF 25 54 47 26 E6 E6 00 E0 01 00 01 00 00 82 01 F9 C1 01 C1 00 14 00 00 0D 00 00 FF 05 00 01 03 02 02 11 00 01 0C 02 03 09 04 00 00 00 00 09 06 00 00 0A 00 64 FF 12 00 01 02 03 09 04 02 00 00 00 09 06 00 00 0A 00 64 FF 12 00 02 02 03 09 04 04 00 00 00 09 06 00 00 0A 00 64 FF 12 00 03 02 03 09 04 06 00 00 00 09 06 00 00 0A 00 64 FF 12 00 04 02 03 09 04 08 00 00 00 09 06 00 00 0A 00 64 FF 12 00 01 F9 A6 7E
TX: 7E A0 08 25 02 FF 71 1F E4 7E
RX: 7E A8 8A 02 FF 25 56 55 05 02 03 09 04 0A 00 00 00 09 06 00 00 0A 00 64 FF 12 00 02 02 03 09 04 0C 00 00 00 09 06 00 00 0A 00 64 FF 12 00 03 02 03 09 04 0E 00 00 00 09 06 00 00 0A 00 64 FF 12 00 04 02 03 09 04 10 00 00 00 09 06 00 00 0A 00 64 FF 12 00 01 02 03 09 04 12 00 00 00 09 06 00 00 0A 00 64 FF 12 00 02 02 03 09 04 14 00 00 00 09 06 00 00 0A 00 64 FF 12 00 03 02 03 09 04 16 00 00 00 09 06 00 00 0A 00 81 B9 7E
TX: 7E A0 08 25 02 FF 91 11 03 7E
RX: 7E A8 8A 02 FF 25 58 2B EC 64 FF 12 00 04 02 02 11 01 01 0C 02 03 09 04 FF FF FF FF 09 06 00 00 0A 00 64 FF 12 00 00 02 03 09 04 FF FF FF FF 09 06 00 00 0A 00 64 FF 12 00 00 02 03 09 04 FF FF FF FF 09 06 00 00 0A 00 64 FF 12 00 00 02 03 09 04 FF FF FF FF 09 06 00 00 0A 00 64 FF 12 00 00 02 03 09 04 FF FF FF FF 09 06 00 00 0A 00 64 FF 12 00 00 02 03 09 04 FF FF FF FF 09 06 00 00 0A 00 64 FF 12 00 00 02 03 09 11 AB 7E
TX: 7E A0 08 25 02 FF B1 13 22 7E
RX: 7E A8 8A 02 FF 25 5A 39 CF 04 FF FF FF FF 09 06 00 00 0A 00 64 FF 12 00 00 02 03 09 04 FF FF FF FF 09 06 00 00 0A 00 64 FF 12 00 00 02 03 09 04 FF FF FF FF 09 06 00 00 0A 00 64 FF 12 00 00 02 03 09 04 FF FF FF FF 09 06 00 00 0A 00 64 FF 12 00 00 02 03 09 04 FF FF FF FF 09 06 00 00 0A 00 64 FF 12 00 00 02 03 09 04 FF FF FF FF 09 06 00 00 0A 00 64 FF 12 00 00 02 02 11 02 01 02 02 03 09 04 FF FF FF FF 09 06 00 96 AC 7E
TX: 7E A0 08 25 02 FF D1 15 41 7E
RX: 7E A0 0F 02 FF 25 5C 56 27 00 0A 00 64 FF 93 5D 7E
TX: 7E A0 08 25 02 FF F1 17 60 7E
RX: 7E A0 2A 02 FF 25 7E 83 63 E6 E6 00 E0 81 00 02 00 01 16 12 00 00 02 03 09 04 FF FF FF FF 09 06 00 00 0A 00 64 FF 12 00 00 6B 1E 7E
Dec 30, 2022 1:54:51 PM
gurux.dlms.GXDLMSSettings checkFrame
INFO: Invalid HDLC Frame: 7e Expected: 5e

Would you please tell me what is the problem?

BR,
Hyunse Cho
wooreeinfo

Profile picture for user Kurumi

Kurumi

2 months 3 weeks ago

Hi Hyunse Cho,

Hi Hyunse Cho,

I mean gurux.dlms.java version number. I change the max PDU size to 512 and it worked as expected. Can you run what you are doing with Macro Editor and send the macro file to me by email?

https://www.gurux.fi/MacroEditor

BR,
Mikko

wooreeinfo

2 months 3 weeks ago

Hi Mikko,

Hi Mikko,

I appreciate for your kindly.

I'm using gurux.dlms.java version 4.0.33.
I try to record my activities to what I want to do, but It did not seems to record SET command because error, and it has an error with xml structure.
(It recorded until GET command. I read ActivityCalendar's object and modified any DayAction's selector, clicked to write button.)

anyway, I uploaded my gxm file here :
https://mail.wooree42.com/202301020925_GetActivityCalendar.gxm.zip

If you can't access this file, then I'll send mail with attached.

Thanks,
Hyunse Cho
wooreeinfo

Profile picture for user Kurumi

Kurumi

2 months 3 weeks ago

Hi Hyunse Cho,

Hi Hyunse Cho,

I was able to download this. I'll check it and let you know tomorrow.

BR,
Mikko

Profile picture for user Kurumi

Kurumi

2 months 3 weeks ago

Hi,

Hi,

Now I know the reason for this. Your PDU size is so tiny that all the day profiles don't fit into the memory. Increase the PDU size for example 1024 and it starts to work.

BR,
Mikko

wooreeinfo

2 months 3 weeks ago

Hi Mikko,

Hi Mikko,

I extended the pdu size, and it works well.
Thank you for letting me know.

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

Fri, 03/24/2023 - 14:22
gurux.dlms.c 20230324.1
Thu, 03/23/2023 - 11:01
GXDLMSDirector 9.0.2303.2301
Thu, 03/23/2023 - 09:10
Gurux.DLMS.Python 1.0.142
Wed, 03/22/2023 - 13:51
Gurux.DLMS.Net 9.0.2303.2201
Wed, 03/22/2023 - 10:15
gurux.dlms.c 20230322.1

Open bugs

Gurux.DLMS.AMI4
1
Gurux.DLMS.Android
1
gurux.dlms.c
3
gurux.dlms.cpp
3
gurux.dlms.delphi
1
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin