hi,

I am still having problem. As per ur instructions I ran SurgeTelos on mote id=0 and other mote had Surge application runninig on it. Now when I ran a query no out put was shown in console window where as Serial Forwarder shown one line out put on its window "write failed". So it means I have to run base with TOSBase but I still couldnot get only HopCounts in right order, every other output is in order so far.

Please advice.

Regards,
Sumit

On 9/15/06, Sumit Gupta <[EMAIL PROTECTED]> wrote:
Thanks, I will try that but I am not sure whether it will work with nucleus because according to nucleus documentation it requires only TOSBase application running on mote attached to computer to retrieve data.

I will get back to if it give some problem.

Regards,
Sumit.


On 9/15/06, Ole Bischoff < [EMAIL PROTECTED]> wrote:
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
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
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to