[Tinyos-help] what send and receive?
Urs Hunkeler
uhu at gmx.ch
Thu Jan 8 22:55:38 PST 2009
Hi Lorena,
How do you know it's not the same? Do you use a packet sniffer? Do you
ever transmit the right packet, but after a while it does not work anymore?
I haven't found any obvious problems. But I have found a potential
problems (maybe not directly related to sending a wrong packet):
When you receive more than RETRA_QUEUE_LEN messages before being able to
send them again, you overwrite messages, but retraCount is still
increased. When you then start sending messages, you would be trying to
send more messages than are actually in the queue, letting you
retransmit wrong messages, which might also lead to your variables being
out of sync.
Cheers,
Urs
PS: When checking for error conditions, I would not use ledsXToggle(),
but rather ledsXOn(), as it is possible that an error condition occurs
multiple times (sometimes in rapid succession). With ledsXToggle() you
might miss an error condition, with ledsXOn() you know when there is a
problem.
Lorena Aguirre wrote:
> Hello again :)!!!
>
> I'm trying receive a packet and send it, but what I'm sending it's not the
> same that I receive :(
> Could anyone help please?
>
> Thank you very much!!!
> Lorena
More information about the Tinyos-help
mailing list