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. Activating PassiveCalendar

Activating PassiveCalendar

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 ac123 , 5 October, 2020
Forums
Gurux.DLMS

Hello,

I am trying to activate the passive calendar for Landis E650 meter using the GURUX Android library. I managed to write to the passive calendar and now I want to activate it. From another forum post I found out that you suggested using "client.method(calendar, 1, 0, DataType.INT8);" however I get a "ReadWriteDenied" error.

This is the log:
S -> 7ea0140381321ffce6e600050104c788010f00f3427e
R <- 7ea010810352ddebe6e7000c010103dbb37e

I use the following commands to initialize the connection:

The meter is set to Utility Service (set mode)

client = new GXDLMSClient();
client.setUseLogicalNameReferencing(false);
client.setInterfaceType(gurux.dlms.enums.InterfaceType.HDLC);
client.setServerAddress(1);
client.setClientAddress(64);
client.setAuthentication(Authentication.NONE);
client.getProposedConformance().add(Conformance.BLOCK_TRANSFER_WITH_SET_OR_WRITE);
client.setMaxReceivePDUSize(0);

I don't think it's an error with permission considering I was able to write to the calendar.

Any idea what's the problem and how to fix it?

Regards,
Alex

Profile picture for user Kurumi

Kurumi

5 years 8 months ago

Hi Alex,

Hi Alex,

You need to change the authentication level to low. You can't change values without authentication.

client.setAuthentication(Authentication.LOW);
client.setPassword(...);

Change the authentication level and password and try again.

BR,
Mikko

ac123

5 years 8 months ago

In reply to Hi Alex, by Kurumi

Hi Mikko,

Hi Mikko,

I don't believe that that's the problem because for Landis E650 client id 64 is for utility service and I need to enter service menu in the meter before connection. With these settings I was able to read and write most values (ex. clock, calendar ...). But I still tried what you suggested and I got the same error:

client = new GXDLMSClient();
client.setUseLogicalNameReferencing(false);
client.setInterfaceType(gurux.dlms.enums.InterfaceType.HDLC);
client.setServerAddress(1);
client.setClientAddress(32);
client.setAuthentication(Authentication.LOW);
client.setPassword("00000000");
client.getProposedConformance().add(Conformance.BLOCK_TRANSFER_WITH_SET_OR_WRITE);
client.setMaxReceivePDUSize(0);

And when I try to write client.method(calendar, 1, 0, DataType.INT8);

S -> 7ea014034132b536e6e600050104c788010f00f3427e
R <- 7ea01041035247e1e6e7000c010103dbb37e

Any other ideas?

Regards,
Alex

Profile picture for user Kurumi

Kurumi

5 years 8 months ago

Hi,

Hi,

There is an issue in the Android code. It's fixed and tests are in progress. We'll try to release a new version at the end of this week.

BR,
Mikko

Profile picture for user Kurumi

Kurumi

5 years 8 months ago

Hi,

Hi,

It's fixed and a new version is released.

BR,
Mikko

ac123

5 years 8 months ago

In reply to Hi, by Kurumi

Hi Mikko,

Hi Mikko,

Thanks for the help and for the big update however it didn't solve my problem. I tried it with both initializations that I have described above and still got the same error.

S -> 7ea014034132b536e6e600060102c788010f00d9d07e
R <- 7ea01041035247e1e6e7000d01010360af7e

Can you replicate the situation and confirm that the method client.method(calendar, 1, 0, DataType.INT8) works?

I also want to mention that with the new update you didn't update certain objects with the new structures you have created. For example I had issues with GXDLMSActivityCalendar where previously the data for attributes 3,4,5,7,8 and 9 was in format Object[] however with the new update those values are in GXArray or GXStructure but the code in GXDLMSActivityCalendar still expects Object[] which causes an error. Once I replaced it with the correct structure the code worked just fine.

Reguards,
Alex

Profile picture for user Kurumi

Kurumi

5 years 8 months ago

Hi,

Hi,

We don't have any L+G E650s at the office at the moment so we can't test this with your meter, but the data looks correct. Do you know the short name of your activity calendar object?

There was a human error and all the changes were not added to Github. Get the latest version. Thank you for this info.

ac123

5 years 8 months ago

In reply to Hi, by Kurumi

Hi,

Hi,

The SN of the activity calendar is 51000

Profile picture for user Kurumi

Kurumi

5 years 8 months ago

Hi,

Hi,

The address and data are correct. Can you activate this with Map120 and sent trace to me so I can check what is different?

BR,
Mikko

ac123

5 years 8 months ago

In reply to Hi, by Kurumi

Hi Mikko,

Hi Mikko,

I'm not sure if I can, I have Map110 and Map120. In Map110 I don't see any options for the calendar, with Map120 I seem to be having some issues and in the manual for the software I don't see any instruction for the calendar. I will keep working on it and if I manage to get a log I'll write to you. Thanks for the help regardless.

In the meantime can you give me a short info about what client.method(calendar, 1, 0, DataType.INT8) does, because I didn't find any info about activating passive calendar in the blue book?

Regards,
Alex

Profile picture for user Kurumi

Kurumi

5 years 7 months ago

Hi,

Hi,

It activates the passive calendar. You can find more info if you search activate_passive_calendar from the BB.

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