This project features the Texas Instruments SimpleLink™ Wi-Fi® CC3220SF LaunchPad™ and demonstrates Internet Of Things capability by sending and receiving data from Exosite Murano using MQTT.
Setting up Exosite Murano to communicate with TI CC3220SF LP:
- Login to exosite.io . If you do not have an existing account, create an account by signing up.
- Go to IOT Marketplace and select TI SimpleLink Launchpad to create a new IOT Connector.
- Set a IOT Connector Name.
- Go to Home Page and select your new IOT Connector.
- Go to “Devices” and add a new device. Name your new device “cc3220sf”. Uncheck “Restrict provisioning period”.
- Click the 3 dots and select “Manually set device credentials”. Save the randomly generated token at notepad.
- Copy product domain link. Save domain link at notepad.
- Go to “Settings” and select “MQTT”. Set “Password” for Authentication.
- Go to “Resources”, and delete all resources.
- Create a new resource “sw1”, with data format “String”. Create 3 resource for led0, led1, led2, with data format “Boolean” and select “I want to modify this value from the cloud”.
- Go to “Device”, click the 3 dots and select “View dashboard”. The Dashboard window, where you can set GUI, to represent your data.
- Select “ADD PANE”. At the new pane click the plus sign to add widget. Create a toggle switch widget for led0, led1, and led2. Optional is to create a new pane and widget for the sw1 string.
- Select the up arrow to hide the dashboard settings.
Modifying the MQTT CCS Project for Exosite Murano:
- You need to have the latest CCSv9.20, CC3220SF SDKv3.30, Uniflash installed.
- Import the CCS Project to your CCSv9.20 workspace.
- At mqtt_client_app.c set the SERVER_ADDRESS, device name, password.
- Rebuild all, tirtos_builds_CC3220SF_LAUNXL_release_ccs, and mqtt_client_CC3220SF_LAUNXL_tirtos_ccs.
- Open Uniflash, and Start Image Creator for CC3220SF Launchpad. Create a project, and set Device Type “CC3220SF” and Device Mode “Develop”.
- At Uniflash Simple View, select your CCS project bin file and select the CC2640R2F SDKv3.30 service pack bin file located at “C:\ti\simplelink_cc32xx_sdk_3_30_01_02\tools\cc32xx_tools\servicepack-cc3x20”.
Go to Uniflash Development Mode -> User Files. Select the document icon to add rootca.der file.
- Make sure the CC3220SF SOP Jumper is set to 010. Select “Connect”, then “Burn”. Select Program Image.
Testing the Program:
- After the program is flashed to the CC3220SF Launchpad, open Serial Console. A print out of “Connection Success” indicate successful connection to Exosite Murano.
- Go to “Devices”. Select the led resources to change it’s state.
- Go to Dashboard, change the led state using toggle switch as shown in this video below.
- Send several sensor data to Exosite Murano.
- Try out ExoSense, “it is an end-to-end solution for remote monitoring applications that need to gather data from sensors, machines, PLCs, legacy controls”.