On Feb 20, 2008, at 7:37 AM, Kaan Tuna wrote:

Hello all,
When we send data over the serial port, how can we verify that the receiver (PC, terminal...) succesfully received the packet? Do we need a modification in the application layer (ie in the code, SerialSend.SendDone ?)? Is there any implementation of this kind?

Yes. You need a modification in the application layer.

This has been a point of discussion on TEP 113. Currently, TinyOS acknowledges packets from the PC, but the PC does not acknowledge packets from TinyOS. The protocol would allow such a thing -- just send PROTO_PACKET_ACK to the PC -- but the serial stack implementation doesn't support it. On one hand, it would be nice if you could request ACKs; on the other, I'm worried about code bloat. Right now the serial stack is about 3.5-4K of code all together, and adding acks would probably add another 1K or so. Given that it's an infrequent request, yet many applications run into the code size limits on telos-family motes, I'm leery of adding support. Writing an alternative stack that supports acks isn't appealing, either, as that means maintaining parallel implementations (and I already maintain too much).

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

Reply via email to