Sumit,

TOSBase and Surge are not compatible. You need to install Surge on all your
motes with each one having a unique ID and the base station should be
configured with an ID of 0.

Adesola

-----Original Message-----
Message: 3
Date: Fri, 15 Sep 2006 15:31:50 +0200
From: "Ole Bischoff" <[EMAIL PROTECTED]>
Subject: Re: [Tinyos-help] Surge Algorithm Doubt (code attached)
To: "Sumit Gupta" <[EMAIL PROTECTED]>
Cc: TinyOs Help List <tinyos-help@Millennium.Berkeley.EDU>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Hy Sumit,

I'm not really familiar with Surge, but I think all of your motes (including
Basestation) should run with Surge. And your Basestation is the only mote
with TOS_LOCAL_ADDRESS = 0.
Perhaps that is the reason for your HopCount = ROUTE_INVALID (=0xff).

Regards,
            OLE

  ----- Original Message -----
  From: Sumit Gupta
  To: tinyos-help@Millennium.Berkeley.EDU
  Sent: Friday, September 15, 2006 11:06 AM
  Subject: [Tinyos-help] Surge Algorithm Doubt (code attached)


  I am also attaching file MultiHopLEPSM.nc. Please advice.

  I want to say that I have made once change in file. I replaced qsort
function with a nested for loop and also added nucleus code. you can find it
easily.

  Please see and tell if I am doing anything wrong.

  Regards,
  Sumit


  On 9/15/06, Sumit Gupta <[EMAIL PROTECTED]> wrote:
    Hi,

    I am trying to figure out one thing since last two days about Surge
Algorithm. I am trying to get data from network using nucleus which is
working fine but I am not satisfying about one attribute. 

    In my testing I am using only two motes: one running TOSBase and other
Surge application. Now as a result the mote should have TOSBase as its
parent and hopcount should be 0 (correct me if I am wrong). 

    I have debugged every line which I could of  the application but
couldnot figure out why its showing hopcount to base as 255 (or 0xFF). I
dont understand why it is happening. The routing algorigthm is built in
MultihopLEPSM.nc located in .../tos/lib/Route/ directory. Anyone who has
knowledge about this can tell me about it. I am getting following data from
my queries.


    [EMAIL PROTECTED] /opt/tinyos-1.x/apps/SurgeNucleus/build/telosb
    $ nquery HopCount RoutingParent InPacket OutPacket
    log4j:WARN No appenders could be found for logger
(net.tinyos.nucleus.NucleusInt
    erface).
    log4j:WARN Please initialize the log4j system properly.
    10: HopCount = 255
    10: InPacket = 7
    10: OutPacket = 6
    10: RoutingParent = 0

    [EMAIL PROTECTED] /opt/tinyos-1.x/apps/SurgeNucleus/build/telosb



    Every thing looks fine except HopCount. I have spent too much time in
it. If you figure out where to change or see the code then let me know. Or
if you believe that it is right value according to algorithm then please
explain. Please help.

    Regards,

    Sumit

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

Reply via email to