Skip to content
Milan Jain edited this page Jun 17, 2013 · 1 revision

To Recompile the program:

sudo make clean

sudo make

To run program:

sudo python run.py

To Increase/Decrease program execution duration:

In main() function, edit the value in i < [Time in Seconds].

for( int i = 0; i < 60*60; i++ )

{

`sleep(1);`

}

To Increase or Decrease the Sensitivity:

In function configureSensorParameters()

/* Request Sensitivity */

Manager::Get()->SetConfigParam(g_homeId, nodeId, 1, 235);

Manager::Get()->RequestConfigParam(g_homeId, nodeId, 1);

Current sensitivity is 235. It could vary from 1-255. 1 Means the least and 255 is the maximum.

Things to be taken care of:

  1. Controller should be powered up first. Otherwise nodes may go in unstable state. In case Node is connected to Inverter and Controller direct to electricity.

  2. In case Node is not providing you the values, possible reason could be XML file zwcfg_0x0161d5e9.xml is not having complete information about the Node and that has to be updated. Possible ways are:

    a. Restart the whole system.

    b. Manually update the XML file.

    c. Keep Node close to the controller, whenever program would get restarted the XML file would automatically be updated. Node is kept close so as to ensure that controller configured the Node. Because drop of configuration packet would assume Node to be Dead.

Clone this wiki locally