Changes between Version 6 and Version 7 of 802.11/wlan_exp/examples


Ignore:
Timestamp:
Apr 10, 2014, 2:47:53 PM (10 years ago)
Author:
murphpo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 802.11/wlan_exp/examples

    v6 v7  
    55[[TracNav(802.11/TOC)]]
    66
    7 = 802.11 Reference Design: Experiment Examples =
     7= 802.11 Reference Design: Experiment Framework Examples =
    88
    9 == AP-to-STA Throughput ==
     9We have created a number of example scripts that demonstrate various features of the Experiments Framework.
     10||=  Example  =||=  Requirements  =||=  Description  =||
     11|| [wiki:./blink_node_leds Blink Node LEDs] || 1 or more nodes || Blinks the hex display LEDs on all discoverable nodes ||
     12|| Aggregate Throughput || 2 nodes || Calculates throughput from one AP to one STA using local traffic generator (LTG) and wlan_exp to read Tx/Rx statistics ||
     13|| Tx/Rx Log || 2 nodes || Generates traffic flows between an AP and STA using LTGs, retrieves the logs from both nodes and processes logs to calculate detailed statistics ||
     14|| Channel Estimate Viewer || Log file with Rx event || Extracts OFDM Rx events from a log file, saves them to a structured array, imports the array into MATLAB and displays the channel estimates for every received packet. ||
    1015
    11 This example uses two WARP v3 nodes running the 802.11 Reference Design. One node is configured as an AP, the other as a station. The station node is associates with the AP at boot.
    12 
    13 This script uses the txrx_stats data in the reference design to calculate through in a unidirectional flow. The AP generates a fully backlogged flow of packets addressed to the station. The station counts how many bytes it has received from the AP. The Python script polls the station twice over a period of 10 seconds, recording the txrx_stats reports before and after. It then computes the number of new bytes received and the time span between reports. The script uses the timestamps reported by the node in the txrx_stats report to calculate the time span. This removes any dependence on the PC-nodes link in computing the denominator for the throughput calculation.
    14 
    15 The Python source code is shown below. The source file is in the repository: [source:/ReferenceDesigns/w3_802.11/python/warpnet_example_wlan_throughput.py]
    16 
    17 [[Include(source:/ReferenceDesigns/w3_802.11/python/warpnet_example_wlan_throughput.py)]]
    18 
    19 == 2-Node WLAN Log ==
    20 This example exercises the logging subsystem of the wlan_exp framework. Two nodes (one AP, one STA) exchange traffic for a short period. Both nodes write log entries for every Tx and Rx event. The Python controller then retrieves these logs and writes them to files.
    21 
    22 A second Python script then loads these files and parses them into arrays indexed by log entry type. The script then calculates some basic statistics about the log entries.
    23 
    24 The two Python scripts are:
    25  * [source:/ReferenceDesigns/w3_802.11/python/warpnet_example_wlan_log_read.py] - Configures 2 nodes, generates some traffic then retrieves the node logs
    26  * [source:/ReferenceDesigns/w3_802.11/python/warpnet_example_wlan_log_parse.py] - Parses the log files created by the previous script