Starting the System

Ensure that you have completed the steps in the Device Setup section before following these instructions.

If you have not already done so, create your free FlowCloud Developer account here. Your account is used to register the devices you are using, and to login to the Linux applications used in this demo.

Wi-Fire

Configuring serial console for Wi-Fire boards

Windows

Linux

Wi-Fire Sensor

Hardware Configuration

To register your Wi-Fire board as a Sensor with this account, you need a Device Registration Key:

Using the terminal emulator, enter the following sequence of commands

You should see following within the serial console output:

Device Type 'ClimateControlDemoSensor'

s/w version Type '1.0'[INFO] ---------Initialize ClimateSensor------
...
[INFO] ---------Initialize ClimateSensor Done------

Note that the console output within the initialization process will vary depending on the state of your Climate Control Demo at runtime.

Wi-Fire Actuator

Hardware Configuration

To register your Wi-Fire board as an Actuator with this account, you need a Device Registration Key:

Using the terminal emulator, enter the following sequence of commands

You should see these lines within your console output:

Device Type 'ClimateControlDemoActuator'

s/w version Type '1.0'[INFO] ---------Initialize Climate Actuator------
...
[INFO] ---------Initialization of Climate Actuator Done------

Note that the console output within the initialization process will vary depending on the state of your Climate Control Demo at runtime.

Ci20 Controller

To register your Ci20 board as Controller you need a Device Registration Key:

Start the Controller app on Ci20 board

If you installed the controller as detailed in "Device Setup" then the controller binary will be in /opt/flowsdk/bin.

The flowclimatecontroller application requires Flow server configuration settings in the flow_controller.cnf file.

If this has worked successfully you can run the controller from a terminal by navigating to it's directory (default: /opt/flowsdk/bin) and typing ./flowclimatecontroller.mipsel.bin. If this does not work make sure that the file is marked as "executable". You should see a console output similar to this example:

root@ci20:/opt/flowsdk/bin# ./flowclimatecontroller.mipsel.bin

Flow Interface initialized successfully

[INFO]: ---------Initialize Controller------

Entering Interactive Mode

You can also start the flowclimatecontroller in debug mode to see more detailed console output and debug information. Just run "./flowclimatecontroller.mipsel.bin DEBUG_LEVEL 4".

Linux PC

Controller on Linux PC

If you do not want to use Ci20 to run the controller app, you can run it on the Linux PC instead. If you have already set up the controller on Ci20, skip to "Admin app on Linux PC"

Follow the instructions for Ci20 (including the Device Setup section) except for the following:
To run the controller on 64-bit Linux run ./flowclimatecontroller.x86_64.bin.
To run the controller on 32-bit Linux run ./flowclimatecontroller.i686.bin.

Admin app on Linux PC

Navigate to the pc_app/ folder that was downloaded earlier from GitHub and run the app:

#cd climate-control-demo/pc_app

#python climate_control/admin

Log into the app using the FlowCloud Developer account that your devices are registered to.
You can check session logs for the Admin app in climate_control/logs.

Display app on Linux PC

Navigate to the pc_app/ folder from different terminal.

#cd climate-control-demo/pc_app

#python climate_control/display

Log into the app using the FlowCloud Developer account that your devices are registered to.
You can check session logs for the Display app in climate_control/logs