On 4/27/07, Romain Thouvenin <[EMAIL PROTECTED]> wrote:
On 4/27/07, Urs Hunkeler <[EMAIL PROTECTED]> wrote:
> Hi Romain,
>
> Just two wild ideas:
>
> - Maybe the simulator filters packets differently than the real
> implementation. You could be sending packets to the wrong mote id and
> the simulator would let them pass (the routing packets would pass as
> maybe they are sent as broadcast).
That makes sense. I already made some verifications in that direction,
but I'll investigate deeper.
>
> - Maybe the payload is too long. The simulator might not care, but the
> real implementation probably would just drop the packets. I vaguely
> remember that there was once a message on this mailing-list that TinyOS
> silently drops overlong packets.
I had this idea too, but the data packets are 16 bytes long and the
routing packets are 23 bytes long.
>
> Did you check the error parameter of the sendDone() function?
Yes, SUCCESS
Thanks for the clues,
Romain
I have found the bug, and it was indeed related to the size of the
packets. Their size was fine, but not the size parameter of the send
command. So it seems the simulator copy the whole packet whatever the
parameter, whereas the motes only pass the necessary bytes to the
radio (and the rest seems to be zeros).
I feel better now :)
Romain
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help