Monday, April 23, 2018

How to connect Contiki-NG cc26xx-web-demo to IBM Watson IoT Platform.

The following steps show you how to connect Contiki-NG cc26xx-web-demo (running on LAUNCHXL-1310 or LAUNCHXL-CC2650) to IBM Watson IoT Platform.

1. Setup IBM Watson IoT Platform.
  • 1.1 Login to IBM Watson IoT Platform and go to SECURITY tab of Device page to use "TLS Optional". This step is critical. If you don't do this, you need to use TLS for connection and default cc26xx-web-demo won't work.

  • 1.2 Go to Device Types tab of Device page to click "Add Device Type".
  • 1.3 Input device type name. I use cc26xx-web-demo in this demo.
  • 1.4 Follow all the steps to finish add device type.
  • 1.5 Switch to Browse tab of Device page to click "Add Device".
  • 1.6 Select "Select Existing Device Type" to cc26xx-web-demo and input Device ID which I use device MAC address.
  • 1.7 Input authentication token.
  • 1.8 Keep your device credentials carefully.
  • 1.9 Finish adding device and you would see it on Browse tab of device page.

2. Running 6lbr and wrapsix on Raspberry Pi first and connect your cc26xx-web-demo running on LAUNCHXL-CC1310 or LAUNCHXL-CC2650 to your 6lbr and configure cc26xx-web-demo.
  • 2.1 Open "MQTT/IBM Cloud Config" page.
  • 2.2 Configure cc26xx-web-demo for IBM Watson IoT platform according to device credentials in step 1.7.
  • 2.3 Run "ping uc6bmi.messaging.internetofthings.ibmcloud.com" to get its IPv4 address 169.45.2.20.
  • 2.4 Change broker IP to "0064:ff9b:0000:0000:0000:0000:a92d:0214" which is IPv6 address of "169.45.2.20".
  • 2.5 Click "Submit" on "MQTT/IBM Cloud Config" page to connect to IBM Watson IoT platform.

No comments:

Post a Comment