On Tue, Apr 19, 2011 at 9:31 AM, Xiaohui Liu <[email protected]> wrote:
> Hi everyone,
> A packet is sent with AMSenderC[AM_TYPE].Send.send and it has a payload of,
> say, 0xFF. After the packet is received by
> AMReceiverC[AM_TYPE].Receive.receive, sometimes I find it has a different
> payload (i.e., not 0xFF). But the probability for this to happen is low,
> around 1 out of 1000 packets. Is this expected in TinyOS or does this mean
> there is something wrong with my code? In general, can I regard the payload
> of a packet received by AMReceiverC[AM_TYPE].Receive.receive is the same as
> its payload when sent by AMSenderC[AM_TYPE].Send.send? Or should I add some
> more error-detection or even correction to ensure this assumption? Thanks.

As long as your error detection or correction can guarantee these
properties. Most likely you will be able to increase the probability
of detection or correction but it would be hard to guarantee that.

- om_p

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

Reply via email to