-
Notifications
You must be signed in to change notification settings - Fork 26
MSP432 LaunchPad Setup
- MSP432 LaunchPad + CC3100 BoosterPack + CC3100 Advanced Emulation BoosterPack - https://store.ti.com/cc31xx-exp432p401r.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
- CC3100 SDK and Firmware Update - http://www.ti.com/tool/cc3100sdk
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 MSP432 LaunchPad can be found in the MSP432_Azure folder [here] (https://github.com/remixed123/IoT/tree/master/LaunchPads)
- Open the MSP432_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 MSP432 LaunchPad 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 main.h to reflect your WiFi Router settings.
#define SSID_NAME "YourSSID" /* AP SSID */
#define SEC_TYPE SL_SEC_TYPE_WPA /* Security type (OPEN or WEP or WPA*/
#define PASSKEY "YourPasscode" /* Password of the secured AP */
- Remove the CC3100 BoosterPack from the MSP432 LaunchPad if currently connected.
- Connect the CC3100 BoosterPack to the CC3100 Advanced Emulation BoosterPack, making sure you align the white triangle in each board to each other.
- Connect the USB cable to the USB port of the CC3100 Advanced Emulation BoosterPack (USB Port on the right, marked as SPI/GPIO/UART/NWP)
- Open Device Manage in Windows Control Panel.
- And expand Ports (COM & LPT), you should see 4 CC3100BP PORTs
- Write down the port number for the third one in the list, for example COM15
- Use the certificate authority file "azurecacert.cer" which is located here.
- Start UniFlash for the CC3200/CC3100
- Select New Target Configuration
- Under COM Port, enter the COM Port you wrote down in the previous steps
- In UniFlash, Select Service Pack Programming and make sure you update the Service Pack to the latest version (see link at the beginning of the page for details on where to obtain the Service Pack or see the link in UniFlash next to the Service Pack Programming option)
- 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.
- Unplug the USB Port from the CC3100 Advanced Emulation BoosterPack
- Remove the CC3100 BoosterPack from the CC3100 Advanced Emulation BoosterPack
- Add the CC3100 BoosterPack to the MSP432 LaunchPad, making sure to align the white triangle together
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.