On Wed, May 6, 2009 at 7:26 AM, Siva Sankar Gupta <[email protected]> wrote: > > Hello, > > I'm implementing a relaying protocol on the Tmote sky nodes. > > I have a testbed with 5 Tmote sky nodes and inorder to achieve multihop > routing, i assigned node id's with an offset of 5. > > I set the message count on the leds, which is increment when a message is > received by the node. > Example : > Node 1: 1,Node 2: 6, Node 3: 11, Node 4 ;16, Node 5; 21, where 1 is the > source node and 21 is the destination node. > Node 1 sends a FindRouteMsg with its id in the message and hop count to 0. > When node 2 and node 3 receive this message, they update this msg with its > id in the message and hop count to 1 and broadcast the message. This process > takes place until the message is received by the destination. When the > destination receives some FindRouteMsg's it finds the shortest one and > broadcasts the shortest message. > Result While Testing > The incoming FindRoute messges are stored in a buffer if (receiver-sender <= > 10). If the protocol works properly then the destination should have all the > routes in its buffer. The destination have only 2 routes(1-11-21 and > 1-6-16-21). But i have a problem at node 4, it does receive the message from > node 3, but when i forward the messages in the buffer to the PC for > testing,it does not display the message received from node 2 which should be > (1-11-16). But the leds show that it received 2 messages. > > I hope you are clear what is my problem.
Please take a look at how CTP (tos/lib/net/ctp) is implemented to get an idea on how to implement a multihop routing protocol. If you are just looking at the forwarding functionality, you can look at CtpForwardingEngineP.nc - om_p _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
