Hello,

 

I have some questions about the routing protocols with Cricket motes. I am 
trying to construct an application with 1 base station connected to a computer 
through a serial port and several motes. I want these motes to send some 
information to the base station using the Route library. 

The base station should send me this information through Hyperterminal.

I have implemented 2 programs, one for motes and another for the base station.

 

In the program for motes I have written:

 

components GenericCommPromiscuous as CommP, MultiHopRouter as multihopM, 
QueuedSend, TimerC;

 

  Main.StdControl -> multihopM.StdControl;
  Main.StdControl -> QueuedSend.StdControl;
  Main.StdControl -> TimerC;
  Main.StdControl -> CommP;

 

  NoBaseM.RouteControl -> multihopM;
  NoBaseM.Send -> multihopM.Send[AM_SURGEMSG];
  multihopM.ReceiveMsg[AM_SURGEMSG] -> CommP.ReceiveMsg[AM_SURGEMSG];

 

It seems that the program is sending something. I add a "call Leds.redOn()" in 
MultiHopEngineM.Send and the red led turn on.

 

 

In the program for the base station:

 

components GenericCommPromiscuous as CommP, MultiHopRouter as multihopM, 
QueuedSend;

 

  Main.StdControl -> multihopM.StdControl;
  Main.StdControl -> QueuedSend.StdControl;
  Main.StdControl -> CommP;

   

  BaseM.RouteControl -> multihopM;
  BaseM.Send -> multihopM.Send[AM_SURGEMSG];
  BaseM.Receive -> multihopM.Receive[AM_SURGEMSG];
  multihopM.ReceiveMsg[AM_SURGEMSG] -> CommP.ReceiveMsg[AM_SURGEMSG];

 

It seems that the base station is not receiving anything. I put some leds on to 
see if the program is entering in ReceiveMsg.receive but it did

not turn on. How can I get the receive data in the base station?

I have implemented the function CricketM.Receive to get the receive data and to 
send the data to my computer through the serial connection but it did not work.

 

Could you please tell me what is the problem?

 

I would like also to know if it is possible to send something from the base 
station to all motes using the routing protocols of Route library.

 

Thank you very much.

 

Sofia

 

 


 

_________________________________________________________________
Llévate Messenger en el móvil a todas partes ¡Conéctate!
http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to