I need to read these parameters Set RTC, Load Limit Reset,MDI Reset,Set Interval for the Load Profile,Set Interval for the Billing Profile,DIP Request,Load Limit Enable,Load Limit Disable using dlms python library.
Passing Obis code through the example.py file or create a new code like disconnection control?
Hi,
Hi,
I believe that it's best if you create a new code. You can modify it for your needs,
BR,
Mikko
Can you please show me one
Can you please show me one example code for this?
Hi,
Hi,
Use this as a base.
https://github.com/Gurux/Gurux.DLMS.Python/tree/master/Gurux.DLMS.Clien…
BR,
Mikko
Here in readAll() function I
Here in readAll() function I add the code is it right?show me one example like disconnectionControl
Hi,
Hi,
You can invoke the disconnect control like this:
/**
* Calls disconnect method.
*/
int disconnect(connection* connection)
{
int ret;
gxDisconnectControl dc;
unsigned char ln[] = { 0,0,96,3,10,255 };
INIT_OBJECT(dc, DLMS_OBJECT_TYPE_DISCONNECT_CONTROL, ln);
//Call Disconnect action.
dlmsVARIANT param;
GX_INT8(param) = 0;
ret = com_method(connection, &dc.base, 1, ¶m);
return ret;
}
You must use High-level authentication to be able to use disconnect.
BR,
Mikko
I am asking example of other
I am asking example of other parameters in python
Hi,
Hi,
WIth Python you can do it like this:
reply = GXReplyData()
dc = GXDLMSDisconnectControl("YOUR_LOGICAL_NAME")
data = dc.remoteDisconnect(self.client)
self.readDataBlock(data, reply)
BR,
Mikko