Tutorial on Connecting CC3200 to Cloud

Tutorial on Connecting CC3200 to Cloud

The SimpleLink™ Wi-Fi® CC3200 LaunchPad™ development kit (with QFN-packaged device) is an evaluation development platform for the CC3200 wireless microcontroller (MCU), the industry’s first single-chip programmable MCU with built-in Wi-Fi connectivity Know more about CC3200 from TI's website

Let's start with setting up the CC3200 LaunchPad™

Part I: Installation and settings of CCS:

  1. If you have not already done, follow the installation and settings of CC3200 through this link https://www.youtube.com/watch?v=xbh9I8waq5g
  2. To create the temperature sensor project, go in options file-> New-> CCS
  3. Write the name of the project, select the option Empty project (with main.c) and click on Finish option.
  4. You can download the all .h and .c files from https://github.com/things-cloud/temperature-sesnor-node-cc3200
  5. Add the .h and .c files to your project: Right click on the project and go in option add files.
  6. Navigate to download folder “temperature-sesnor-node-cc3200” and select the .h and .c files to add into the project. Click on open option.
  7. Select the option “copy files” and click on “Ok”.
  8. Go on project explorer-> file name and right click from mouse and go in properties.
  9. Go on project explorer-> file name and right click from mouse and go in properties. Include the file path in ARM compiler-> include options (#include search path)
  10. Include the file path in ARM linker-> file search ->Include library file or command file: "libc.a"
  11. For wi-fi settings, go in project explorer->your_file->/example/common->common.h Change SSID_NAME, SECURITY_KEY and SECURITY_TYPE = “SL_SEC_TYPE_WPA” or WPA2

CCS side of the setup is now done. We will park it here for few minutes and setup cloud account, which will give you sample code to paste it back. Cloud account will be setup on Thingsio.ai, which enables the CC3200 to send, store and vizualize your sensor data

Part II: Setting up Cloud Account on Thingsio.AI

ThingsIO.AI is a IoT Platform for developers. As a developer we understood the pain of not having a seamless place to connect, analyze and process device data. Many pure analytics platforms does not offer device management, which is core for the iot. That is the reason of ThingsIO.AI

  1. Register the account via this link http://thingsio.ai/#/register
  2. Create a project:
  3. Write the name of the project:
  4. Now, you will be on the project dashboard of your account. Click on the new project option:
  5. Click on the add a new device option:
  6. Enter the device name and click on the create and configure device:
  7. Click on the add a new device option:
    1. Track your device’s special parameters here. This can be set in device configuration (default to null).
    2. You can see your real time and special parameter’s graph.
    3. You can see your all data points.
    4. You can see here your last 5 data points.
    5. You can see here all the list of created graphs.
  8. Go in sample device code options and click on the CC3200. You will get the sample code from there and paste into your CCS.
  9. Click on the “Send trial data” to send a trial data to the server:
  10. Part III: Setting up CC3200 LaunchPad™

    Now switch back to your CCS Project. The new few steps you have to do it you CCS project and is related to CC3200 Launchpad.

  11. Copy and paste the sample code from the previous step into your CCS in “main.c”.
  12. Go in view option-> target configuration and click on it.
  13. Select on user defined option->right click on it->click on the New Target Configuration. Click on it.
  14. Browse and select the file .ccxml and click on finish.
  15. You can attach the temperature sensor on PIN 58 on CC3200.
  16. Plugin the CC3200 through USB cable. Check in device manager the port name and number.
  17. Check the pin configuration and shorting of pins in CC3200.
  18. Select the project, go in view option ->debug option and click on it.
  19. Open the Hercules or tera-term application to see the output/procedure of the CC3200.
  20. Go in serial and set the Name: according to your port number, Baud rate: 19200, Data size: 8 and Parity: none and open it.
  21. Go in CCS. Now, you will on debug page. Press F8 or click on resume option.
  22. You can see all the response from the server, connection with the wi-fi etc. in Hercules or tera-term.
  23. Now your CC3200 LaunchPad™ is configured and it is sending data to the cloud, thingsio.ai. Last part is to visualize the data

    Part IV: Charting and Vizualtions on Thingsio.AI

  24. Now, click on the configuration device option.
  25. You can set the special parameters (this is tracked on the device dashboard) & transform it accordingly and add new parameters (Parameters are updated automatically as you send them from your device).
  26. Click on the update device option:
  27. You can also set your device geographical location.
  28. To create a graph for your device click on the “create graph option”.
  29. Click on the preview option. You will see your created graph and click save changes.

2 Comments


Jonathon
Says August 15, 2017 at 11:33PM

Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

Andy
Says August 15, 2017 at 11:33PM

Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

Bryson
Says August 15, 2017 at 11:33PM

Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

Leave Your Comments