On Thursday 21 June 2007 04:39:29 am Oussama Chougna wrote:
> I found a solution but this is very very strange to me.
> When calling this:
> call AMSend.send(BASESTATION_ADDR, &pkt, 0); //The size of the payload
> isn't 0!
> Acknowledgments are received! :-)
>
> And when calling this:
> call AMSend.send(BASESTATION_ADDR, &pkt, call Packet.payloadLength(&pkt));
> Acknowledgments are not received! :-(
>
> Calling this:
> call AMSend.send(BASESTATION_ADDR, &pkt, sizeof(my_msg));
> Acknowledgments are not received! :-(
>
> What's going on here? Wiring problem?

I have no idea.

>
> components ActiveMessageC;
>       components new AMSenderC(6);
>       components new AMReceiverC(6);
>
>       ADCSamplingM.AMSend -> AMSenderC;
>       ADCSamplingM.Receive -> AMReceiverC;
>       ADCSamplingM.PacketAcknowledgements -> ActiveMessageC;
> ADCSamplingM.Packet -> AMSenderC;
>
>
> Should i wire Packet to ActiveMessageC.Packet or AMSenderC.Packet or
> AMReceiverC.Packet? Is there a difference?
>
> Should i wire PacketAcknowledgements to
> ActiveMessageC.PacketAcknowledgements or AMSenderC.PacketAcknowledgements?
> Is there a difference?
>

Not sure if this will help.  I use the PacketAcknowledgements interface 
provided by AMServerC.  I don't use the Packet interface; the Send interface 
includes getPayload and maxPayloadLength methods, which has been suitable for 
me.

> -----Original Message-----
> From: Steve McKown [mailto:[EMAIL PROTECTED]
> Sent: woensdag 20 juni 2007 22:49
> To: David Moss
> Cc: 'Oussama Chougna'; [email protected]
> Subject: Re: [Tinyos-help] Acknowledgments and base station
>
> On Wednesday 20 June 2007 10:26:50 am David Moss wrote:
> > I haven't looked at the code in awhile, but we may need some
> > modifications
> >
> > here.  If acks are not being sent from the base station, then the reason
> >
> > why is because the base station accepts all packets from all addresses.
> >
> > Therefore, it disables auto-acks to prevent it from spewing out false
>
> ack's
>
> > to every transmitter in the area.
> >
> >
> >
> > I'll take a look to see what we can do.   This behavior should be altered
> >
> > to let the base station send back acks if the destination address == the
> >
> > base station address.
>
> FYI, I am getting acks from the BaseStationCC2420 code from tos2.0.0.  My
>
> nodes only send to or receive from the gateway node, so I might not see all
>
> the potential ack problems.
>
> > -David
> >
> >
> >
> >
> >
> > -----Original Message-----
> >
> > From: [EMAIL PROTECTED]
> >
> > [mailto:[EMAIL PROTECTED] On Behalf Of Oussama
> >
> > Chougna
> >
> > Sent: Wednesday, June 20, 2007 9:06 AM
> >
> > To: 'Steve McKown'; [email protected]
> >
> > Subject: RE: [Tinyos-help] Acknowledgments and base station
> >
> >
> >
> > 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:[EMAIL PROTECTED]
> >
> > Sent: woensdag 20 juni 2007 18:01
> >
> > To: [email protected]
> >
> > 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.
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > Tinyos-help mailing list
> >
> > [email protected]
> >
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> !DSPAM:467a784511432051017194!


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

Reply via email to