[ns] MAC receive
Xuan Chen
xuanc@ISI.EDU
Sun Apr 28 10:40:01 2002
You may want to have a look at the timers involved, such as mhRecv.
Hope it helps,
-chen
On Sun, 28 Apr 2002, mani srinivas potnuru wrote:
>
> Hi,
>
> I am trying to find out how much the power is consumed in the receving a
> packet in the MAC ..For that my RADIO model has to know when it started
> receiving and when it finished ...
>
> can anybody pls point out where in mac-802_11.cc the starting and ending
> of the receive packet events taking place (with collisions taking care
> of). I gone through the all the code and came up with this. I just want to
> make sure that i got it correctly..
>
>
>
> /* start of receive */
> 1166 in mac-802_11.cc
> if(rx_state_ == MAC_IDLE) {
> SET_RX_STATE(MAC_RECV);
> }
>
> /* end of receive */
> 500 in mac-802_11.cc in rx_resume() function..
> SET_RX_STATE(MAC_IDLE);
>
>
> is this correct ..
>
>
> TIA
> Mani
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> "It is better to keep your mouth shut and appear
> stupid than to open it and remove all doubt."
> --Mark Twain
>
> "Today is a gift, that's why it is called the PRESENT."
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Mani S Potnuru
> Research Assistant,
> Parallel Programming Lab,
> Dept. of Comp Sci,
> UIUC.
> Ph (O) : 217-333-5827 (H) 217-398-8545
>
>
--
Xuan Chen
USC/ISI