Update Low password

10 posts / 0 new
Last post
Ashok_Chowdary
Update Low password

Hi Mikko,
In new version of the Gurux client under the association object update low association action available.
It means to change low association password change(MR-association)thorough US association? or else what is the functionality of this feature?
if yes, How we can change/update low_password?
please help me what is the purpose of this feature?

Kurumi
Kurumi's picture

Hi,

You usually update the password for the connected association.
But yes, Indian meters allow updating low-level (MR) password when connected with High authentication (US). This is added for the Indian meters.

If you want to use this return ReadWrite access for the secret (attribute #7) in getAssociationAttributeAccess-method.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Kurumi
Kurumi's picture

Hi,

You must also update the low-level password on the server-side in post_write.
It's updated for the US association.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Ashok_Chowdary

Hi Mikko,
As you said that, I updated low -level password in Post_write function in the exampleserver.c file but when I am changing the low association password it is effecting high association instead of low association.
if meter switched off it working fine. but in real-time scenario meter switch off is not required na?
please help me where is the problem?

BR,
Ashok K

Ashok_Chowdary

Hi Mikko,
Any update on this issue?

BR,
Ashok K

Kurumi
Kurumi's picture

Hi Ashok,

We are releasing the new version from the server example at the end of next week where this example is added.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Ashok_Chowdary

Hi Mikko,
When ever I try to update/change the MR Association password it is effecting US Association password instead of MR Association password.
please help me where i did mistake? how to resolve this issue?

BR,
Ashok K

Kurumi
Kurumi's picture

Hi,

Add this to preWrite. It will handle it.

//If client try to update low level password when high level authentication is established.
//This is possible in Indian standard.
if (e->target == BASE(associationHigh) && e->index == 7)
{
ret = cosem_getOctetString(e->value.byteArr, &associationLow.secret);
saveSettings();
e->handled = 1;
}

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Ashok_Chowdary

Hi Mikko,
Thank you for reply ,
It is Working fine.

BR,
Ashok K

Kurumi
Kurumi's picture

Hi,

Thanks for the information. This is added to the future example server.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi