This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/WL1837MOD: No RSSI values shown for RX testing

Part Number: WL1837MOD

Tool/software: Linux

Hello,

I am running some WiFi RX testing on WL1837MOD. With a reference to http://processors.wiki.ti.com/index.php/WL18xx_RX_Testing, I have a script that issues the commands listed on the website in order (you can see it below). This takes 3 parameters <channel> <band> <bandwidth>. Passing 1 0 0 and 2 0 0 seems to be working with the get_rx_stats command because it prints out RSSI values. However, for any other channel, I can't seem to retrieve RSSI values even though it is able to receive packets. I varied the TX output power of a test set I have it connected to the chip as well. Is there any reason why WL1837MOD could be not printing out RSSI values for certain channels?

#!/usr/bin/env python2

import sys
import subprocess

def main():
        if len(sys.argv) == 4:
                channel = sys.argv[1]
                band = sys.argv[2]
                bandwidth = sys.argv[3]
        else:
                sys.exit("Please pass channel, band and bnadwidth arguments")

        subprocess.call("/scripts/wlan/wlan.sh start", shell=True)
        subprocess.call("ifconfig wlan0 down", shell=True)
        subprocess.call("calibrator wlan0 plt power_mode on", shell=True)

        subprocess.call("calibrator wlan0 wl18xx_plt tune_channel " + str(channel) + " " + str(band) + " " + str(bandwidth), shell=True)

        subprocess.call("calibrator wlan0 wl18xx_plt start_rx FF:FF:FF:FF:FF:FF FF:FF:FF:FF:FF:FF", shell=True)
        raw_input("Press Enter to get rx statistics...")
        subprocess.call("calibrator wlan0 wl18xx_plt get_rx_stats", shell=True)
        subprocess.call("calibrator wlan0 wl18xx_plt stop_rx", shell=True)

        subprocess.call("calibrator wlan0 plt power_mode off", shell=True)
        subprocess.call("ifconfig wlan0 up", shell=True)

if __name__ == '__main__':
        main()
# python RX.py 1 0 0
Starting WLAN...
OK
wlcore: down
wlcore: power up
wlcore: PHY firmware version: Rev 8.2.0.0.236
wlcore: firmware booted in PLT mode PLT_ON (Rev 8.9.0.0.69)
Calibrator:: Starting RX Simulation (Note that statistics counters are being reset)...
Press Enter to get rx statistics...
wlcore: testmode cmd: radio status=13356

RX statistics (status 0)
Total Received Packets: 9053
FCS Errors:             8699
MAC Mismatch:           0
Good Packets:           354
Average RSSI (SOC):     -70
Average RSSI (ANT):     -67
PER:                    0.960897     # PER = Total Bad / Total Received
Calibrator:: Stopping RX Simulation
wlcore: power down
wlcore: PHY firmware version: Rev 8.2.0.0.236
wlcore: firmware booted (Rev 8.9.0.0.69)
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
# python RX.py 6 0 0
Starting WLAN...
OK
wlcore: down
wlcore: power up
wlcore: PHY firmware version: Rev 8.2.0.0.236
wlcore: firmware booted in PLT mode PLT_ON (Rev 8.9.0.0.69)
Calibrator:: Starting RX Simulation (Note that statistics counters are being reset)...
Press Enter to get rx statistics...
wlcore: testmode cmd: radio status=17235

RX statistics (status 0)
Total Received Packets: 10029
FCS Errors:             9891
MAC Mismatch:           0
Good Packets:           138
Average RSSI (SOC):     0
Average RSSI (ANT):     0
PER:                    0.986240     # PER = Total Bad / Total Received
Calibrator:: Stopping RX Simulation
wlcore: power down
wlcore: PHY firmware version: Rev 8.2.0.0.236
wlcore: firmware booted (Rev 8.9.0.0.69)
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
# python RX.py 11 0 0
Starting WLAN...
OK
wlcore: down
wlcore: power up
wlcore: PHY firmware version: Rev 8.2.0.0.236
wlcore: firmware booted in PLT mode PLT_ON (Rev 8.9.0.0.69)
Calibrator:: Starting RX Simulation (Note that statistics counters are being reset)...
Press Enter to get rx statistics...
wlcore: testmode cmd: radio status=-4017

RX statistics (status 0)
Total Received Packets: 10000
FCS Errors:             3859
MAC Mismatch:           0
Good Packets:           6141
Average RSSI (SOC):     0
Average RSSI (ANT):     0
PER:                    0.385900     # PER = Total Bad / Total Received
Calibrator:: Stopping RX Simulation
wlcore: power down
wlcore: PHY firmware version: Rev 8.2.0.0.236
wlcore: firmware booted (Rev 8.9.0.0.69)
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready