Setting up communication between GridLab-D and WSO2 CEP

This article guides you on setting up both GridLab-D and WSO2 CEP in order to communicate between them.

Step 01 : Download the required.

Download customized versions of Gridlab-D, WSO2 CEP and .GLM files used for testing purposes.

GridLab-D : https://github.com/nihlaakram/gld-modified

WSO2 CEP : https://github.com/nihlaakram/cep-nash

.GLM : https://github.com/nihlaakram/game-glm

Step 02 : Change directory path in grid.glm file.

You will have to change the path of the light_schedule.glm and water_and_setpoint_schedule.glm in the two include statements.

Step 03 : Set up Gridlab-D

After downloading the trunk, you will have to run the following 3 commands.

1.$ autoreconf -isf

2.$ ./configure

3.$ sudo make install

Once all make is successful you will see the gridlabd.bin file.

Note: Please make sure you have all the required dependencies of Gridlab-D installed before you start Step 03(List of dependencies can be found in the README file of the trunk).

Step 04 : Set up WSO2 CEP.

Start the CEP server as follows.

1.$ cd <CEP_HOME>/bin/

2.$ sh wso2server.sh

Once the sever starts, login with credentials, both user-name and password “admin”.

Go to Tools → Event Stimulator and play the given .csv file.

Note: Please make sure that you have $JAVA_HOME set up before you start Step 04. Also you will have to change the path to the prediction model in siddhi query and all file type publishers.

Step 05 : Start up GridLab-D.

Start up GridLab-D in server mode using the following command.

$ pathToBin/gridlabd.bin pathToGLM/grid.glm — server

You will observe the communication between the two servers as values from the either end will be printed in their respective terminals.