Version 1 (modified by welsh, 10 years ago) (diff) |
---|
802.11 Reference Design
- Download
- Changelog
- FAQ
- Architecture
Using the Design
Benchmarks
- IFS Calibration
- Throughput
- Transmitter Characterization
- Receiver Characterization
- Pkt. Det. Min. Power Characterization
MAC
Upper-level
Lower-level
- PHY
Experiments Framework
- Packet Flow
- FPGA Architecture
- FPGA Resource Usage
- App Notes
- Other Resources
- License
- Changelog
802.11 Reference Design: TX/RX Log Capture Example
This example of the Experiments Framework uses two WARP v3 nodes, one configured as an AP, the other as a STA. The two_node_dual_flow_capture.py will capture a log file of LTG traffic flows between the AP and STA and write the data to an HDF5 log file for later processing. This example demonstrates how to:
- Control two WARP v3 nodes from one wlan_exp script
- Use the wlan_exp framework Local Traffic Generator (LTG) to create traffic
- Capture an HDF5 log file from the data logged by each node
The flow of the two_node_dual_flow_capture.py script is:
- Initialize two WARP v3 nodes
- Ensure nodes are configured as one AP, one STA and that the STA is associated with AP
- Start a fully-backlogged locally generated traffic (LTG) flow from AP -> STA
- Wait 30 seconds
- Start a fully-backlogged locally generated traffic (LTG) flow from STA -> AP
- Wait 30 seconds
- Stop the locally generated traffic (LTG) flow from STA -> AP
- Wait 30 seconds
- Stop the locally generated traffic (LTG) flow from AP -> AP
- Read the log data from each node and write an HDF5 log file
To run this example:
- Setup wlan_exp (see Getting Started for details)
- Configure two WARP v3 nodes with the 802.11 Reference Design bitstream- one AP, one STA
- Open the file in a text editor and change the NODE_SERIAL_LIST to match your serial numbers
- Open a Python shell
- CD to the Python_Reference/Examples directory from the expanded 802.11 Reference design archive
- Run python two_node_dual_flow_capture.py
The script will run for 2 minutes, then display its results:
TBD
Source: the script is included in the 802.11 Reference Design archive at Python_Reference/examples/txrx_log/two_node_dual_flow_capture.py.