SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
Three commands get the needed statistics. The first command is sl_WlanRxStatStart (), which starts collecting the data about all Rx frames.
sl_WlanRxStatStop(), stops collecting the data.
sl_WlanRxStatGet(), gets the statistics that have been collected and returns them in a variable type SlGetRxStatResponse_t. The command is used as follows:
SlGetRxStatResponse_t rxStatResp;
sl_WlanRxStatGet
(&rxStatResp , 0 );
The second parameter is flagged and it is not currently in use.
SlGetRxStatResponse_t holds the following variables:
ReceivedValidPacketsNumber – Holds the number of valid packets received
ReceivedFcsErrorPacketsNumber – Holds the number of FCS error packets dropped
ReceivedAddressMismatchPacketsNumber - Holds the number of packets that has been received but filtered out by one of the HW filters
In connection mode:
In Transceiver mode (disconnect mode):
avarageDataCtrlRssi – Holds the average data + control frames RSSI
avarageMgMntRssi – Holds the average management frames RSSI
RateHistogram[NUM_OF_RATE_INDEXES] – Histogram of all rates of the received valid frames. The rates are sorted as follows:
RATE_1M = 0 …
RATE_2M
RATE_5_5M
RATE_11M
RATE_6M
RATE_9M
RATE_12M
RATE_18M
RATE_24M
RATE_36M
RATE_48M
RATE_54M
RATE_MCS_0
RATE_MCS_1
RATE_MCS_2
RATE_MCS_3
RATE_MCS_4
RATE_MCS_5
RATE_MCS_6
RATE_MCS_7
NUM_OF_RATE_INDEXES is 21.
RssiHistogram[SIZE_OF_RSSI_HISTOGRAM] – Histogram that holds the accumulated RSSI of all received packets from -40 to -87 dbm every 8 dbm.
SIZE_OF_RSSI_HISTOGRAM is 6
StartTimeStamp – Holds the start collecting time in microsec
GetTimeStamp – Holds the statistics get time in microsec