|
SmartMesh IP mesh networks and and IBM Watson IoT are perfectly complementary. Sending data gathered by a SmartMesh IP mote into the Watson IoT platform is a breeze, as you will see in this recipe. |
We assume you have a DC9000B SmartMesh IP starter kit
There are many many things you can do with this kit, including connecting external sensors, reprogramming the motes, driving the motes from an external micro-controller, etc. In this recipe, we assume you are using an out-of-the-box kit, in which nodes are running the default firmware in master mode. In this mode, each mote publishes a temperature reading every 30s. This is what we will publish to Watson IoT Quickstart. |
Plug the manager into your computer's USB board and its blue LED switches on
When you plug the manager into your computer, 4 serial ports appear on your computer. If you're using Windows, they are listed in your Device Manager. Note the number of the 4th port in the list, in my case "COM13". |
Switch on at least one mote, two green LEDs are steady-on when the mote has successfully joined the network and is publishing data:
The LEDs are only active when the blue "LED EN" jumper is placed, as in the picture above. |
That's it, you have a fully functional SmartMesh IP network with every mote publishing a temperature reading every 30s. |
On your computer, you will need to run two programs: JsonServer and Node-RED
JsonServer is a program developed by the DustCloud community and part of the SmartMesh SDK.
It connects to your SmartMesh IP manager and opens an HTTP JSON interface that Node-RED can connect to.
Download the latest release of the SmartMesh SDK at https://github.com/dustcloud/smartmeshsdk/releases
There are several ways of running the SmartMesh SDK, depending on your operating system. On my Windows computer, the quickest way is to download the pre-compiled binaries: Unzip the folder, and double-click on You can of course also download the (Python) source code and run that. This is documented at SmartMesh SDK. |
Make sure the debug tab on the right contains "200"
You just issued a command to the JsonServer application to connect to your SmartMesh IP manager's serial port. |
Make sure the debug tab on the right contains "connected"
You asked the JsonServer what its status is, and it responded that it is connected to your SmartMesh IP Manager. |
Choose any one of your motes, and read its label, in my case "3FFEE6"
The label contains the unique identifier of the mote. |
You can see the same data on different devices, just go to https://quickstart.internetofthings.ibmcloud.com and enter the identifier of your board. |
We hope to have convinced you of how easy it is to send data from your SmartMesh IP to IBM Watson IoT. We have obviously only scratched the surface of what's possible.
|