Overview

Skill Level: Any Skill Level

This recipe is suitable for all and is a great foundation for IoT projects.

Connect to the Watson IoT Platform Quickstart Service using an iOS DeviceDownload the SensorTag app from the Apple Store.Note : This documentation was created using version 4.4:Build161 of the SensorTag iOS AppPull the tab on the SensorTag battery to power on. Within the app select your SensorTag from the device list.Select ‘Sensor View’ to see […]

Ingredients

You will need a Texas Instruments SensorTag.

In this tutorial, you will also need an iOS or Android device with support for Bluetooth Smart (BLE) to connect to the SensorTag.

The SensorTag is packed with low power sensors and wireless connectivity to allow wireless, battery powered applications with years of battery life.  To learn more about the SensorTag and order your own go to www.ti.com/sensortag

Step-by-step

  1. Connect to the Watson IoT Platform Quickstart Service using an iOS Device

    • Download the SensorTag app from the Apple Store.
      • Note : This documentation was created using version 4.4:Build161 of the SensorTag iOS App

    • Pull the tab on the SensorTag battery to power on.

    • Within the app select your SensorTag from the device list.

    • Select ‘Sensor View’ to see the sensor’s readings.

    • Enable the ‘Push to cloud’ configuration to start sending sensor data to the configured cloud service.

    • The slider should become enabled when successful network connection is made.
      • Note : the cloud icon shows a red arrow each time data is sent to the cloud.

    • Select the Cloud View cell to view the cloud configuration settings which should look as below in the default configuration.
      • Note : the Device ID is derived from the MAC address of the SensorTag.

    • Click on the supplied link to visualise the data using the Quickstart web view using your browser.

    • Your SensorTag is now successfully connected to the IBM Watson IoT Platform Quickstart Service!
  2. Connect to the Watson IoT Registered Service using an iOS Device

    Once system and network connectivity has been verified using the Quickstart configuration it is now just a few clicks to connect the SensorTag to the IBM Watson IoT Platform Registered Service, offering many additional features and benefits.

    • As a first step, return to the ‘Sensor View’ and the ‘Cloud Config Summary’ to obtain the MAC address / Device ID of the SensorTag. The device MAC address is usually the unique identifier that will be used to register this specific device with the Watson IoT Registered Service.

    • Next, login to your Watson IoT Dashboard (https://internetofthings.ibmcloud.com/) and register a device with corresponding Device ID and Type.
      • The registration process will result in creation (or possibly selection) of an authentication token for the device.
    • In the iOS App, select the Edit button to enter the ‘Cloud server select’ configuration screens.
      • This process will reconfigure the ‘default’ behaviour of the Clould configuration for all sensortag devices. Device ‘specific’ configurations can also be created which will be covered later.
      • This menu shows the options for the ‘built-in’ Cloud services, with the checkmark highlighting the currently selected configuration.
    • Select the ‘Registered’ Service to configure the settings.

    • Populate the Organization ID to correspond to your Watson IoT Organization ID (e.g. abcdef), and enter the Token from the device registration process (e.g. devicetoken). The Type is pre-populated and the device ID will be replaced automatically by the app using the device MAC address if left blank.

    • Save the settings to return to the service selection page and ensure the registered service is now selected as default.

    • Returning back to the ‘Config Summary’ page should now show the credentials that will be used when the device connects to the cloud.

    • If the ‘Device ID’ was left blank, this will be populated by returning back to the top level device list view before returning to the Config Summary page.

    • ‘Push to cloud’ can be enabled to initiate the connection.

    • The SensorTag is now connected to the IBM Watson IoT Platform Registered Service!
  3. Connect to the Watson IoT Quickstart Service using an Android Device

    • Download the SensorTag app from Google Play.
      • Note : This documentation was created using version a.b of the SensorTag Android App

    • Pull the tab on the SensorTag battery to power on.

    • Android App ScreenShots to be uploaded shortly.
  4. Connect to the Watson IoT Registered Service using an Android Device

    The process for Connecting to the registered service is very similar for Android. Android App Specific Screenshots to be uploaded shortly.

Expected Outcome

At the end of this tutorial you'll have your Texas Instruments Simplelink SensorTag connected to IBM's Internet of Things (IoT) Foundation ready for you to regsiter the device, begin a free trial and start creating cool IoT apps in IBM Bluemix.

23 comments on"Texas Instruments CC2650 SimpleLink™ Bluetooth® Smart BLE SensorTag"

  1. 55JT_Michael_Goericke September 22, 2015

    Looks like the SensorTag app is not yet working with Apple’s iOS 9.0 .
    iOS 8.4 is OK.

    • TI App is working fine for me on my iPhone 4S running iOS 9.0.2.
      Best Regards,
      Tim

      • Michael.Goericke January 21, 2016

        It actually was working w/ IOS9.0 – but now w/ IOS9.2.1 is broken again….
        Discovers only the first 9 characteristics of the device and then fails to continue.

  2. 2ENS_Jeffrey_Katz October 08, 2015

    1) It is verified in a TI forum about IOS 9 and its blue tooth stack not working with the app. I have verified it is OK on 8.3 on an iPad Air (consistent with Michael Goericke’s comment).
    The good news is that you actually get an error message on IOS 9, rather than it just not working.

    2) If a neophyte is doing this recipe, I suggest a few additional hints:

    This page shows the layout of the device, especially the user and power button.
    http://www.ti.com/ww/en/wireless_connectivity/sensortag2015/tearDown.html#main
    Note particularly the use of both buttons to force the communication to be blue-tooth. This is an area to investigate if your sensor device does not show up in the application (under blue-tooth smart devices). Also of course make sure your IOS blue-tooth is on in the Settings.

    Once you select your device (SensorTag 2.0),

    Sensor View will show your device readings

    Show cloud URL will show the URL, something like
    https://quickstart.internetofthings.ibmcloud.com/#/device/0123456789ab/sensor/
    If the web page at the URL says the device is registered, but it has received no messages from your device, go to Sensor View, then in the section on Cloud View, switch sourcing on.

    3) Note that there are some inconsistencies in the metadata (just because it is the new frontier of IoT does not mean people always get the data model right). For example, in the app it is Light Sensor but on the Cloud view it is optical.

    • Bartho Dröge November 13, 2016

      Summer 2016 all worked fine with the latest iOS 9 on both iPAD and iPhone. I tried again yesterday, both before and after iOS update to iOS10. All configs are fine. The device is registered in IBM IoT but somehow connectivity in hte APP (both old and new version) does not work. There is a black cross in the cloud and nothing seems to happen. So the app is not sending any data? Of the is there a connection issue with the IBM IoT platform. Where can more status info be found? Is there any log in the app?
      All sensors work fine with the app.
      The IoT quickstart is awaiting the messages to come: “The device ID you have entered is valid, but we are waiting for your device to send us a message.”

  3. Requirements:
    2. You will need a device to communicate with the Sensor Tag. It must support BlueTooth 4.x and/or the BlueTooth Low Energy (BLE) protocols.
    a. AOS devices list*:
    b. iOS devices list**:
    c. Dongles list***:

    * Android Devices known to NOT support the TI SensorTag:
    Asus HD7 – Model # ME173X
    Asus Transformer Pad TF300T
    HTC One V
    LG Optimus Exceed (VS840PP)
    (or basically, every Andriod device that I current have)

    ** iOS devices known to NOT support the TI SensorTag:
    iPad (original)
    iPodTouch 32
    (or basically, every Apple device that I current have)

    *** Dongles that I can’t get to work with my workstation (Dell Latitude 6420) :
    IOGEAR Bluetooth 4.0 USB Micro Adapter GBU521 (Broadcomm BCM20702A0 Chip set) — This is probably Windows’ fault, Dell’s failing, but my problem.

    So, there won’t be any playing with SensorTag until I get a usable device or fix the Dell BT drivers issue, and pick up a SensorTag. 🙁
    But it looks oh, so good.

  4. teddydjiomou January 03, 2016

    Hi, I have a SimpleLink Sensortag, but doesn’t have an Android, nor iOS device (I’m actually using WP). Is there any solution to extract datas from the device directly on my PC in order to process them using a program like Matlab?
    Thank you

  5. Great walkthrough. I saw the example Node-red showing all of the data coming from the Quickstart. Is there a step-by step on how to use Node-red to turn on the green LED, red LED and buzzer?

  6. RiversBendLodge February 03, 2016

    Has anyone managed to get the IoT Visualization NodeJS app working with the TI Sensor Tag 2 sending data as a device in to IoT Foundation Service. I’m getting and seeing the data in IoT Foundation Dashboard, but when installing the IoT Visualization application, neither the realtime or historical data shows:

    Here’s the URL to the NodeJS visualization example: https://www.ng.bluemix.net/docs/services/IoT/index-gentopic1.html#iot200

  7. Dear all
    I have bought a set of sensortags to prototype here.
    We wanted to use it with raspberry pi b+, the latest version.
    Your sensortag works perfectly with any android cellular phone nevertheless when we try to connect it to the raspberry with a bluetooth dongle (ble112). We are blocked at the command sudo hciconfig hci0 up . This problem seems to be more related to raspberry / ble rather than to sensortag. however we will appreciate any help to connect sensortag to raspberry pi latest version! Thanks a lot for your help.
    Francois from france

  8. celik.caner May 03, 2016

    how can i viwed those datas in another website?

  9. Has anyone a idea (or success) to connect the android app to the Watson IoT platform?
    The screen looks totally different. (Ask for Broker Address & Port and ….)
    see https://db.tt/KiZF3iLI for a screenshot
    thanks michael

    • This worked for me.
      username: use-token-auth
      pwd:
      device id: d:::
      broker address: tcp://.messaging.internetofthings.ibmcloud.com
      broker port: 1883
      Publish topic: iot-2/evt/status/fmt/json

      • pwd ; enter your device token
        after tcp:// enter your org id
        for device id enter d (colon) org name (colon) devicetype (colon) device id

  10. marco.tagliabue@it.ibm.com July 26, 2016

    Thanks for this recipe, that is quite impressive for how simple it is.
    Said this I’m using Android and I’m having the same question asked by mhoff.
    Plus it is not clear to me is if/how a device type should be created for the Sensor Tag,
    Thanks for help
    ciao, Marco

    Thanks, Marco

  11. hi,
    I would like to ask you , is it possible can i connect TI sensor tag with other cloud services or with my own local database?

    Regards

    Irfan

  12. can you please explain me, How to connect gsm module (sim900A) to watson cloud.

  13. JEQ2_Koichi_Kamijo January 30, 2017

    Hi, I installed SimpleLink Starter to my iPhone5, and receiving the data from TI CC2650. I press “SensorTag 2.0” and “Push to cloud” button to push the sensor data, e.g. temperature, to the cloud.
    However, I’d like to do this automatically, i.e. I’d like the sensor data automatically pushed to cloud when the sensor is powered on, without pressing any button.
    Is it possible? If possible, would you please let me know how to do this?
    Thank you!

  14. This recipe does not work with the latest TI App on IOS. I tried with IOS 10.2.1 and Ipad Pro and Iphone 6s using the latest App from TI. While I can connect to the sensortags and could see the sensor data I have no connectivity to the Cloud. Push To Cloud slider is enabled but black cross in Cloud is unchanged. On Android this is working.
    There are 2 versions of the App in the Apple Appstore:
    SimpleLink Starter Version 4.92 Build 198
    TI SensorTag Version 5 (Build 214)
    Both have this issue.
    I think the connectivity to the quickstart platform is broken.

    • I have it working on my IPhone 7. I do have to turn off WiFi for the app to be stable. The big issue I had was I needed to set the security policy in the IOT Foundation to TLS Optional since the device/app was NOT using SSL.

  15. Same issue on latest iPhone 7 and iPad Air using latest iOS release. IBM IOTF Quickstart does work.

    • Check the security policy and make sure it is TLS Optional. On the security configuration screen the bar should be green

  16. I want to hook my TI Sensor tag with the SAP IoT Cloud Service. How can I push the data from the IBM Cloud to the SAP Cloud?

    Best Regards:

    Luis Lara

Join The Discussion