SWRU602 September 2023 CC3300 , CC3301
Similar to TX commands there are RX commands that can be used to receive the packets and obtain statistics on the same. The CC33xx device's firmware is able to capture packets from the air and report RF statistics. This feature can be used to enure the calibration, antennas, and radio on the device are working properly. This section shows how to use the RX statistics command for receiver (RX) testing.
Use the start_rx command to start the receive RF chain:
calibrator wlan0 cc33xx_plt start_rx -source_mac <SRC_ADDR> -ack_enable <ACK_ENABLE>
To print out the received statistics, use the get_rx_stats command:
calibrator wlan0 cc33xx_plt get_rx_stats
After receiving packets, this command will print statistics of the received packets to the command in a format similar to the following:
Total Received Packets: 0
FCS Errors: 0
MAC Mismatch: 0
Good Packets: 0
Average RSSI (SOC): 45
Average RSSI (ANT): 0
status: 19
PER: N/A # PER = Total Bad / Total Received
The following is an example sequence of how to start collecting packets with the receiver:
calibrator wlan0 plt power_mode on
calibrator wlan0 cc33xx_plt tune_channel 6 0 0
calibrator wlan0 cc33xx_plt start_rx -source_mac 04:05:05:05:05:04 -ack_enable 1
calibrator wlan0 cc33xx_plt get_rx_stats