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:
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:
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.
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.
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?
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
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
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
Hi,
Hi,
It's fixed and a new version is released.
BR,
Mikko
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
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.
Hi,
Hi,
The SN of the activity calendar is 51000
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
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
Hi,
Hi,
It activates the passive calendar. You can find more info if you search activate_passive_calendar from the BB.
BR,
Mikko