I used controlled flooding. Another way to do routing is to build routing tables, something i think surge may be doing, wherein the packets try and follow an "optimum" path to the destination. But the code outline will be similar in this case as well.
On 7/10/06, Tehn Yit Chin <[EMAIL PROTECTED]> wrote:
Thanks for the information.
Does the multihop works out-of-the-box with the surge application?
Tehn Yit Chin
Embedded System Engineer, Grey Innovation Pty. Ltd.
Aditya Bhave wrote:
> A packet will multi-hop if node2 is not within radio range of base. Its
> packet will reach node1 only who then has to send it to the base station.
>
> Im not really able to understand your question. To find out neighbors, have
> each mote broadcast a special packet
>
> typedef struct Neighbor
> {
> int src; /* source mote ID */
> int hopCount; /* initilaize to 0 */
> }
>
> If a mote A receives a packet of the above type from node B with hopCount
> set to 0, it can conclude that B is its neighbor. Also by controlled
> flooding, these packets need to be multihopped across the network with the
> hopCount being incremeneted each time. In this way, motes can get an idea
> about the topology of the network.
>
> To start the nodes in sequence, let each node wait for a START message from
> the base station i.e they are all in receive mode not doing anything till
> the START message arrives. The base station will transmit the START
> message.
>
> On 7/10/06, Tehn Yit Chin <[EMAIL PROTECTED] > wrote:
>
>>
>> Hi,
>>
>> I have the following setup
>>
>> node2 <--> node1 --> base
>> | ^
>> +--------------------+
>>
>> node2 and node1 has the surge application installed.
>> base has the TOSBase installed.
>>
>> No matter what I try, I can't seem to get a packet to multihop from
>> node2 to node1 to base. All the packets appears to single hop to the
>> base.
>>
>> A couple of questions.
>>
>> 1) Does the base node needs to transmit for node1 to work out one of its
>> neighbours is node 0? One of things I tried is to install surge into
>> base node but this does not appears to be cause the packet to multihop.
>>
>> 2) Will the packet multihop with only two nodes in the network?
>>
>> 3) Is there a power up sequence? ie base node first, and then node 1 and
>> the node 2?
>>
>> 4) What are the conditions that will cause a packet to multihop?
>>
>> Any suggestion is appreciated.
>>
>> --
>> Tehn Yit Chin
>> Embedded System Engineer, Grey Innovation Pty. Ltd.
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
--
regards,
Aditya Bhave
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
