Re: [Tinyos-help] Question about lost of packets with MultiHop.

2006-08-01 Thread Conor Todd
Perhaps if you use the QueuedReceive mechanism, you'll not loose as many packets? Or, if you really want to be sure you're getting the packets and you don't want to touch the radio stack, try using the RadioCoordinator interface, which allows you to be notified every time a byte is recieved.
 - ConorOn 7/25/06, Munaretto, Daniel [EMAIL PROTECTED] wrote:
So what you mean is in tinyos-1.x is impossible to bypass this problem, isn'it?Or if there is a solution in 
1.x, in my project would be really important, should you explain it?Thanks very much,CheersDaniele-Original Message-From: Philip Levis [mailto:
[EMAIL PROTECTED]]Sent: Tue 7/25/2006 7:33 AMTo: José UlloaCc: Tinyos-help@Millennium.Berkeley.EDUSubject: Re: [Tinyos-help] Question about lost of packets with MultiHop.
On Jul 24, 2006, at 1:21 PM, José Ulloa wrote: Hi, we are working with a network with six or more hops, and tinyos-1.x. We have detected a lost of packet in a node, after
 receiving the packet and sending the corresponding ACK. ¿is this posible because the radio had two packet in the RXFIFO in the moment of read? I understand, when 
tinyos-1.x reads the first packet, the second will be descarted by the call of flushRXFIFO from the CC2420RadioM component. ¿is this really happening? ¿someone knows a solution for this?
Yes, this is really happening. It's a fairly nasty issue in the 1.xstack. The TinyOS 2.0 stack doesn't have this issue; it keeps trackof packets in the FIFO and spools them out one by one. If a packet
can't fit in the FIFO, then the radio doesn't acknowledge it.Phil___Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Question about lost of packets with MultiHop.

2006-07-26 Thread Peter Gade Jensen

Philip Levis wrote:

On Jul 25, 2006, at 3:33 AM, Krisakorn Rerkrai wrote:

Does this mean these two packets are both acknowledged but the second 
one in the FIFO is flushed out?


Yes.


Could I be so lucky, that this feature is documented somewhere(besides 
this thread)? ;o)


/Peter

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


RE: [Tinyos-help] Question about lost of packets with MultiHop.

2006-07-25 Thread Munaretto, Daniel
So what you mean is in tinyos-1.x is impossible to bypass this problem, isn'it?
Or if there is a solution in 1.x, in my project would be really important, 
should you explain it?
Thanks very much,
Cheers
Daniele

-Original Message- 
From: Philip Levis [mailto:[EMAIL PROTECTED] 
Sent: Tue 7/25/2006 7:33 AM 
To: José Ulloa 
Cc: Tinyos-help@Millennium.Berkeley.EDU 
Subject: Re: [Tinyos-help] Question about lost of packets with MultiHop.



On Jul 24, 2006, at 1:21 PM, José Ulloa wrote: 

 Hi, we are working with a network with six or more hops, and  
 tinyos-1.x. We have detected a lost of packet in a node, after  
 receiving the packet and sending the corresponding ACK. 
 ¿is this posible because the radio had two packet in the RXFIFO in  
 the moment of read? 
 I understand, when tinyos-1.x reads the first packet, the second  
 will be descarted by the call of flushRXFIFO from the CC2420RadioM  
 component. ¿is this really happening? ¿someone knows a solution for  
 this? 

Yes, this is really happening. It's a fairly nasty issue in the 1.x  
stack. The TinyOS 2.0 stack doesn't have this issue; it keeps track  
of packets in the FIFO and spools them out one by one. If a packet  
can't fit in the FIFO, then the radio doesn't acknowledge it. 

Phil 
___ 
Tinyos-help mailing list 
Tinyos-help@Millennium.Berkeley.EDU 

https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Question about lost of packets with MultiHop.

2006-07-25 Thread Krisakorn Rerkrai
Does this mean these two packets are both acknowledged but the second one in the FIFO is flushed out?On 7/25/06, Philip Levis 
[EMAIL PROTECTED] wrote:On Jul 24, 2006, at 1:21 PM, José Ulloa wrote:
 Hi, we are working with a network with six or more hops, and tinyos-1.x. We have detected a lost of packet in a node, after receiving the packet and sending the corresponding ACK. ¿is this posible because the radio had two packet in the RXFIFO in
 the moment of read? I understand, when tinyos-1.x reads the first packet, the second will be descarted by the call of flushRXFIFO from the CC2420RadioM component. ¿is this really happening? ¿someone knows a solution for
 this?Yes, this is really happening. It's a fairly nasty issue in the 1.xstack. The TinyOS 2.0 stack doesn't have this issue; it keeps trackof packets in the FIFO and spools them out one by one. If a packet
can't fit in the FIFO, then the radio doesn't acknowledge it.Phil___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Question about lost of packets with MultiHop.

2006-07-25 Thread Philip Levis

On Jul 25, 2006, at 3:33 AM, Krisakorn Rerkrai wrote:

Does this mean these two packets are both acknowledged but the  
second one in the FIFO is flushed out?


Yes.

Phil

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Question about lost of packets with MultiHop.

2006-07-25 Thread Philip Levis

On Jul 25, 2006, at 12:03 AM, Munaretto, Daniel wrote:

So what you mean is in tinyos-1.x is impossible to bypass this  
problem, isn'it?
Or if there is a solution in 1.x, in my project would be really  
important, should you explain it?


Of course it's not impossible: you can modify the stack. You want to  
modify the stack so that it does not flush the RXFIFO but instead  
spools out the packets.


Phil
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Question about lost of packets with MultiHop.

2006-07-24 Thread Philip Levis

On Jul 24, 2006, at 1:21 PM, José Ulloa wrote:

Hi, we are working with a network with six or more hops, and  
tinyos-1.x. We have detected a lost of packet in a node, after  
receiving the packet and sending the corresponding ACK.
¿is this posible because the radio had two packet in the RXFIFO in  
the moment of read?
I understand, when tinyos-1.x reads the first packet, the second  
will be descarted by the call of flushRXFIFO from the CC2420RadioM  
component. ¿is this really happening? ¿someone knows a solution for  
this?


Yes, this is really happening. It's a fairly nasty issue in the 1.x  
stack. The TinyOS 2.0 stack doesn't have this issue; it keeps track  
of packets in the FIFO and spools them out one by one. If a packet  
can't fit in the FIFO, then the radio doesn't acknowledge it.


Phil
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help