Hi,

I relatively new in TinyOS so please bare with me.

I am programming tmote sky with TinyOs 1.x. I loosing sent packet from the
computer in tmote while doing this:
---------------------------------------------------------------------
CONFIGURATION:
configuration TDMAC
{
}
implementation
{
 components Main,
  ...
    GenericComm as Radio, //Radio Communication
    UARTComm as Serial;  //Serial communication

  Main.StdControl -> Radio;
  Main.StdControl -> Serial;

 ...
 TDMAM.SubControl -> Radio;
 TDMAM.RadioSend -> Radio.SendMsg[1];
 TDMAM.RadioReceive -> Radio.ReceiveMsg[1];
 TDMAM.CommControl -> Radio;

 TDMAM.SerialSend -> Serial.SendMsg[2];
 TDMAM.SerialReceive -> Serial.ReceiveMsg[2];
}

MOLDULE:
module TDMAM
{
 provides interface StdControl;

 uses interface Timer;
 uses interface Leds;
 uses interface TimeSync;

 //Serial Communication
 uses interface SendMsg as SerialSend;
 uses interface ReceiveMsg as SerialReceive;

 //Radio Communicaion
 uses interface StdControl as SubControl;
 uses interface StdControl as CommControl;
 uses interface SendMsg as RadioSend;
 uses interface ReceiveMsg as RadioReceive;

...
}

I call SerialSend.send() first and just after RadioSend.send().
----------------------------------------------------------------------
I can retreive the data to the computer but SerialReceive.receive(...) is
not called when sent a message from the computer. Is there a conflict
somewhere?

I don't like having:
 uses interface SendMsg as SerialSend;
 uses interface ReceiveMsg as SerialRece
AND
uses interface SendMsg as RadioSend;
 uses interface ReceiveMsg as RadioReceive;

Is there anyway I can reduce it to one 'connection'. I would preferably have
the calls something like this:

Serial.send(...)
Serial.receive(...)
Serial.sendDone(...)
AND
Radio.send(...)
Radio.receive(...)
Radio.sendDone(...)

Can that be done? I tried many different variations but it didn't work for
me. But then again, I'm very new to nesc and tinyos. Any help would be
appriated.

Thanks

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

Reply via email to