[Tinyos-devel] RE: Bug in C_Serial Forwarder

David Gay dgay42 at gmail.com
Tue Feb 19 14:09:41 PST 2008


On Feb 15, 2008 2:26 AM, Devan Rehunathan <rehunathan at gmail.com> wrote:
> I'm currently using the C version of the Tmote Serial Forwarder(sf.c) for a
> project. I believe there is a bug in the forward() function of sf.c. The
> return values of write_serial_packet() are mismatched. Unacknowledged
> packets produce a "Note:write failed" error.

The writer of sf.c (i.e., me ;-)) considered a lack of ack to mean
that the write failed. Maybe not the best possible message and all
that, but... And because sf.c is just a fairly simple implementation,
it gives up when something bad happens (ie write_serial_packet returns
-1).

David Gay


More information about the Tinyos-devel mailing list