I guess I'm not understanding how MVirus works.  I've looked at the latest Mate' code and I see how MHandlerStore sits on top of MVirus.  The only hooks that I see MHandlerStore has with MVirus is the registerCapsule command and handling the MVirus events. 

The problem I have is understanding how to introduce a new capsule that should be propogated throughout the network.  Does registerCapsule() command perform this duty? 

I understand the part that the versions array will be initialized to zeros, but how do you let MVirus know that you have a new capsule that needs to be propogated?  How do you update the version number?

What I've done so far is to take your MVirus implementation and write it in the latest version of TinyOS.  I would like to use your algorithm to efficiently brodcast data and commands to a network of motes.  I'm not using it in the context of Mate'.  Right now I just have a simple app that uses MVirus and I'm trying to use it to disseminate commands.  I must not be wiring up all the proper components to get it working correctly?

Thank you for your time,
Franc

On 11/28/05, Philip Levis <[EMAIL PROTECTED]> wrote:
On Nov 28, 2005, at 1:17 AM, Franc Tan wrote:

> Hello,
>
> I'm trying to replicate the Trickle algorithm used in Mate' and use
> it in one of my applications.  But I am having problems however
> understanding how the MateCapsuleVersion versions[MATE_CAPSULE_NUM]
> array gets initialized in MVirus.nc.  Does anyone know how to
> initially set the versions[] array?

Why do you need to initialize it? The array will be filled with
zeroes when the node boots. This means that if any node nearby has
newer code, the just-booted node will request it.

Phil

-------

"We shall not cease from exploration
And the end of all our exploring
Will be to arrive where we started
And know the place for the first time."

- T. S. Eliot,  'Little Gidding'



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

Reply via email to