Difference between revisions of "SDK Setup Guide - Almond+ 2014"

From SecuriWiki
Jump to: navigation, search
m
Line 10: Line 10:
 
Use the following command to install Toolchain on your machine.<br />
 
Use the following command to install Toolchain on your machine.<br />
 
<code>
 
<code>
sudo tar -xf /Path/To/almond_plus_sdk_v2.1.tar.gz -C /opt/
+
sudo tar -xf /Path/To/almond_plus_sdk_v2.2.tar.gz -C /opt/
 
</code> <br/><br/>
 
</code> <br/><br/>
  

Revision as of 07:08, 16 April 2014

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.
The sample app is available to download here.

How To Install Toolchain

Use the following command to install Toolchain on your machine.
sudo tar -xf /Path/To/almond_plus_sdk_v2.2.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