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

Attachment: MultiHopLEPSM.nc
Description: Cdf file

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

Reply via email to