[ns] get lqi and ED since upper layers

Diego Fernando Bermudez x-manotas at hotmail.com
Mon Jul 7 16:03:38 PDT 2008


 Hi ns-users

 I'm working in a personal project, and i have to modify some part of protocol's code to can get LQI and ED (energy detection) values.

 i would like to know how to obtain this information since the uppers layers (the routing protocol, for example), i have read the 802.15.4 standard but it doesn't explain how to do it.

 the 802.15.4 standard only says LQI value can be obtained in the function PD_DATA_indication but no more

 void Phy802_15_4::PD_DATA_indication(UINT_8 psduLength,Packet *psdu,UINT_8 ppduLinkQuality)
 {
        //refer to sec 6.7.8 for LQI details
        hdr_lrwpan* wph = HDR_LRWPAN(psdu);

        wph->ppduLinkQuality = ppduLinkQuality;

    uptarget_->recv(psdu, (Handler*) 0);
 }


 for example, i have in my protocol code

 void PROTO::recv(Packet *p)
 {
 //in this place i want to get the LQI and ED,
 //something like

 mynode.lqi = ppdulinkQuality

 }


 PLEASE... if some person has made it some time, and can explain me this step, i'll be so sooo thankful.

 TK. Bye

_________________________________________________________________
Do more with your photos with Windows Live Photo Gallery.
http://www.windowslive.com/share.html?ocid=TXT_TAGLM_Wave2_photos_022008



More information about the Ns-users mailing list