commit | 00340e1e851edde340edadb200a0bdfe4d869a81 | [log] [tgz] |
---|---|---|
author | Naveen Kaje <naveen.kaje@juul.com> | Thu May 07 07:58:29 2020 -0500 |
committer | Naveen Kaje <naveen.kaje@juul.com> | Mon Jun 22 14:10:33 2020 -0500 |
tree | 3a4ec2fe2fcd119b913e5d2fee7bd721ad7fe7dd | |
parent | 61395d2a705611c376226fa5114ea81392ded671 [diff] |
image: optimize Device Firmware Upgrade (DFU) Optimize the DFU process by queuing multiple chunks of the image at once. The window of outstanding requsts is slowly increased until errors are seen. The process is started with a minimum window size of outstanding requests. As the successful responses come in the size is increased. Internal map is maintained to track if the CoAP server (device) has missed a chunk and repeatedly requests for it in the response. As several requests are outstanding at the same time, this optimizes particularly Bluetooth transport. Serial and Mtech LORA is updated for compliance with the updated interface, although they use underlying synchronous transmit/receive functionality. Signed-off-by: Naveen Kaje <naveen.kaje@juul.com>
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
GO111MODULE=on go build