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

From SecuriWiki
Jump to: navigation, search
m (Protected "Almond SDK Setup Guide": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
m
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Almond+]]
+
[[Category:Almond+ 2014]]
 
[[Category:SDK]]
 
[[Category:SDK]]
__TOC__
 
  
 
== Requirements ==
 
== 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.<br />
+
This tool is designed to be run under Linux Environment, and has been tested under 64-bit Ubuntu 10.04, 10.10, 11.04, 11.10, 12.04, 12.10, 13.04, 13.10 and Mint 14, 15, 16.<br />
 
+
The sdk is available to download [https://wiki.securifi.com/files/almond_plus_sdk_v2.4.tar.gz here].
 +
The sample app is available to download [https://wiki.securifi.com/files/Sample_Switch_App.tar.gz here].
 
== How To Install Toolchain ==
 
== How To Install Toolchain ==
 
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 ~/Downloads/almond_plus_sdk_v2.4.tar.gz -C /opt/
 
</code> <br/><br/>
 
</code> <br/><br/>
  
Line 15: Line 15:
 
Use following commands to compile the project.<br />
 
Use following commands to compile the project.<br />
 
<code>
 
<code>
tar -xf /Path/To/Sample_Switch_App.tar.gz -C ~/Desktop/
+
tar -xf ~/Downloads/Sample_Switch_App.tar.gz -C ~/Desktop/ ;cd ~/Desktop/Sample_Switch_App ;make
cd ~/Desktop/Sample_Switch_App
+
make
+
 
</code><br/><br/>
 
</code><br/><br/>
  

Latest revision as of 09:48, 20 January 2016


Requirements

This tool is designed to be run under Linux Environment, and has been tested under 64-bit Ubuntu 10.04, 10.10, 11.04, 11.10, 12.04, 12.10, 13.04, 13.10 and Mint 14, 15, 16.
The sdk is available to download here. 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 ~/Downloads/almond_plus_sdk_v2.4.tar.gz -C /opt/

How To Compile Sample Switch App

Use following commands to compile the project.
tar -xf ~/Downloads/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