adrien3d commented on issue #53: Replace currantlabs dep with go-ble.
URL: https://github.com/apache/mynewt-newtmgr/pull/53#issuecomment-364923376
 
 
   On mac OS High Sierra, while doing a newtmgr image upload -c bleconn 
/path/to/nrf52_app/app/apps/bleprph/bleprph.img, I have a progress bar 
remaining at 0B, and an Error: disconnected:
   newtmgr image upload -c bleconn /path/to/my/bleprph.img 0 B / 122.70 KiB 
[------------------------------------------------------------------------------------------------------------------------------------------------------]
 0.00% Error: disconnected
   
   Any idea of where the problem is coming from?
   
   With the debug flag, I have:
   
   ```newtmgr image upload -c bleconn 
/path/to/nrf52_app/app/apps/bleprph/bleprph.img -l debug
   DEBU[2018-02-12 15:52:54.823] Using connection profile: name=bleconn 
type=ble connstring=peer_name=klocz-ble
   DEBU[2018-02-12 15:52:54.825] {add-oic-listener} [transceiver.go:62] token=[]
   DEBU[2018-02-12 15:52:54.825] Connecting to peer
   DEBU[2018-02-12 15:52:55.217] Exchanging MTU
   DEBU[2018-02-12 15:52:55.218] Exchanged MTU; ATT MTU = 104
   DEBU[2018-02-12 15:52:55.218] Discovering profile
   DEBU[2018-02-12 15:52:55.929] Subscribing to NMP response characteristic
   0 / 125640 
[-------------------------------------------------------------------------------------------------------------------------------------------------------]
 0.00%DEBU[2018-02-12 15:52:55.974] {add-nmp-listener} [bll_sesn.go:401] seq=66
   DEBU[2018-02-12 15:52:55.975] Encoded &{NmpBase:{hdr:{Op:2 Flags:0 Len:0 
Group:1 Seq:66 Id:5}}} to:
   00000000 a0 |.|
   
   DEBU[2018-02-12 15:52:55.975] Encoded:
   00000000 02 00 00 01 00 01 42 05 a0 |......B..|
   
   DEBU[2018-02-12 15:52:55.975] Tx NMP request: 00000000 02 00 00 01 00 01 42 
05 a0 |......B..|
   
   0 B / 122.70 KiB 
[-------------------------------------------------------------------------------------------------------------------------------------------------]
 0.00%DEBU[2018-02-12 15:52:58.023] {remove-nmp-listener} [bll_sesn.go:401] 
seq=66
   DEBU[2018-02-12 15:52:58.023] OIC error: disconnected
   DEBU[2018-02-12 15:52:58.027] {remove-oic-listener} [.:0] token=[]
   DEBU[2018-02-12 15:52:58.027] goroutine 1 [running]:
   
mynewt.apache.org/newtmgr/vendor/mynewt.apache.org/newt/util.NewNewtError(0xc420144120,
 0xc, 0xc)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/vendor/mynewt.apache.org/newt/util/util.go:77
 +0xe8
   
mynewt.apache.org/newtmgr/vendor/mynewt.apache.org/newt/util.ChildNewtError(0x4a5b0c0,
 0xc42014c220, 0xc4201685a0)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/vendor/mynewt.apache.org/newt/util/util.go:103
 +0x82
   mynewt.apache.org/newtmgr/newtmgr/cli.imageUploadCmd(0xc4201bf200, 
0xc4200848c0, 0x1, 0x5)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/newtmgr/cli/image.go:202
 +0x40a
   
mynewt.apache.org/newtmgr/vendor/github.com/spf13/cobra.(*Command).execute(0xc4201bf200,
 0xc420084870, 0x5, 0x5, 0xc4201bf200, 0xc420084870)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/vendor/github.com/spf13/cobra/command.go:654
 +0x2a2
   
mynewt.apache.org/newtmgr/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc42008f8c0,
 0xc420131f08, 0xc420131ef8, 0xc420041ab0)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/vendor/github.com/spf13/cobra/command.go:729
 +0x2fe
   
mynewt.apache.org/newtmgr/vendor/github.com/spf13/cobra.(*Command).Execute(0xc42008f8c0,
 0x473f778, 0xc420162240)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/vendor/github.com/spf13/cobra/command.go:688
 +0x2b
   main.main()
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/newtmgr/newtmgr.go:111
 +0x119
   
   goroutine 5 [syscall]:
   os/signal.signal_recv(0x0)
   /usr/local/Cellar/go/1.9.4/libexec/src/runtime/sigqueue.go:131 +0xa7
   os/signal.loop()
   /usr/local/Cellar/go/1.9.4/libexec/src/os/signal/signal_unix.go:22 +0x22
   created by os/signal.init.0
   /usr/local/Cellar/go/1.9.4/libexec/src/os/signal/signal_unix.go:28 +0x41
   
   goroutine 18 [select, locked to thread]:
   runtime.gopark(0x4741980, 0x0, 0x4719b96, 0x6, 0x18, 0x1)
   /usr/local/Cellar/go/1.9.4/libexec/src/runtime/proc.go:287 +0x12c
   runtime.selectgo(0xc420038f50, 0xc4201b4060)
   /usr/local/Cellar/go/1.9.4/libexec/src/runtime/select.go:395 +0x1149
   runtime.ensureSigM.func1()
   /usr/local/Cellar/go/1.9.4/libexec/src/runtime/signal_unix.go:511 +0x1fe
   runtime.goexit()
   /usr/local/Cellar/go/1.9.4/libexec/src/runtime/asm_amd64.s:2337 +0x1
   
   goroutine 7 [chan receive]:
   main.main.func1(0xc420162240)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/newtmgr/newtmgr.go:97
 +0x4b
   created by main.main
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/newtmgr/newtmgr.go:95
 +0x10f
   
   goroutine 19 [runnable]:
   syscall.Syscall(0x4, 0x2, 0xc42029e000, 0x55, 0x55, 0x0, 0x0)
   /usr/local/Cellar/go/1.9.4/libexec/src/syscall/asm_darwin_amd64.s:16 +0x5
   syscall.write(0x2, 0xc42029e000, 0x55, 0xa9, 0xc42003ba01, 0x0, 0x0)
   /usr/local/Cellar/go/1.9.4/libexec/src/syscall/zsyscall_darwin_amd64.go:1328 
+0x55
   syscall.Write(0x2, 0xc42029e000, 0x55, 0xa9, 0x0, 0x8, 0x68)
   /usr/local/Cellar/go/1.9.4/libexec/src/syscall/syscall_unix.go:181 +0x49
   internal/poll.(*FD).Write(0xc4200840a0, 0xc42029e000, 0x55, 0xa9, 0x0, 0x0, 
0x0)
   /usr/local/Cellar/go/1.9.4/libexec/src/internal/poll/fd_unix.go:219 +0x14f
   os.(*File).write(0xc42000e020, 0xc42029e000, 0x55, 0xa9, 0x0, 0x0, 0x0)
   /usr/local/Cellar/go/1.9.4/libexec/src/os/file_unix.go:233 +0x4e
   os.(*File).Write(0xc42000e020, 0xc42029e000, 0x55, 0xa9, 0xa9, 0x0, 0x0)
   /usr/local/Cellar/go/1.9.4/libexec/src/os/file.go:140 +0x72
   
mynewt.apache.org/newtmgr/vendor/github.com/Sirupsen/logrus.Entry.log(0xc420084140,
 0xc420146390, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x5, ...)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/vendor/github.com/Sirupsen/logrus/entry.go:114
 +0x366
   
mynewt.apache.org/newtmgr/vendor/github.com/Sirupsen/logrus.(*Entry).Debug(0xc42014a140,
 0xc42003bdb0, 0x1, 0x1)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/vendor/github.com/Sirupsen/logrus/entry.go:131
 +0xac
   
mynewt.apache.org/newtmgr/vendor/github.com/Sirupsen/logrus.(*Entry).Debugf(0xc42014a140,
 0x471e4be, 0xd, 0xc42003bec8, 0x1, 0x1)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/vendor/github.com/Sirupsen/logrus/entry.go:179
 +0xf8
   
mynewt.apache.org/newtmgr/vendor/github.com/Sirupsen/logrus.(*Logger).Debugf(0xc420084140,
 0x471e4be, 0xd, 0xc42003bec8, 0x1, 0x1)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/vendor/github.com/Sirupsen/logrus/logger.go:118
 +0x86
   
mynewt.apache.org/newtmgr/vendor/github.com/Sirupsen/logrus.Debugf(0x471e4be, 
0xd, 0xc42003bec8, 0x1, 0x1)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/vendor/github.com/Sirupsen/logrus/exported.go:117
 +0x5f
   
mynewt.apache.org/newtmgr/nmxact/omp.(*Dispatcher).addOmpListener.func1(0xc42013d3e0,
 0xc4201428a0)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/nmxact/omp/dispatch.go:83
 +0x2b2
   created by mynewt.apache.org/newtmgr/nmxact/omp.(*Dispatcher).addOmpListener
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/nmxact/omp/dispatch.go:67
 +0xc0
   
   goroutine 35 [select]:
   
mynewt.apache.org/newtmgr/vendor/github.com/go-ble/ble.trap.func1(0xc42021c180, 
0xc42013e800, 0x4a63580, 0xc42013d4a0)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/vendor/github.com/go-ble/ble/gatt.go:173
 +0xf2
   created by mynewt.apache.org/newtmgr/vendor/github.com/go-ble/ble.trap
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/vendor/github.com/go-ble/ble/gatt.go:172
 +0x192
   
   goroutine 36 [semacquire]:
   sync.runtime_Semacquire(0xc42013d404)
   /usr/local/Cellar/go/1.9.4/libexec/src/runtime/sema.go:56 +0x39
   sync.(*WaitGroup).Wait(0xc42013d3f8)
   /usr/local/Cellar/go/1.9.4/libexec/src/sync/waitgroup.go:131 +0x72
   mynewt.apache.org/newtmgr/nmxact/omp.(*Dispatcher).Stop(0xc42013d3e0)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/nmxact/omp/dispatch.go:101
 +0x54
   mynewt.apache.org/newtmgr/nmxact/mgmt.(*Transceiver).Stop(0xc42013d320)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/nmxact/mgmt/transceiver.go:326
 +0x2f
   
mynewt.apache.org/newtmgr/newtmgr/bll.(*BllSesn).listenDisconnect.func1(0xc4201685a0)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/newtmgr/bll/bll_sesn.go:97
 +0xda
   created by mynewt.apache.org/newtmgr/newtmgr/bll.(*BllSesn).listenDisconnect
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/newtmgr/bll/bll_sesn.go:89
 +0x3f
   
   goroutine 37 [select]:
   
mynewt.apache.org/newtmgr/vendor/github.com/cheggaaa/pb.(*ProgressBar).refresher(0xc42026a000)
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/vendor/github.com/cheggaaa/pb/pb.go:462
 +0x109
   created by 
mynewt.apache.org/newtmgr/vendor/github.com/cheggaaa/pb.(*ProgressBar).Start
   
/private/tmp/mynewt-newtmgr-20180212-9841-nucs1p/gopath/src/mynewt.apache.org/newtmgr/vendor/github.com/cheggaaa/pb/pb.go:123
 +0xc0
   
   Error: disconnected```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to