Skip to content
Bernat Romagosa edited this page Jan 25, 2017 · 1 revision

If you own a Linino-powered board, such as the Tiān, you can take advantage of a specific Snap4Arduino version.

Installation

First of all, download the package from the official site. You'll find it under the name Embedded (Linino).

Transfer this file to the board by using your favorite method. If you have a Tiān, you can use the web interface by accessing http://arduino.local and transfer it via the included file manager. Otherwise, you can always transfer the file via ssh, as follows:

scp snap4arduino*.ipk [email protected]:/~

After entering your root password, the file will be transferred to the board. The next step is to actually install the package, and for this we are going to need access to its shell.

Again, you can access the shell by using the web interface at http://arduino.local and selecting the Terminal tool, or use ssh instead:

ssh [email protected]

After entering your password once again, you'll find yourself in the Linino shell. You can now issue the following command:

opkg install snap4arduino*.ipk

The package manager will take care of everything for you.

Usage

Accessing Snap4Arduino Via Web

The Linino package installs two different tools into your system. The first one is a web-based version of Snap4Arduino, accessible at http://arduino.local/snap.

You can use this version as you would a regular one, but with the additional possibility of pushing your project into the board at any time. To do so, navigate to the project menu and select Send project to board. This will place your current project into the home directory of the root user (/root) under the name autorun.xml. A special Snap4Arduino daemon will check for this file on boot time and run it automatically for you.

You can get rid of the autorunnable project by either removing this file or pushing an empty project into the board.

Using the Command Line Interpreter

The second tool installed by this package is a regular CLI version of Snap4Arduino. When in the Linino shield, you can run any Snap4Arduino project by issuing the following command:

snap4arduino yourProject.xml

Check out the usage section in this wiki page to learn more about the command line interpreter.