Hello,
For the Surge application which uses the MultiHopEngineM and MultiHopLEPSM modules, we have defined 3 structs viz. SurgeMsg, TOS_MHopMsg, TOS_Msg.
All the structs have different variables declared in them. Can someone please explain the usage of each structure.
I tried to follow whats going on. I think the actual message that is being sent is the TOS_Msg. The addr is set in selectRoute(), either as a Broadcast address or by Msg->addr = gpCurrentParent->id. Then, what is the need of the parentaddr in SuregeMsg?
Also, what is TOS_MHopMsg used for? Is it only to maintain some values like sourceaddr, originaddr, hopcount, etc. in the node.
In SurgeM.nc, we have defined TOS_Msg gMsgBuffer. We pass &gMsgBuffer when we call the Send.getBuffer() and Send.send() functions. What is stored in this gMsgBuffer and where do we initialized it?
My questions may be trivial but am totally confused here. I'll really thankful if so! meone can explain the use of the three structures and how are they related to each other.
Thanks,
Yogesh.
For the Surge application which uses the MultiHopEngineM and MultiHopLEPSM modules, we have defined 3 structs viz. SurgeMsg, TOS_MHopMsg, TOS_Msg.
All the structs have different variables declared in them. Can someone please explain the usage of each structure.
I tried to follow whats going on. I think the actual message that is being sent is the TOS_Msg. The addr is set in selectRoute(), either as a Broadcast address or by Msg->addr = gpCurrentParent->id. Then, what is the need of the parentaddr in SuregeMsg?
Also, what is TOS_MHopMsg used for? Is it only to maintain some values like sourceaddr, originaddr, hopcount, etc. in the node.
In SurgeM.nc, we have defined TOS_Msg gMsgBuffer. We pass &gMsgBuffer when we call the Send.getBuffer() and Send.send() functions. What is stored in this gMsgBuffer and where do we initialized it?
My questions may be trivial but am totally confused here. I'll really thankful if so! meone can explain the use of the three structures and how are they related to each other.
Thanks,
Yogesh.
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn more.
_______________________________________________ Tinyos-users mailing list [email protected] http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users
