Table of Contents

Overview

The Sensor Profile example showcases the usage of lowest power mode (Hibernate) for CC3200. Hibernate mode can significantly lower power consumption of the system, especially if the use case demands the device to be active for only small amount of time over long periods like periodically sending data over the network.

Application details

Power Management Framework

The CC3200 has multiple power modes which can be set from the application. The Power Management Framework makes it easier to specify this power policy. The user should configure the lowest power mode for the device based on their application, and the framework will decide when to reach this mode. The framework hides intricacies of the underlying settings and helps the developer experience low power mode capabilities in a simple manner. For more information regarding the Power Management Framework, please refer to CC3200 Power Management Framework documentation.

Current Measurement

This application specifies Hibernate as the lowest power mode. When the CC3200 is in hibernate mode, the current values can be as low as in the order of microseconds. he procedure for measuring current can be found in Power Management Optimizations and Measurements documentation.

Example Configuration

Most the parameters user will need to modify are specified as MACROs

    #define SSID_NAME              "cc3200demo"
    #define GPIO_13                 13
    #define GPIO_17                 17
    #define GPIO_SRC_WKUP       GPIO_13
    #define APP_UDP_PORT            5001
    #define HIB_DUR_SEC         60
    #define HIB_DUR_NSEC            0
    #define TRAFFIC_DUR_SEC         5
    #define TRAFFIC_DUR_NSEC        0
    #define SERVER_IP_ADDRESS       0xC0A80066

Security parameters for the AP can be configure inside the WlanConnect function in main.c.
Whatever GPIO is used as wake up source must be added to the gpio\_list array in user_app_config.h and pinmux for the same GPIO must be added in pinmux.c.

Task: TimerGPIOTask

  1. Start network processor (NWP), switch to station mode, set NWP power policy and connect to the AP.
  2. Send UDP packets to server address for configurable duration.
  3. Disconnect, stop NWP, set timer and GPIO as wake sources from Hibernate.
  4. Set Power policy for the application MCU.

Source Files briefly explained

Usage

  1. Setup a serial communication application. Open a serial terminal on a PC with the following settings:
    • Port: Enumerated COM port
    • Baud rate: 115200
    • Data: 8 bit
    • Parity: None
    • Stop: 1 bit
    • Flow control: None
  2. Edit the macros in main.c as specified above to connect to your AP. Modify any other configurations as desired.
  3. Run the reference application. Build the application and flash the binary using UniFlash.
    • The debugger will disconnect when the device enters hibernate mode.

Limitations/Known Issues

Refer to CC3200_Power_Management_Framework documentation for limitations and known issues.