[05/50] incubator-mynewt-newt git commit: add a bit of extra time for these multi-segment frames for the slow platforms to extract them from their receive buffer and continue processing.
add a bit of extra time for these multi-segment frames for the slow platforms to extract them from their receive buffer and continue processing. Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/09bd4f97 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/09bd4f97 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/09bd4f97 Branch: refs/heads/master Commit: 09bd4f97a3b0431528b608f7f833972b430e315f Parents: 611d95b Author: paulfdietrichAuthored: Wed Oct 26 09:10:13 2016 -0700 Committer: paulfdietrich Committed: Wed Oct 26 09:11:45 2016 -0700 -- newtmgr/transport/connserial.go | 4 1 file changed, 4 insertions(+) -- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/09bd4f97/newtmgr/transport/connserial.go -- diff --git a/newtmgr/transport/connserial.go b/newtmgr/transport/connserial.go index 37514a0..b97dd07 100644 --- a/newtmgr/transport/connserial.go +++ b/newtmgr/transport/connserial.go @@ -217,6 +217,10 @@ func (cs *ConnSerial) WritePacket(pkt *Packet) error { if written == 0 { cs.writeData([]byte{6, 9}) } else { + /* slower platforms take some time to process each segment +* and have very small receive buffers. Give them a bit of +* time here */ + time.Sleep(20 * time.Millisecond) cs.writeData([]byte{4, 20}) }
incubator-mynewt-newt git commit: add a bit of extra time for these multi-segment frames for the slow platforms to extract them from their receive buffer and continue processing.
Repository: incubator-mynewt-newt Updated Branches: refs/heads/develop 611d95bd6 -> 09bd4f97a add a bit of extra time for these multi-segment frames for the slow platforms to extract them from their receive buffer and continue processing. Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/09bd4f97 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/09bd4f97 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/09bd4f97 Branch: refs/heads/develop Commit: 09bd4f97a3b0431528b608f7f833972b430e315f Parents: 611d95b Author: paulfdietrichAuthored: Wed Oct 26 09:10:13 2016 -0700 Committer: paulfdietrich Committed: Wed Oct 26 09:11:45 2016 -0700 -- newtmgr/transport/connserial.go | 4 1 file changed, 4 insertions(+) -- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/09bd4f97/newtmgr/transport/connserial.go -- diff --git a/newtmgr/transport/connserial.go b/newtmgr/transport/connserial.go index 37514a0..b97dd07 100644 --- a/newtmgr/transport/connserial.go +++ b/newtmgr/transport/connserial.go @@ -217,6 +217,10 @@ func (cs *ConnSerial) WritePacket(pkt *Packet) error { if written == 0 { cs.writeData([]byte{6, 9}) } else { + /* slower platforms take some time to process each segment +* and have very small receive buffers. Give them a bit of +* time here */ + time.Sleep(20 * time.Millisecond) cs.writeData([]byte{4, 20}) }