Hello Pierre,

You are right. The Go gatt library does not work on Mac OSX. It does work on 
linux.

Regards,
Vipul Rahane
 
> On May 29, 2017, at 5:56 PM, Pierre Kircher <[email protected]> wrote:
> 
> aditi is it possible that the go gatt package is bugged in macosx ?
> 
> dr-who@FailBowl ~/dev/puck (master●●)$ newtmgr conn show                      
>                                                                               
>                                                                               
>                      [ruby-2.2.0]
> Connection profiles: 
>   blenrf: type=ble, connstring='', addr=0a:0b:0c:0d:0e:0f, addrtype=0
>   nrf52: type=serial, connstring='/dev/cu.usbserial-A800HMRN'
> dr-who@FailBowl ~/dev/puck (master●●)$   
> 
> newtmgr stat ble_att -c blenrf                                                
>                                                                               
>                                                             [ruby-2.2.0]
> panic: runtime error: cgo argument has Go pointer to Go pointer
> 
> goroutine 1 [running]:
> mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/xpc.XpcConnect.func2
>  
> <http://mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/xpc.XpcConnect.func2>(0x4e00020,
>  0xc42014d240, 0x4e00020)
>       
> /private/tmp/mynewt-newtmgr-20170410-12775-ah62q3/incubator-mynewt-newt-mynewt_1_0_0_tag/gopath/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/xpc/xpc_darwin.go:169
>  
> <http://mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/xpc/xpc_darwin.go:169>
>  +0xaf
> mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/xpc.XpcConnect
>  
> <http://mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/xpc.XpcConnect>(0x46274a6,
>  0xf, 0x48993c0, 0xc420148280, 0x0)
>       
> /private/tmp/mynewt-newtmgr-20170410-12775-ah62q3/incubator-mynewt-newt-mynewt_1_0_0_tag/gopath/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/xpc/xpc_darwin.go:169
>  
> <http://mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/xpc/xpc_darwin.go:169>
>  +0xc2
> mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt.NewDevice 
> <http://mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt.NewDevice>(0x48f3580,
>  0x0, 0x0, 0x1, 0x1, 0x8, 0x48d5240)
>       
> /private/tmp/mynewt-newtmgr-20170410-12775-ah62q3/incubator-mynewt-newt-mynewt_1_0_0_tag/gopath/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/device_darwin.go:67
>  
> <http://mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/device_darwin.go:67>
>  +0x239
> mynewt.apache.org/newt/newtmgr/transport 
> <http://mynewt.apache.org/newt/newtmgr/transport>.(*ConnBLE).Open(0xc4201246f0,
>  0x489fec0, 0xc420122140, 0x0, 0x7fff5fbff6e8, 0x6)
>       
> /private/tmp/mynewt-newtmgr-20170410-12775-ah62q3/incubator-mynewt-newt-mynewt_1_0_0_tag/gopath/src/mynewt.apache.org/newt/newtmgr/transport/connble.go:169
>  <http://mynewt.apache.org/newt/newtmgr/transport/connble.go:169> +0x1ce
> mynewt.apache.org/newt/newtmgr/transport.newConn 
> <http://mynewt.apache.org/newt/newtmgr/transport.newConn>(0x489fec0, 
> 0xc420122140, 0x0, 0x0, 0x0, 0xc420124510, 0xc420130060)
>       
> /private/tmp/mynewt-newtmgr-20170410-12775-ah62q3/incubator-mynewt-newt-mynewt_1_0_0_tag/gopath/src/mynewt.apache.org/newt/newtmgr/transport/conn.go:110
>  <http://mynewt.apache.org/newt/newtmgr/transport/conn.go:110> +0x230
> mynewt.apache.org/newt/newtmgr/transport.NewConn 
> <http://mynewt.apache.org/newt/newtmgr/transport.NewConn>(0x489fec0, 
> 0xc420122140, 0x6, 0xc420122140, 0x0, 0x0)
>       
> /private/tmp/mynewt-newtmgr-20170410-12775-ah62q3/incubator-mynewt-newt-mynewt_1_0_0_tag/gopath/src/mynewt.apache.org/newt/newtmgr/transport/conn.go:75
>  <http://mynewt.apache.org/newt/newtmgr/transport/conn.go:75> +0x3e
> mynewt.apache.org/newt/newtmgr/cli.getTargetCmdRunner 
> <http://mynewt.apache.org/newt/newtmgr/cli.getTargetCmdRunner>(0x0, 
> 0xc4200001a0, 0xc42012dc10)
>       
> /private/tmp/mynewt-newtmgr-20170410-12775-ah62q3/incubator-mynewt-newt-mynewt_1_0_0_tag/gopath/src/mynewt.apache.org/newt/newtmgr/cli/common.go:39
>  <http://mynewt.apache.org/newt/newtmgr/cli/common.go:39> +0x8b
> mynewt.apache.org/newt/newtmgr/cli.statsRunCmd 
> <http://mynewt.apache.org/newt/newtmgr/cli.statsRunCmd>(0xc42015e900, 
> 0xc4201244b0, 0x1, 0x3)
>       
> /private/tmp/mynewt-newtmgr-20170410-12775-ah62q3/incubator-mynewt-newt-mynewt_1_0_0_tag/gopath/src/mynewt.apache.org/newt/newtmgr/cli/stats.go:71
>  <http://mynewt.apache.org/newt/newtmgr/cli/stats.go:71> +0x48
> mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra 
> <http://mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra>.(*Command).execute(0xc42015e900,
>  0xc420124420, 0x3, 0x3, 0xc42015e900, 0xc420124420)
>       
> /private/tmp/mynewt-newtmgr-20170410-12775-ah62q3/incubator-mynewt-newt-mynewt_1_0_0_tag/gopath/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:636
>  
> <http://mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:636>
>  +0x231
> mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra 
> <http://mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra>.(*Command).ExecuteC(0xc420154000,
>  0xc4201558c0, 0xc420155200, 0xc42014ced0)
>       
> /private/tmp/mynewt-newtmgr-20170410-12775-ah62q3/incubator-mynewt-newt-mynewt_1_0_0_tag/gopath/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:722
>  
> <http://mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:722>
>  +0x339
> mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra 
> <http://mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra>.(*Command).Execute(0xc420154000,
>  0xc4200001a0, 0xc4200001a0)
>       
> /private/tmp/mynewt-newtmgr-20170410-12775-ah62q3/incubator-mynewt-newt-mynewt_1_0_0_tag/gopath/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:681
>  
> <http://mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:681>
>  +0x2b
> main.main()
>       
> /private/tmp/mynewt-newtmgr-20170410-12775-ah62q3/incubator-mynewt-newt-mynewt_1_0_0_tag/gopath/src/mynewt.apache.org/newt/newtmgr/newtmgr.go:25
>  <http://mynewt.apache.org/newt/newtmgr/newtmgr.go:25> +0x2f
> 
> 
> 
> 
> thanks again
> 
>> On 29 May 2017, at 22:41, Pierre Kircher <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> ah thank you .. i thought thats just the serial interface for a ftdi chip .. 
>> but if that works via ble .. amazing !
>> 
>> thanks again
>> 
>>> On 29 May 2017, at 22:40, aditi hilbert <[email protected] 
>>> <mailto:[email protected]>> wrote:
>>> 
>>> Hi Pierre,
>>> 
>>> Yes, you can. I am assuming you are asking about upgrading a Mynewt image 
>>> on nRF52?
>>> 
>>> You can use the newtmgr command "newtmgr image upload <imagename> -c 
>>> <connection profile name> to upload an image to the device, assuming BLE is 
>>> working.
>>> The next step is to test the image, reset the board, and then confirm the 
>>> image (marking it to be the one to come up each time).
>>> 
>>> Here is the tutorial on how to enable newtmgr: 
>>> https://mynewt.apache.org/latest/os/tutorials/add_newtmgr/ 
>>> <https://mynewt.apache.org/latest/os/tutorials/add_newtmgr/> 
>>> <https://mynewt.apache.org/latest/os/tutorials/add_newtmgr/ 
>>> <https://mynewt.apache.org/latest/os/tutorials/add_newtmgr/>>
>>> 
>>> Someone even created a frontend script for it using nodejs : 
>>> https://nnewtmgr.surge.sh/ <https://nnewtmgr.surge.sh/> 
>>> <https://nnewtmgr.surge.sh/ <https://nnewtmgr.surge.sh/>>
>>> 
>>> thanks,
>>> aditi
>>> 
>>>> On May 30, 2017, at 2:22 AM, Pierre Kircher <[email protected] 
>>>> <mailto:[email protected]>> wrote:
>>>> 
>>>> is there a current way to get OTA (over the air updates) working with 
>>>> mynewt/nimble ?
>>>> 
>>>> thank you
>>> 
>> 
> 

Reply via email to