5.3 Example Usage for CC3100
This example will show step by step how to run the application in "Intermittently connected" use case with static IP address and communicating via UDP socket.
- Connect Micro-USB cable from J401 on the MSP430 Launchpad to a windows PC.
- Connect the current, measurement tool.
- Check to make sure that all pull-ups, pull-downs, and resistors are in place (according the board measurement setup ECO).
- Remove the jumper from J6 and connect your current measurement tool.
- Open CCS (Code Composer Studio) and Choose File->import from the menu, choose CCS project.
- Under select search directory, enter the path: C:\ti\CC3100SDK_1.0.0\cc3100-sdk\platform\msp430f5529lp\example_project_ccs.
- Check the project "power_management" and press Finish.
- Open the sl_common.h file located at the path C:\TI\CC3100SDK_1.0.0\cc3100-sdk\examples\common\, and configure your network parameters.
- Open the main file from the project explorer in the CCS and configure the general & use case settings.
- Launch Tera Term on the relevant com port , the serial number of the com port may differ.
- Press F11 on the CCS window, and let the application run. On successfully termination you should see in the Tera Term outputs similar to Figure 27.
- The next sniffer snapshot corresponds to the traffic initiated by the application in one hibernate → active → hibernate cycle:
The current measurement graph should look like this graph of Graph of 3 active cycles for intermittently connected mode. In each state connection is reestablished and one UDP packet is sent.