SWRA659A March 2020 – June 2020 CC3100 , CC3100MOD , CC3200 , CC3200MOD
For Transceiver mode a connection to standard Wi-Fi network is not required. The device is in hibernate state between operation times, and the socket in use is RAW hence not requires use of networking services. In this mode, you can configure some MAC/PHY attributes like:
The tweaks made in this mode for power optimization are:
To optimize transceiver mode, use the below configurations:
NOTE
Can be set by configuring SL_RAW_RF_TX_PARAMS in the sl_Send command
NOTE
Can be set by configuring SL_RAW_RF_TX_PARAMS in the sl_Send command.
A good representation of a code for such case is:
//Configurations - Done once
sl_start(0,0,0);
sl_WlanPolicySet(...); // set "SL_LOW_POWER_POLICY"
sl_WlanPolicySet(…); // set all connection option to zero
// Sending/Receiving Data - Done when packet need to be sent or received
while (1) {
sl_stop(10); // Enter hibernate mode
Delay(); // Long hibernate Time period
sl_Start();
sl_socket(); // Raw socket
sl_SetSockOpt(…); // Optional setting CCA threshold & TX timeout
sl_Send(); // TX param are passed also
}