Hello all : today , i spend some time reading the LinkEstimatorP and have soem questions about it : 1.in LinkEstimator.h,the struct linkest_footer has an array member neighborList which is the type of neighbor_stat_entry_t and the size is one. but at line 130 in file LinkEstimatorP "footer->neighborList[j].ll_addr = NeighborTable[k].ll_addr; footer->neighborList[j].inquality = NeighborTable[k].inquality" , the variable "j" can be 0 to maxEntries . i can't understand this. can somebody give me an explain ? 2. In the file LinkEstimatorP.nc, there is a function "linkest_footer_t* getFooter(message_t* m, uint8_t len)" ,it return the address of neighbor entries. i want to what is meaning of the parameter len ? I have seen TEP124 , it said the LEEP frame includes a header, the payload and a footer . In my opinion , the len should be the length of a header and the payload . if my opioion is right , i still have a question. Is the parameter len in the function of addLinkEstHeaderAndFooter(message_t *msg, uint8_t len) the same as the one in getFooter ? if yes , i have doubt to the sentence "maxEntries = ((call SubPacket.maxPayloadLength() - len - sizeof(linkest_header_t)/sizeof(linkest_footer_t))" in addLinkEstHeaderAndFooter , because the len includes the length of the header so i think it should be " maxEntries = ((call SubPacket.maxPayloadLength() - len)/ sizeof(linkest_footer_t))" . am i right ? 3.in the function addLinkEstHeaderAndFooter in LinkEstimatorP.nc, it defines a pointer hdr which points to the header of the payload , then it gives some value to the field of seq and flag. if the payload is not null and have some useful data, does it cover the primary data with the header? i really can't understand. 4.what is the meaning of "Data-driven Link Quality" and "Beacon-driven Link Quality" ? what are the functions of them and what are the differcnces between them ? Thank you!!
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help