• 1
    Step 1

    Configure and Assemble the TPS

    • Open LTPS Web Interface by simply entering its IP address in your browser, select the "Tibbits Layout" tab, and push the "Launch TPS Configurator..." button.
    LTPS Web Interface

    Setup Tibbits Layout as shown on the screenshot below and click File/Save

    Note: TPS needs to be rebooted to take new Tibbits Layout into effect.

    Proposed tibbits layout
    • Assemble TPS according to the Tibbits Layout

    Attention: it's strongly recommended to shut down TPS before placing/removing Tibbits.

    Assembled device with the top cover removed

    Assembled device with the top cover removed

  • 2
    Step 2

    First application

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

    • For installing, connect it to your device with SSH and do the following:
    # Setup package repositories
    smart channel --add 150a type=rpm-md name="LTPS all" baseurl=http://tibbo.com/downloads/LTPS/packets/all/ -y
    smart channel --add 150c type=rpm-md name="LTPS cortexa" baseurl=http://tibbo.com/downloads/LTPS/packets/cortexa8hf_neon/ -y
    smart update
    # Install NPM
    smart install nodejs-npm -y
    # Create folder for application
    cd /opt/node-apps/
    mkdir environment
    cd environment
    # Install required modules
    npm install @tibbo-tps/tibbit-28
    npm install @tibbo-tps/tibbit-30
    npm install @tibbo-tps/tibbit-35

    /opt/node-apps/ folder is proposed to be used for your Node.JS apps.

    • In any IDE or even a text editor create azure-app-0.js file with you application:
    var tibbit28 = require("@tibbo-tps/tibbit-28").init("S11");
    var tibbit35 = require("@tibbo-tps/tibbit-35").init("S13");
    var tibbit30 = require("@tibbo-tps/tibbit-30").init("S15");
        var illuminationData = tibbit28.getData();
        var humidityData = tibbit30.getData();
        var pressureData = tibbit35.getData();
        var dateTime = new Date();
        console.log("Date/Time: "+dateTime);
        console.log("Illumination: "+illuminationData.illumination);
        console.log("Humidity: "+humidityData.humidity);
        console.log("Temperature: "+humidityData.temperature);
        console.log("Pressure: "+pressureData.pressure);
    • Upload it to /environment folder and run:
    $ node azure-app-0.js
    Date/Time: Tue Jul 19 2016 13:50:54 GMT+0000 (UTC)
    Illumination: 115
    Humidity: 43.755340576171875
    Temperature: 28.05670928955078
    Pressure: 738.7398681640625
  • 3
    Step 3

    Setting Up Microsoft Azure IoT Hub

    Microsoft Azure IoT Hub is a service that allows bi-directional communications between your devices and a solution back end. To complete this part of the tutorial you'll need:

    • TPS device(s) prepared as shown on the Step 0
    • An active Azure account
    • A PC with installed Node.js

    Create an IoT Hub

    • Sign in to the Azure Portal
    • Choose New > Internet of Things > Azure IoT Hub
    • Configure your IoT Hub, then click "Create"
    Azure Portal: Creating an IoT Hub

    • Wait a few minutes until your IoT Hub has been created then select All Resources > [name of your IoT hub] and click "Keys" icon.
    • In the Shared access policies blade select the "iothubowner" item and then copy the value of "Connection string" field.
    Azure Portal: Setting up your IoT Hub

    Azure Portal: Setting up your IoT Hub