commit | c953418041768cf957a61e3131903f27641b4804 | [log] [tgz] |
---|---|---|
author | Christopher Collins <ccollins@apache.org> | Wed May 08 17:32:23 2019 -0700 |
committer | Christopher Collins <ccollins@apache.org> | Wed May 08 17:32:23 2019 -0700 |
tree | c63d01feafbe37629fca7c5f1343508115d21e24 | |
parent | 8cf32aa9ab25a784ff7d9017ac12961e085f7a45 [diff] |
image: Multiple rounds of chunklen reduction Prior to this commit, newtmgr determined how many bytes of image data to include in an upload request as follows: 1. Choose a large number to start (512). 2. Encode the upload request into CoAP (+ optional security). 3. Compare the size of request to the transport's MTU. If the request is too large, subtract the difference from the chunk length. This commit changes the above procedure such that it runs in a loop. After reducing the chunk length, a new request is encoded and its length is compared to the MTU. The loop executes until the encoded request fits within the MTU.
Newt Manager (newtmgr) is the application tool that enables a user to communicate with and manage remote devices running the Mynewt OS. It uses a connection profile to establish a connection with a device and sends command requests to the device. The newtmgr tool documentation can be found under /docs which are published at http://mynewt.apache.org/latest/os/modules/devmgmt/newtmgr.html
Build the newtmgr tool as follows:
apache-mynewt-newtmgr-1.3.0
directory to $GOPATH/src/mynewt.apache.org/newtmgr
cd $GOPATH/src/mynewt.apache.org/newtmgr/newtmgr
go build