Hi,

From what I've understood form CTP, yes, Receive.receive is in the Root
node only, as this event only happens in the root node. Snoop I haven't
used, but I understand it is used in the nodes.

Remember that in the root node you have to set the node as root, usually
at boot time:

call RootControl.setRoot();

These are the root and node ctp configuration instructions I use:

ROOT:
components CollectionC as Collector;  
App.CollectionControl -> Collector;
App.RootControl -> Collector;
App.Receive -> Collector.Receive[COL_ID];

NODE:
components CollectionC as Collector, new CollectionSenderC(COL_ID);
App.Send -> CollectionSenderC;
App.CollectionControl -> Collector;
App.Forward -> Collector.Intercept[COL_ID];
App.CtpInfo -> Collector;

COL_ID should be a number, and be the same in both root and node.

Finally, when you install application in motes you should give each mote
a different ID number.

So for example in IRIS motes:

make iris install.NUMBER mib510,com1

And number you decide what you want, different for each mote. I
generally use 0 for the root.

Manuel.
________________________________________
De: [email protected]
[mailto:[email protected]] En nombre de Luis
Carlos Duque Arcila
Enviado el: martes, 31 de marzo de 2009 2:27
Para: tinyHelp
Asunto: [Tinyos-help] Multihop got me confussed

hi everyone, 
I have a time triying with the multihop functionallity, i try with the
MultihopOsciloscope, but i rather work with an implementation based in
the TEP 119, but in both of the codes that i made, i reallize that is
not happening the Send.SendDone.
I also wanth to know something that is not so clear to me in the TEP
119: in the node aplication only implements the Send.send of the
collector???
and in the root only the Recive.recive and Recive.snoop???
i really get confused whit this when i re-read this tep and i think that
maybe here is my mistake..
I will be greatfull whit any kind of help that anyone of you can bring
me, an example or where can i look
I appreciate your attention..
thanks
LuisC

L:C:


________________________________________
Invite your mail contacts to join your friends list with Windows Live
Spaces. It's easy! Try it!



Este mensaje se dirige exclusivamente a su destinatario, y puede contener 
información confidencial sometida a secreto profesional, o cuya divulgación 
esté legalmente prohibida. Cualquier opinión en él contenida es exclusiva de su 
autor y no representa necesariamente la opinión de la empresa. Si ha recibido 
este mensaje por error, le rogamos nos lo comunique de forma inmediata por esta 
misma vía y proceda a su eliminación, así como a la de cualquier documento 
adjunto al mismo. El correo electrónico vía Internet no es seguro y no se puede 
garantizar que no haya errores ya que puede ser interceptado, modificado, 
perdido o destruido, o contener virus. Cualquier persona que se ponga en 
contacto con nosotros por correo electrónico se considerará que asume estos 
riesgos.

This e-mail is addressed exclusively to the recipient and may contain 
privileged information under a professional confidential agreement or it may be 
against the law to disclose its contents. Any opinion contained in it belongs 
exclusively to his/her author and does not necessarily reflect the company’s 
view. If you receive this e-mail in error, please let us know immediately (by 
return e-mail) and proceed to its destruction, as well as any document attached 
to it. The sending of e-mails through the Internet is not safe and, therefore, 
error-free communications cannot be guaranteed, as they can be intercepted, 
changed, misled or destroyed or they might contain a virus. Any user contacting 
us through e-mails shall be understood to be assuming these risks.



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

Reply via email to