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

Microsoft loves Linux
05/23/2017
  Few year ago Microsoft CEO Satya Nadella said “Microsoft Loves Linux” during an event in San Francisco. This is not love at first sight. Modern IT is powered by...
HoloLens: transform your business
03/22/2017
Microsoft’s HoloLens is one of the most magical pieces of technology and it could change the world. The device, announced on January 21 2015, has immediately attracted a lot of...
Microsoft Forum 2017
03/02/2017
Microsoft Italy´s leading partner and customer conference, the Microsoft Forum will be arriving at Milan on the 8th of March for its second edition. The event, focused on Industry 4.0 and...