[Tinyos-devel] BaseStationP bug

Kevin Klues klueska at gmail.com
Mon Feb 18 05:58:35 PST 2008


Phil, you appear to be owner...

Kevin

On Feb 15, 2008 8:36 AM, David Moss <dmm at rincon.com> wrote:
>
>
>
>
> The BaseStation application moves received packets directly into the send
> branch of the serial or radio stacks without clearing the header.  Residual
> header information is left over from the opposite communication driver,
> which can cause send/receive problems elsewhere.
>
>
>
> The case I'm seeing here is a message is received through the serial stack,
> causing the message's header to be filled in like a serial header.  The
> message is moved directly into the radio stack without clearing the header.
> Some bytes of a radio packet header, like FCF, are not edited by the radio
> stack because they are assumed to contain pre-configured settings.  The FCF
> byte is therefore corrupted by the bytes left over from the serial stack.
> This causes a node receiving the packet with the corrupted FCF byte to
> filter out and drop the packet.
>
>
>
> The solution is for the BaseStation application to clear each message_t's
> header before injecting the message into the send branch of the opposite
> communication driver.  I have attached my version of BaseStationP, but I
> would recommend the owner(s) of this application take a look before
> committing the fixes back to tinyos-2.x/apps/BaseStation.
>
>
>
> -David
>
>
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
>
>



-- 
~Kevin


More information about the Tinyos-devel mailing list