Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to upload over BLE using Zephyr with SMP Server Sample #92

Open
caco3 opened this issue Jul 31, 2020 · 1 comment
Open

Fails to upload over BLE using Zephyr with SMP Server Sample #92

caco3 opened this issue Jul 31, 2020 · 1 comment

Comments

@caco3
Copy link

caco3 commented Jul 31, 2020

Hi all

I am trying to get the "SMP Server Sample" (https://docs.zephyrproject.org/latest/samples/subsys/mgmt/mcumgr/smp_svr/README.html) working.

I have a nrf52840dongle_nrf52840 and successfully installed MCUboot (option #2) and the "SMP Server Sample" on it.
I also have a laptop with a built-in BLE radio.
I successfully can test the connection and even list the image:

> mcumgr --conntype ble --connstring ctlr_name= peer_name='Zephyr' echo hello 
hello
> sudo mcumgr --conntype ble --connstring ctlr_name=peer_name='Zephyr' image list
 Images:
  image=0 slot=0
    version: 0.0.0
    bootable: true
    flags: active confirmed
    hash: 37a4a9403fbd0a0336152646947ccce5faf6674e3a29b4220eb2b97a2f613b9d
Split status: N/A (0)

How ever when I try to upload a new image, I run into an error:

> sudo mcumgr --conntype ble --connstring peer_name='Zephyr' image upload smp_svr.signed.bin -t 100
 0 B / 182.61 KiB [--------------------------------------------------------------------------------------------------]   0.00%
 panic: send on closed channel
 goroutine 493 [running]:
  mynewt.apache.org/newtmgr/nmxact/nmp.(*Listener).AfterTimeout.func1()
    /home/ubuntu/go/src/mynewt.apache.org/newtmgr/nmxact/nmp/dispatch.go:50 +0x64
  created by time.goFunc
    /usr/lib/go-1.13/src/time/sleep.go:168 +0x44

Any Idea how this can get fixed?

@caco3
Copy link
Author

caco3 commented Aug 17, 2020

See discussions in apache/mynewt-mcumgr-cli#15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant