Difference between revisions of "SDK Setup Guide - Almond+ 2014"
(sdk setupguide for almond+) |
(No difference)
|
Revision as of 05:42, 26 March 2014
Contents
Requirements
This tool is designed to be run under Linux Environment, and has been tested under Ubuntu 10.04, 10.10, 11.04, 11.10, 12.04, 12.10, 13.04, 13.10 and Mint 14, 15, 16.
How To Install Toolchain
Use the following command to install Toolchain on your machine.
sudo tar -xf /Path/To/almond_plus_sdk_v2.1.tar.gz -C /opt/
How To Compile Sample Switch App
Use following commands to compile the project.
tar -xf /Path/To/Sample_Switch_App.tar.gz -C ~/Desktop/
cd ~/Desktop/Sample_Switch_App
make
How To Run Sample Switch App
use following command to copy the switch binary file to your TFTP folder.
cp ~/Desktop/Sample_Switch_App/switch /Path/To/Your/TFTP/Server/Folder
Access your Almond+ via SSH & use the following commands to download switch binary file to /almond folder
cd /almond
tftp -gr switch 192.168.1.100
here 192.168.1.100 is TFTP server ip.
After downloading the switch binary to almond folder, execute the binary from / folder.
How To Use The Sample Switch App Examples
1. To turn on the switch from ur Almond+ with devid 2 use following commands.
cd /
./almond/switch 2 1
2. To turn off the switch from ur Almond+ with devid 2 use following commands.
cd /
./almond/switch 2 0