Before you Begin

Before you Begin

Install NPM and git-perltools

Node.js, Git and Python 2.7 are installed on each LTPS by default, but NPM is not.

To install it connect to your LTPP board from an SSH client and execute the following steps:

# Setup package repositories (if it's not done already)
smart channel --add a0 type=rpm-md name="LTPS all" baseurl=${RPMSBASE}/all/ -y
smart channel --add a1 type=rpm-md name="Tibbo LTPS general" baseurl=${RPMSBASE}/cortexa8hf_neon/ -y
smart channel --add a2 type=rpm-md name="Tibbo LTPS tpp" baseurl=${RPMSBASE}/tpp/ -y
smart update

# Install NPM
smart install nodejs-npm -y

# Enhance Git functionality. Required if you want to install NPM modules directly from Git.
smart install git-perltools -y

# Install build-essential (GCC, Make, libraries etc). Required for on-board compilation of native C addons.
smart install packagegroup-core-buildessential -y

Define your Tibbits layout

Different Tibbits require different resources. For example, a relay Tibbit inserted into a socket S1 of the LTPP3 board will need the S1 interface lines to function as general-purpose I/O (GPIO) lines. An RS232 Tibbit placed into the same socket will require a UART to be enabled and mapped to this Tibbit's interface lines.

The LTPP3 provides an interactive graphical tool that allows you to define your "Tibbit layout" (configuration), i.e. specify what Tibbit goes into what socket. The tool also verifies that there are no mistakes or problems with your layout. Once you have created and saved the desired layout, you must reboot the board to allow the new configuration take charge. The video below shows the configuration process.

When trying out our code examples or testing your own projects, remember to define the proper Tibbit layout before running the corresponding code.

Defining the Tibbit layout through the LTPS Web Interface

Before you Begin