WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2010-Jul-20 13:12:30

tan
Member
From: UW Madison
Registered: 2010-May-25
Posts: 81

Question about modifying Warp Mac

Hi Rice,

We want to make two modifications on the Warp Mac. First, we want to fill in our own payload which is from Video trace file. Second, we want the Mac header to carry extra information. Could you kindly point out where we should make these modifications in Warp Mac?

Thanks a lot,

Tan

Offline

 

#2 2010-Jul-20 14:33:14

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Question about modifying Warp Mac

The header is defined in warpphy.c (the phyHeader struct typedef). You can modify most of the header any way you want. The only exceptions:
-The fullRate and length fields must be left as-is. The PHY uses these values in hardware.
-The last two bytes must be left unused; they PHY overwrites these with the 16-bit checksum.

The rest of the fields (addresses, type, reserved) can be modified as needed.

For your video payload, is it be delivered via Ethernet? If so, I would recommend using the existing warpmac handling of Ethernet packets, and add your custom code to a dataFromNetworkLayer callback (just like nomac and csmamac).

Offline

 

Board footer