commit | d1f70726cdbcb57f2b46668b30468f8ebaa6ab00 | [log] [tgz] |
---|---|---|
author | Naveen Kaje <naveen.kaje@juul.com> | Tue Aug 25 17:50:15 2020 -0500 |
committer | Naveen Kaje <naveen.kaje@juul.com> | Tue Aug 25 18:04:53 2020 -0500 |
tree | 5f597c67466f5a8e1f0cca5b29f5ce0315f1e298 | |
parent | 11e8797b2df44c21ccca4fe9a9a35169ac19aec7 [diff] |
transceiver: Fix NMP Async Listener NMP Async listener should be released in the gofunc. This fixes the following error seen with DFU. Error signature: $sudo ~/go/bin/newtmgr --conntype ble --connstring peer_name='DUT1000' image upload application.bin 0 B / 99.04 KiB [---------------------------------------------------------] 0.00% panic: send on closed channel goroutine 67 [running]: mynewt.apache.org/newtmgr/nmxact/nmp.(*Listener).AfterTimeout.func1() /home/naveen/go/src/mynewt.apache.org/newtmgr/nmxact/nmp/dispatch.go:50 +0x64 created by time.goFunc /usr/local/go/src/time/sleep.go:168 +0x44 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