[Tinyos-help] Acknowledgments and base station

Oussama Chougna o.chougna at phi-i.com
Wed Jun 20 09:06:13 PDT 2007


Hi,

I'm using the CC2420Basestation, but i don't get the acks back to my sending
mote. I check acks on the mote like this:

	event void AMSend.sendDone( message_t * thisMsg, error_t error )
	{
	 	if (call ack.wasAcked(thisMsg))
	 	{
	 		//it is acked
	 	}
	 	else
	 	{
	 		//no ack received
	 	}

Is to early to check it in the sendDone event?
The same is done in one of the test applications (TestAcks) which belong to
the TinyOS2 tree.

Thank you

-----Original Message-----
From: Steve McKown [mailto:rsmckown at yahoo.com] 
Sent: woensdag 20 juni 2007 18:01
To: tinyos-help at millennium.berkeley.edu
Cc: Oussama Chougna
Subject: Re: [Tinyos-help] Acknowledgments and base station

On Wednesday 20 June 2007 09:06:17 am Oussama Chougna wrote:
> With the PacketAcknowledgements interface in tinyos2 one could request
acks
> right? But should I modify the base station to send back acks?

If your base station uses the CC2420 radio, you can use the
BaseStationCC2420, 
which turns on auto acknowledgments in the radio hardware.




More information about the Tinyos-help mailing list