Hi,

I'm planning to send my messages as follows:

PC_1 -> Mote_1 -> Mote_2 -> ... ->Mote_N -> PC_2

Assuming I'm not afraid to run over my message, I want to avoid memory copy
and forward the same message_t directly from UART to radio and vice versa.
Moreover, what happens if I want to use PacketLink to automatically
retransmit the radio packets. The messages received from the UART don't have
the needed meta-data that is needed for PacketLink, don't they?

Can I do the following:
Receive.receive(message_t* msg, void* payload, uint8_t len)
{
   call PacketLink.setRetries(msg, DATA_MSG_MAX_RETRIES);
   call PacketLink.setRetryDelay(msg,  DATA_MSG_RETRY_INTERVAL_MILLI);

   call AMSend.send(some_address, msg, len));

   return msg;
}
While the PacketLink is provided by CC2420ActiveMessageC.

Actually, now I have confused myself :) But is this possible?

Thanks.

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

Reply via email to