Changes between Version 1 and Version 2 of 802.11/wlan_exp/examples/log_capture_continuous


Ignore:
Timestamp:
Apr 13, 2014, 3:29:34 PM (10 years ago)
Author:
welsh
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 802.11/wlan_exp/examples/log_capture_continuous

    v1 v2  
    77= 802.11 Reference Design Experiments Framework: AP Log Capture Example =
    88
    9 This example of the Experiments Framework provides an interactive script for initializing one WARP v3 node, waiting, then retrieving the node's log and writing it to a file.
     9This example of the Experiments Framework provides an interactive script for initializing one WARP v3 node as an AP, waiting, then retrieving the node's log and writing it to an HDF5 log file.
    1010
    11 This script is ideal for capturing a log file with Tx and Rx events recorded from Wi-Fi clients using with the AP.
     11This script is ideal for capturing a log file with Tx and Rx events recorded from Wi-Fi clients using the 802.11 Reference Design AP.
    1212
    1313To use this script:
    14 1. Configure one WARP v3 node using the 802.11 Reference Design AP bitstream
    15 1. update s/n
    16 1. Run
     14 * Setup wlan_exp (see [wiki:../../GettingStarted Getting Started] for details)
     15 * Configure one WARP v3 node using the 802.11 Reference Design AP bitstream
     16 * Open the file in a text editor and change the {{{NODE_SERIAL_LIST}}} to match your serial numbers
     17 * Open a Python shell
     18 * CD to the '''Python_Reference/examples/txrx_log''' directory from the expanded 802.11 Reference design archive
     19 * Run {{{python log_capture_ap_interactive.py}}}
     20
     21The script will run until you type either 'q', 'quit' or press 'Ctrl-C' and then write the log file:
    1722{{{
    18 output
     23Initializing experiment
     24
     25Reseting the network config for all nodes on subnet 10.0.0.
     26Initializing W3-a-00006 as Node 0
     27Initializing the time of all nodes on 10.0.0 to: 0.0
     28Adding current time to log for nodes on 10.0.0
     29
     30Run Experiment:
     31
     32Use 'q' or Ctrl-C to end the experiment.
     33
     34  NOTE:  In IPython, press return to see status update.
     35
     36Duration:       270 sec     Log Size:    Node 0      =     419176 bytes     q
     37
     38Ending experiment
     39
     40Writing 420008 bytes of data to log file...
     41    log_files/ap_interactive_capture.hdf5
     42Done.
     43
     44Experiment Finished.
    1945}}}
    20 1. When done, type {{{quit}}} then enter. Script will retrieve log and write it to a file named {{{log file}}}.
    2146
    22 After running this script you can analyze the log file using the wlan_exp log tools. Refer to the [wiki:../txrx_log txrx_log examples] to get started processing your log file.
     47NOTE:  By default, the script will try to use the file name:  {{{log_files/ap_interactive_capture.hdf5}}}.  You are free to override this behavior on the command line:  {{{python log_capture_ap_interactive.py <my_file_name>}}}.  Just remember that the script uses relative paths from the '''Python_Reference/examples/txrx_log/''' directory so if you are trying to run the script from a different directory, you may see:
     48{{{
     49ERROR: Logfile log_files/ap_interactive_capture.hdf5 not able to be created
     50}}}
     51in this case, either change to the correct directory, or supply an appropriate file name.
     52
     53After running this script you can analyze the log file using the wlan_exp log tools. Refer to the [wiki:../txrx_log_analysis txrx_log analysis examples] to get started processing your log file.
     54
     55----
     56'''Source:''' the script is included in the 802.11 Reference Design archive at '''Python_Reference/examples/txrx_log/log_capture_ap_interactive.py'''.