== OFDM Reference Design - CSMA MAC Protocol == This application uses the OFDM Reference Design to build a wired-to-wireless bridge implementing the CSMA MAC protocol for the over-the-air link. It utilizes two WARP nodes, each connected via Ethernet to a separate PC. Every packet received on the WARP node's Ethernet interface is transmitted over the air, addressed to the other WARP node. Every packet received over the air is copied to the node's Ethernet interface. This bridging "tricks" the two PCs into believing they are connected directly over Ethernet. This application implements the same basic function as the [wiki:OFDMReferenceDesign/Applications/Bridge Bridge] application, but uses a more sophisticated protocol for wireless medium access. [[Image(OFDMReferenceDesign/Applications/Files:nomac_blockDiagram.png, 600)]] === Requirements === * 2 WARP SISO or MIMO kits (analog board in slot 4 optional) * 2 PCs with Ethernet interfaces === Setup === 1. Set the DIP switches on the WARP nodes to 0 and 1 1. Connect each WARP node directly to the Ethernet interface of the PCs 1. Configure the PC Ethernet interfaces with IP address on the same subnet (10.0.0.1 and 10.0.0.2, for example) 1. Generate the FPGA configuration file for the design using the OFDM Reference Design project and the [source:/ResearchApps/MAC/CSMAMAC CSMAMAC source code] 1. Configure both WARP nodes using the same download.bit 1. When it's working, the PCs will be able to ping each other, stream video (using [wiki:VLCStreaming VLC], for example), or any other point-to-point network application === Code === The code for this application is provided in [source:/ResearchApps/MAC/CSMAMAC csmaMac.c]. The default OFDM Reference Design project includes CSMAMAC as a software project.