Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
  • Gurux Club
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Utility settings

Utility settings

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

Profile picture for user kevin jose minj
By kevin jose minj, 1 December, 2022
Forums
General discussion

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?

Profile picture for user Kurumi

Kurumi

9 months 3 weeks ago

Hi,

Hi,

I believe that it's best if you create a new code. You can modify it for your needs,

BR,
Mikko

Profile picture for user kevin jose minj

kevin jose minj

9 months 2 weeks ago

In reply to Hi, by Kurumi

Can you please show me one

Can you please show me one example code for this?

Profile picture for user Kurumi

Kurumi

9 months 2 weeks ago

Hi,

Hi,

Use this as a base.

https://github.com/Gurux/Gurux.DLMS.Python/tree/master/Gurux.DLMS.Clien…

BR,
Mikko

Profile picture for user kevin jose minj

kevin jose minj

9 months 2 weeks ago

In reply to Hi, by Kurumi

Here in readAll() function I

Here in readAll() function I add the code is it right?show me one example like disconnectionControl

Profile picture for user Kurumi

Kurumi

9 months 2 weeks ago

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, &param);
return ret;
}

You must use High-level authentication to be able to use disconnect.

BR,
Mikko

Profile picture for user kevin jose minj

kevin jose minj

9 months 2 weeks ago

I am asking example of other

I am asking example of other parameters in python

Profile picture for user Kurumi

Kurumi

9 months 2 weeks ago

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

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

Fri, 09/22/2023 - 19:50
gurux.dlms.c 20230922.1
Mon, 09/18/2023 - 13:51
Gurux.DLMS.AMI4 4.0.2309.1801
Fri, 09/15/2023 - 12:00
gurux.dlms.c 20230915.1
Tue, 09/12/2023 - 11:10
Gurux.DLMS.AMI4 4.0.2309.1201
Fri, 09/08/2023 - 10:59
gurux.dlms.c 20230908.1

Open bugs

gurux.dlms.c
3
gurux.dlms.cpp
3
gurux.dlms.delphi
1

New forum topics

  • problem with date and time in ION
  • Permament rejected
  • DLMS- GMAC: SNRM, AARQ, AARE is responding but not able to decrypt the Authentication key received from the meter
  • List complete policy security configuration basic (configuration security))
  • Save Association view in database
More

Who's new

  • azcah
  • Robertciz
  • Ilushikqtg
  • Margaretyhs
  • Mariohag
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin