Connect Sensor Tag to Watson IoT platform using a Raspberry PI as gateway

Connect Sensor Tag to Watson IoT platform using a Raspberry PI as gateway

06/08/2016 | Developer, IoT

In my previous post, to connect Sensor Tag to Watson IoT platform I used my MacBook as IoT gateway !

My Bluemix‘ s colleagues have developed a Node.js app (iot-sensor-tag) that allow to use a MacBook as IoT gateway, retrieve data from its sensors, and publish that data to the IoT platform. In theory you can run the application an anything that supports the Node.js runtime and Bluetooth LE, so you can install node.js and iot-sensor-tag application on Raspberry PI.

You have download the Bluetooth stack Bluez on the Raspberry Pi from:

and before installing Bluez, the Raspberry Pi environment needs to be updated to have the following set of libraries installed on it:

You have extract the tar file downloaded earlier. Under the extracted directory the is the bluez-5.32 directory. You should find the configuration file ‘configure’ under the directory mentioned above Execute the following command to configure the Bluez

Post successful configuration, now perform ‘make’ to install the Bluez

During the make command I enjoined to monitor the Raspberry CPU utilization on my web dashboard. As you know the Raspberry can send performance data to Watson IoT platform. Here is my old post about it.

IoT data for Raspberry make command

IoT data for Raspberry make command

and finally run the app on node.js

Raspberry Pi as IoT gateway for Sensor Tag

Raspberry Pi as IoT gateway for Sensor Tag

As usual you have to register the device on Watson IoT platform and create a NodeRed flow. You can read my previous post at this link

 

IoT data from Sensor Tag

IoT data from Sensor Tag

Enjoy with Sensor Tag and Raspberry PI !

 

 

Blog Comments

Sir may I know that is the sensortag is directly connected via USB cable thru CC debugger or a separate Bluetooth dongle module is used for this purpose to establish communication between rpi and sensoratag wirelessly over BLE protocol?

Add a comment

*Please complete all fields correctly

Related Blog

AI school
03/13/2018
Become an AI expert through Microsoft hands-on training course program, dive in and learn how to start building intelligence into your solutions with the Microsoft AI platform. The school includes...
Coco Framework
12/22/2017
A growing number of enterprises are showing their interest in blockchains. Microsoft wants to help and make it easier for the enterprises to build their networks using any distributed ledger,...
AI IoT Blockchain
10/27/2017
By paraphrasing the title of the famous Douglas Hofstadter masterpiece with AI-IoT-Blockchain we are faced with a new Eternal Golden Braid ! The Artificial Intelligence applied to the Internet of...
HTML Snippets Powered By : XYZScripts.com