-
Notifications
You must be signed in to change notification settings - Fork 26
CC3200 LaunchPad Setup
- CC3200 LaunchPad - https://store.ti.com/cc3200-launchxl.aspx
- Code Composure Studio - http://processors.wiki.ti.com/index.php/Download_CCS
- Visual Studio 2013 Community Edition - http://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx (optional)
- UniFlash for CC3100/CC3200 -http://processors.wiki.ti.com/index.php/CCS_UniFlash_-_CC3100/CC3200_Edition
- CC3200 SDK and Firmware Update - http://www.ti.com/tool/cc3200sdk
You will need to generate a SAS Token, this can be done using one of the following methods
- Build the Visual Studio Project that contains a Windows Form Application with C# code available from here
OR
- Install and use the already built and published application from here
The CCS project for the CC3200 LaunchPad can be found in the CC3200_Azure folder [here] (https://github.com/remixed123/IoT/tree/master/LaunchPads)
- Open the CC3200_Azure project in Code Composure Studio so that you can edit source code.
- Change
#define EH_SERVER_NAME
to#define Your_EH_Server_Name
- Change
#define POSTHEADER "POST /swiftsoftware-eh/messages HTTP/1.1\r\n"
to#define POSTHEADER "POST /Your_EH_Server_Name/messages HTTP/1.1\r\n"
- Change
#define HOSTHEADER "Host: swiftsoftware-ns.servicebus.windows.net\r\n"
to#define HOSTHEADER "Host: Your_Service_Bus_Name_Space.servicebus.windows.net\r\n"
- Change
#define AUTHHEADER "Authorization: SharedAccessSignature sr=swiftsoftware-ns.servicebus.windows.net&sig=6sIkgCiaNbK9R0XEpsKJcQ2Clv8MUMVdQfEVQP09WkM%3d&se=1733661915&skn=EventHubPublisher\r\n"
to#define AUTHHEADER "Authorization: SharedAccessSignature sr=Your_Service_Bus_Name_Space.servicebus.windows.net&sig=Your_Shared_Access_Token&se=1733661915&skn=Your_Eventhub_Shared_Access_Policy\r\n"
Note: You can choose not to make any changes, and the telemetry generated by the CC3200 will be sent to my Event Hub, you can then view the Telemetry here.
To create a secure TLS socket the current time is required, this is obtained from an NTP Server. It is best to use one close to your geographically. The code includes some suggestions, you can also perform an Internet search to find one in your location.
Search on "g_acSNTPserver[30]" in main.c to find where in the code the NTP Server details can be modified
Change the defines in the common.h of the CC3200 SDK to reflect your WiFi Router settings. common.h can be found in the common example in the example folder of the CC3200 SDK.
#define SSID_NAME "YourWifiRouterSSID" /* AP SSID */
#define SECURITY_TYPE SL_SEC_TYPE_WPA /* Security type (OPEN or WEP or WPA*/
#define SECURITY_KEY "YourSecurePassword" /* Password of the secured AP */
- Use the certificate authority file "azurecacert.cer" which is located here.
- Start UniFlash for the CC3200/CC3100
- In Uniflash, click the "add file" option.
- Name the file to /cert/azurecacert.der
- In the Url field browser to the location of were you have stored azurecacert.cer
- Select the Erase and Update check boxes
- Select the top of the tree (CC31x Flash Setup Control) and then press program.
Additional Assistance: UniFlash Quick Start Guide.
Note: You can download your own Certificate from a browser or from the Certificate Manager in Windows. Azure uses the Baltimore CyberTrust Root. Details on how to perform these steps can be found here, at the bottom of the page.
You can connect via serial port and receive debug output. This is recommended should you have any issues as the debug output is quite comprehensive.