Changes between Version 2 and Version 3 of 802.11/wlan_exp/examples/txrx_log_analysis
- Timestamp:
- Apr 13, 2014, 5:02:00 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
802.11/wlan_exp/examples/txrx_log_analysis
v2 v3 9 9 This 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. 10 10 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.11 By 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. 12 12 13 13 These examples demonstrates how to: … … 31 31 * Open a Python shell 32 32 * 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. 34 40 35 41 The script will run, then display its results: … … 83 89 }}} 84 90 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.hdf588 }}}89 91 90 92 ---- … … 107 109 * Open a Python shell 108 110 * 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. 110 118 111 119 The script will run, then display its results: … … 160 168 }}} 161 169 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.hdf5165 }}}166 167 170 ---- 168 171 '''Source:''' the script is included in the 802.11 Reference Design archive at '''Python_Reference/examples/txrx_log/log_process_details.py'''.