Changes between Version 2 and Version 3 of 802.11/wlan_exp/examples/txrx_log_analysis


Ignore:
Timestamp:
Apr 13, 2014, 5:02:00 PM (10 years ago)
Author:
welsh
Comment:

--

Legend:

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

    v2 v3  
    99This set of examples of the Experiments Framework explores the information contained in the HDF5 log files.  The first example, log_process_summary.py, will show at a quick summary of the the experiment, packets per rate for both Tx and Rx, Tx MPDU packet counts and number of bytes, and finally Rx packet counts and number of bytes.  The second example, log_process_details.py, goes a bit deeper and looks at the number of re-transmissions as well as the average time it took to transmit a packet.  Finally, the last example, log_process_throughput_vs_time.py, utilizes the [http://pandas.pydata.org/ pandas framework] to plot the throughput vs time of the AP and station.
    1010
    11 By default these scripts will use [wiki:../../sample_data sample data] but generally you can override this behavior with a command line argument or by modifying the *LOGFILE variable in the script.
     11By default these scripts will use [wiki:../../sample_data sample data] and you can specify any of the sample data files on the command line.  However, to process your own log files, you can override this behavior with a command line argument or by modifying the *_LOGFILE variable in the script.
    1212
    1313These examples demonstrates how to:
     
    3131 * Open a Python shell
    3232 * CD to the '''Python_Reference/examples/txrx_log''' directory from the expanded 802.11 Reference design archive
    33  * Run {{{python log_process_summary.py}}}
     33 * To see the output from the sample data:
     34   * Run {{{python log_process_summary.py raw_log_dual_flow_ap.hdf5}}}
     35   * Run {{{python log_process_summary.py raw_log_dual_flow_sta.hdf5}}}
     36   * Run {{{python log_process_summary.py raw_log_one_flow.hdf5}}}
     37 * To see the output from your own log file:
     38   * Run {{{python log_process_summary.py <my_hdf5_log_file>}}}
     39     * For example run: {{{python log_process_summary.py ap_two_node_two_flow_capture.hdf5}}} to see the [wiki:../txrx_log_capture two node, two flow log capture] example.
    3440
    3541The script will run, then display its results:
     
    8389}}}
    8490
    85 To run the script on your own file, for example the one created by the [wiki:../txrx_log_capture two node, two flow log capture] example, then you would just need to run:
    86 {{{
    87 python log_process_summary.py log_files/ap_log_stats.hdf5
    88 }}}
    8991
    9092----
     
    107109 * Open a Python shell
    108110 * CD to the '''Python_Reference/examples/txrx_log''' directory from the expanded 802.11 Reference design archive
    109  * Run {{{python log_process_details.py}}}
     111 * To see the output from the sample data:
     112   * Run {{{python log_process_details.py raw_log_dual_flow_ap.hdf5}}}
     113   * Run {{{python log_process_details.py raw_log_dual_flow_sta.hdf5}}}
     114   * Run {{{python log_process_details.py raw_log_one_flow.hdf5}}}
     115 * To see the output from your own log file:
     116   * Run {{{python log_process_details.py <my_hdf5_log_file>}}}
     117     * For example run: {{{python log_process_details.py ap_two_node_two_flow_capture.hdf5}}} to see the [wiki:../txrx_log_capture two node, two flow log capture] example.
    110118
    111119The script will run, then display its results:
     
    160168}}}
    161169
    162 To run the script on your own file, for example the one created by the [wiki:../txrx_log_capture two node, two flow log capture] example, then you would just need to run:
    163 {{{
    164 python log_process_details.py log_files/ap_log_stats.hdf5
    165 }}}
    166 
    167170----
    168171'''Source:''' the script is included in the 802.11 Reference Design archive at '''Python_Reference/examples/txrx_log/log_process_details.py'''.