Anybody used the ble transport for newtmgr image update? Im told it doesnt
work in osx, anyone have a link to an open issue?


I havent gotten in linux docker or native yet either.

nrf51 16kbram, bleloader with splitty app, all upstream sources, newtmgr
with serial confirmed working

dfu service is advertised and present.. though only while in loader, not
while in app? Is this normal?


Connection profiles:
  ble1: type=ble, connstring='nimble-bleprph'
  serial1: type=serial, connstring='/dev/tty.usbmodem1411'
Jacobs-MacBook-Air:mynewt-hr-observer jacobrosenthal$


BLE scan is working

[jacobrosenthal@localhost gatt]$ sudo hcitool -i hci0 lescan
LE Scan ...
0A:0A:0A:0A:0A:0A nimble-bleprph
41:88:82:4A:4E:2D (unknown)
41:88:82:4A:4E:2D (unknown)
0A:0A:0A:0A:0A:0A (unknown)
D0:03:4B:31:75:F2 (unknown)
D6:27:88:87:3F:D0 oura_9_D62788873FD0
D6:27:88:87:3F:D0 (unknown)



[jacobrosenthal@localhost ~]$ newtmgr image list -cble1 -ldebug -t
2017/01/21 01:03:09 [DEBUG] BLE Connection devaddr:[]
2017/01/21 01:03:09 dev: hci0 up
2017/01/21 01:03:09 [DEBUG] goroutine 1 [running]:
mynewt.apache.org/newt/newtmgr/vendor/mynewt.apache.org/newt/util.NewNewtError(0xa07ead,
0x1e, 0x1e)
    /home/jacobrosenthal/go/src/
mynewt.apache.org/newt/newtmgr/vendor/mynewt.apache.org/newt/util/util.go:76
+0x111
mynewt.apache.org/newt/newtmgr/transport.(*ConnBLE).Open(0xc420128cc0,
0xe7a000, 0xc420018d20, 0x0, 0x201, 0x40bdfc)
    /home/jacobrosenthal/go/src/
mynewt.apache.org/newt/newtmgr/transport/connble.go:171 +0x240
mynewt.apache.org/newt/newtmgr/transport.newConn(0xe7a000, 0xc420018d20,
0x0, 0x0, 0x0, 0xc420128ae0, 0xc4200302b8)
    /home/jacobrosenthal/go/src/
mynewt.apache.org/newt/newtmgr/transport/conn.go:110 +0x213
mynewt.apache.org/newt/newtmgr/transport.NewConn(0xe7a000, 0xc420018d20,
0x4, 0xc420018d20, 0x0, 0x0)
    /home/jacobrosenthal/go/src/
mynewt.apache.org/newt/newtmgr/transport/conn.go:75 +0x3e
mynewt.apache.org/newt/newtmgr/cli.getTargetCmdRunner(0x0, 0x0,
0xc420051cd8)
    /home/jacobrosenthal/go/src/
mynewt.apache.org/newt/newtmgr/cli/common.go:39 +0x8b
mynewt.apache.org/newt/newtmgr/cli.imageStateListCmd(0xc420130fc0,
0xc420128a80, 0x0, 0x3)
    /home/jacobrosenthal/go/src/
mynewt.apache.org/newt/newtmgr/cli/image.go:85 +0x26
mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra.(*Command).execute(0xc420130fc0,
0xc4201288d0, 0x3, 0x3, 0xc420130fc0, 0xc4201288d0)
    /home/jacobrosenthal/go/src/
mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:636
+0x443
mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc420130000,
0xc420130b40, 0xc420130240, 0xc42012c570)
    /home/jacobrosenthal/go/src/
mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:722
+0x367
mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra.(*Command).Execute(0xc420130000,
0x4d653c, 0xc4200001a0)
    /home/jacobrosenthal/go/src/
mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:681
+0x2b
main.main()
    /home/jacobrosenthal/go/src/mynewt.apache.org/newt/newtmgr/newtmgr.go:25
+0x2f

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /usr/lib/golang/src/runtime/asm_amd64.s:2086 +0x1

goroutine 5 [syscall]:
os/signal.signal_recv(0x0)
    /usr/lib/golang/src/runtime/sigqueue.go:116 +0x157
os/signal.loop()
    /usr/lib/golang/src/os/signal/signal_unix.go:22 +0x22
created by os/signal.init.1
    /usr/lib/golang/src/os/signal/signal_unix.go:28 +0x41

Error: no supported devices available
[jacobrosenthal@localhost ~]$

Reply via email to