Is there any way to specify access rigths to Attributes in an GXDLMSObject, depending on the client connection (public, management,..) used from the client side?
We are analyzing Gurux.DLMS.Server.Example in C# and we don´t see an inmediate way to get that goal.
After download last version of server code, we have checked that method Connected() in class GXDLMSBase() can help us to get the goal, but we are not able to get it yet.
An example:
- We are trying to set 'NoAccess' mode for attribute "ClockBase" in object "GXDLMSClock" when public client (16) is connected to the server.
- According with Blue_Book, attribute 'clock_base' for the object 'clock' corresponds to attribute 9.
So, in method Connected(), when we detect that client connected corresponds to public client (16), we try to set 'NoAccess' for that attribute like this :
SetAccess(9,AccessMode.NoAccess)
- After that, if we ask from public client for attribute 'clock_base' to server (Obis: 0.0.1.0.0.255, class: 8, attribute:9), the server is still offering the value of the attribute to the client, despite we set its right as NoAccess mode.
Is there another way to set access rigths in server, or any step left in server side?
This is an issue. We are checking Access level on Write and Set, but not on Read or Get messages.
I added issue from this: http://www.gurux.fi/node/5372
Access Rights depending on client connection
Hi,
We have updated new version. We have added two methods.
Connected and Disconnected. You can update access rights on Connected.
We have also improved server side functionality for large data amounts.
BR,
Mikko
* Access Rights depending on client connection *
Thanks so much Mikko!
You answer helped us a lot.
After download last version of server code, we have checked that method Connected() in class GXDLMSBase() can help us to get the goal, but we are not able to get it yet.
An example:
- We are trying to set 'NoAccess' mode for attribute "ClockBase" in object "GXDLMSClock" when public client (16) is connected to the server.
- According with Blue_Book, attribute 'clock_base' for the object 'clock' corresponds to attribute 9.
So, in method Connected(), when we detect that client connected corresponds to public client (16), we try to set 'NoAccess' for that attribute like this :
SetAccess(9,AccessMode.NoAccess)
- After that, if we ask from public client for attribute 'clock_base' to server (Obis: 0.0.1.0.0.255, class: 8, attribute:9), the server is still offering the value of the attribute to the client, despite we set its right as NoAccess mode.
Is there another way to set access rigths in server, or any step left in server side?
Thanks in advance!
Access Rights depending on client connection
Hi,
This is an issue. We are checking Access level on Write and Set, but not on Read or Get messages.
I added issue from this:
http://www.gurux.fi/node/5372
We will fix this ASAP.
BR,
Mikko
Access Rights depending on client connection
Hi,
New versions from GXDLMSDirector and DLMS component are available where this is fixed.