How to write register object of "GuruxDLMSServerExample" using "GuruxDLMSClientExample".

2 posts / 0 new
Last post
pradson
How to write register object of "GuruxDLMSServerExample" using "GuruxDLMSClientExample".

Hi,

I am using C++ sample application of "GuruxDLMSServerExample" and "GuruxDLMSClientExample" and trying to write a register object of "GuruxDLMSServerExample" using "GuruxDLMSClientExample" but its showing below mentioned error-

"Access error: Device reports Read-Write denied."

But I am able to reading values properly but facing problem in writing values to the register object.

I have tried connection paramerter as mentiopned below-
(1) CGXDLMSClient cl(true);

(2) CGXDLMSClient cl(true, 16, 1, DLMS_AUTHENTICATION_LOW, "Gurux",DLMS_INTERFACE_TYPE_HDLC);

(3) CGXDLMSClient cl(true, 17, 1, DLMS_AUTHENTICATION_LOW, "Gurux",DLMS_INTERFACE_TYPE_HDLC);

Kindly suggest me. What should I do?

Thanks,
Pradson

Kurumi
Kurumi's picture

Hi,

You did not tell what attribute index you try to write.

You can't write anything if the authentication level is None. You can change this for the client or the server.
In GuruxDLMSServerExample find CGXDLMSBase::GetAttributeAccess.
// All writes are allowed.
return DLMS_ACCESS_MODE_READ_WRITE;

BR,

Mikko

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