WL127x RX Testing

From Texas Instruments Wiki
Jump to: navigation, search

Introduction

This section will review how to use the RX statistics command for receiving (RX) testing on the WL127x.

RX Statistics Overview

There are two modes of operation for fathering Rx statistics:

Default mode - use default values
Expert mode - all parameters need to be set manually


Default mode

In the default mode, the statistics will be reset with every test.

calibrator plt rx_statistics

Expert mode

calibrator wlan0 plt power_mode on
calibrator wlan0 plt start_rx_statcs
calibrator wlan0 plt get_rx_statcs
calibrator wlan0 plt stop_rx_statcs
calibrator wlan0 plt power_mode off

If you want to reset the statistic use the following sequence:

calibrator wlan0 plt power_mode on
calibrator wlan0 plt reset_rx_statcs
calibrator wlan0 plt power_mode off

Rx Statistics Use Case

Turn on calibrator plt:

calibrator wlan0 plt power_mode on

The expected result is:

[ 1071.235961] wl1271: power up
[ 1071.791046] wl1271: firmware booted in PLT mode (PLT 6.3.3.0.79)


Starting the Rx statistics:

calibrator wlan0 plt start_rx_statcs


Getting the statistics:

calibrator wlan0 plt get_rx_statcs

The expected result is:

root@am37x-evm:~# calibrator wlan0 plt get_rx_statcs

        Total number of pkts    - 98
        Accepted pkts           - 18
        FCS error pkts          - 51
        Address mismatch pkts   - 29
        Average SNR             - -6 dBm
        Average RSSI            - -72 dBm

Note that you can run the above command as many times as you wish, and you will notice that the "Total number of pkts" is growing up.
To stop the Rx statistics we call

calibrator wlan0 plt stop_rx_statcs


Turning off the calibrator is made by invoking:

calibrator wlan0 plt power_mode off