Hey all,

Thanks to all that reply, but I haven't manage to get the multihop to work yet so I put in some debug code.

I put in some code into ReceiveMsg.receive() to toggle the yellow LED. So the yellow LED will blink when it receives any message. I also put in code to toggle the green LED when a message has been forwarded and the red LED when it fails to select a route via RouteSelect.selectRoute().

In an attempt to force the packets from node1 to multihop, I removed the antenna from its SMA connector and put right next to node2. Hopefully, the packet will go from node1 to node2 which will forward it base node.

using xlisten, I am only getting the following...

$ ../xlisten -r -b=mica2
xlisten Ver:$Id: xlisten.c,v 1.17 2004/11/18 04:45:10 mturon Exp $
Using params: [baud=0x1001] [raw]
/dev/ttyS0 input stream opened
7e42ffff117d5d0c020002002403ff00a903ffff9f42 [22]
7e42ffff117d5d0c020002002503ff00a803fffff873 [22]
7e42ffff117d5d0c020002002603ff00a703ffff636f [22]
7e42fffffa7d5d10020002002703ffff00020100fe000000d844 [26]
7e42ffff117d5d0c020002002803ff00a603ffffc687 [22]
7e42ffff117d5d0c020002002903ff00a603ffff15c0 [22]
7e42ffff117d5d0c020002002a03ff00a603ffff6008 [22]
7e42ffff117d5d0c020002002b03ff00a703ffff0739 [22]
7e42ffff117d5d0c020002002c03ff00a703ffff1ffe [22]
7e42ffff117d5d0c020002002d03ff00a703ffffccb9 [22]
7e42ffff117d5d0c020002002e03ff00a703ffffb971 [22]
7e42ffff117d5d0c020002002f03ff00a703ffff6a36 [22]
7e42ffff117d5d0c020002003003ff00a703ffff1cd2 [22]
7e42ffff117d5d0c020002003103ff00a603ffff7be3 [22]
7e42fffffa7d5d10020002003203ffff00020100fe000000297d5d [27]
7e42ffff117d5d0c020002003303ff00a803ffff87ce [22]
7e42ffff117d5d0c020002003403ff00a903ffff2b7f [22]
7e42ffff117d5d0c020002003503ff00aa03ffff24a3 [22]
7e42ffff117d5d0c020002003603ff00aa03ffff516b [22]
7e42ffff117d5d0c020002003703ff00aa03ffff822c [22]
7e42ffff117d5d0c020002003803ff00aa03ffff40f5 [22]

node2 is sending out SURGE_MSG and MHOP_MSG as well, but I am not receiving any messages from node1. On the actual motes, the yellow LEDS are toggling on both unit so they are receiving packets from each other, but the other leds are not toggling at all so they are not trying to forward any packets.

When will node2 know to forward the packet?

Tehn Yit Chin
Embedded System Engineer, Grey Innovation Pty. Ltd.


Ben Kelley wrote:
Generally, it should.  But sometimes it will take some work, in a lab
setting, to force it to multihop.  Sometimes turning the RF power down will
help, or bending the signal around doorways.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:tinyos-help-
[EMAIL PROTECTED] On Behalf Of Tehn Yit Chin
Sent: Monday, July 10, 2006 02:42
To: Aditya Bhave
Cc: tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] multihop problems

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
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-

help



_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to