On Sep 19, 2010, at 1:27 AM, Eric Decker wrote:

> I'm pretty sure the following is a problem under heavy receive loads on the 
> serial link.  This is especially true for high baud rates that have
> interarrival character times that are quite small.

Eric,

Can you test that this patch works:

===================================================================
--- SerialP.nc  (revision 5198)
+++ SerialP.nc  (working copy)
@@ -445,9 +445,15 @@
         if (isDelimeter) { /* handle end of frame */
           if (rxByteCnt >= 2) {
             if (rx_current_crc() == rxCRC) {
+             rxInit();
+             call SerialFrameComm.resetReceive();
+             if (offPending) {
+               rxState = RXSTATE_INACTIVE;
+               testOff();
+             }
               signal ReceiveBytePacket.endPacket(SUCCESS);
               ack_queue_push(rxSeqno);
-              goto nosync;
+              goto done;
             }
             else {
               goto nosync;


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

Reply via email to