jacobrosenthal commented on issue #789: nimble: Fix for invalid handling of 
missed connection event
URL: https://github.com/apache/mynewt-core/pull/789#issuecomment-362926710
 
 
   Maybe were talking past eachother. I guess with that previous patch in you 
dont need to manually erase, you can call upload twice in a row, the first 
getting you an erase for free and a disconnect and the second actually doing 
the upload. I prefer to erase and upload I guess.
   
   
   However, Im still reporting a very similar looking radio problem on the 
nrf52 line, maybe its a different bug and I can report elsewhere
   
   
   ```
   Jacobs-MacBook-Air:chippd3 jacobrosenthal$ newt target show  split-thingy
   targets/split-thingy
       app=@apache-mynewt-core/apps/blesplit
       bsp=@apache-mynewt-core/hw/bsp/nrf52-thingy
       build_profile=optimized
       loader=@apache-mynewt-core/apps/bleprph
       
syscfg=CONSOLE_ECHO=0:CONSOLE_INPUT=0:CONSOLE_MAX_INPUT_LEN=0:CONSOLE_RTT=1:CONSOLE_UART=0:JLINK_DEBUG=1:LOG_LEVEL=0:SHELL_TASK=0
   Jacobs-MacBook-Air:chippd3 jacobrosenthal$ 
   ```
   
   Here are logs of my script which should make the operation obvious, though 
all that matters is after an erase Im losing connection on the nrf52.
   ```
   Jacobs-Air:node-newtmgr jacobrosenthal$ node examples/ble-upload-scripted.js 
--name=nimble-blesplit --name=nimble-bleprph 
--app_name=/Users/jacobrosenthal/Downloads/chippd3/bin/targets/split-thingy/app/apps/blesplit/blesplit.img
 
--loader_name=/Users/jacobrosenthal/Downloads/chippd3/bin/targets/split-thingy/loader/apps/bleprph/bleprph.img
   loader version: 1.2.3.4
   app version: 1.2.3.4
   waiting for bluetooth
   connecting
   connected and found characteristic
   checking image state
   {
        "images": [
                {
                        "slot": 0,
                        "version": "0.0.0",
                        "hash": 
"d9a735ac582f225f8b43b71b4dae2950db9aa040932b6ca117f06d6bd72c83a2",
                        "bootable": true,
                        "pending": false,
                        "confirmed": true,
                        "active": true,
                        "permanent": false
                },
                {
                        "slot": 1,
                        "version": "0.0.0",
                        "hash": 
"7ad92c4561a56240d2334cd654ee5044e81802e56c7371952be188e728658ff1",
                        "bootable": false,
                        "pending": false,
                        "confirmed": false,
                        "active": false,
                        "permanent": false
                }
        ],
        "splitStatus": 2
   }
   were in the loader
   erasing app
   disconnected, reconnecting
   connecting
   ```
   
   These are the device logs the last received event showing the erase command, 
but not knowing that its been disconnected
   ```
   001355 [ts=10585900ssb, mod=4 level=0] LE connection complete. handle=1 
role=1 paddrtype=0 addr=b8.e8.56.3.d3.ed local_rpa=0.0.0.0.0.0 
peer_rpa=0.0.0.0.0.0 itvl=12 latency=0 spvn_tmo=200 mca=5
   001355 [ts=10585900ssb, mod=64 level=1] connection established; status=0 
handle=1 our_ota_addr_type=1 our_ota_addr=d6:b6:90:62:f3:ed our_id_addr_type=1 
our_id_addr=d6:b6:90:62:f3:ed peer_ota_addr_type=0 
peer_ota_addr=b8:e8:56:03:d3:ed peer_id_addr_type=0 
peer_id_addr=b8:e8:56:03:d3:ed conn_itvl=12 conn_latency=0 
supervision_timeout=200 encrypted=0 authenticated=0 bonded=0
   001356 [ts=10593712ssb, mod=64 level=1] 
   001356 [ts=10593712ssb, mod=4 level=0] ble_hs_hci_cmd_send: ogf=0x08 
ocf=0x0016 len=2
   001356 [ts=10593712ssb, mod=4 level=0] 0x16 0x20 0x02 0x01 0x00 
   001356 [ts=10593712ssb, mod=4 level=0] Command Status: status=0 cmd_pkts=1 
ocf=0x16 ogf=0x8
   001356 [ts=10593712ssb, mod=4 level=0]       Unknown LE event
   001361 [ts=10632772ssb, mod=4 level=0] LE Remote Used Features. FAIL 
(status=26)
   001363 [ts=10648396ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=7 data=0x03 0x00 0x04 0x00 0x02 0x68 0x00 
   001363 [ts=10648396ssb, mod=4 level=0] rxed att command: mtu req; conn=1 
mtu=104
   001363 [ts=10648396ssb, mod=4 level=0] txed att command: mtu rsp; conn=1 
mtu=256
   001363 [ts=10648396ssb, mod=4 level=0] host tx hci data; handle=1 length=7
   001363 [ts=10648396ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x07 
0x00 0x03 0x00 0x04 0x00 0x03 0x00 0x01 
   001363 [ts=10648396ssb, mod=64 level=1] mtu update event; conn_handle=1 
cid=4 mtu=104
   001366 [ts=10671832ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001366 [ts=10671832ssb, mod=4 level=0] handle:1 pkts:1
   001372 [ts=10718704ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=11 data=0x07 0x00 0x04 0x00 0x10 0x01 0x00 0xff 0xff 
0x00 0x28 
   001372 [ts=10718704ssb, mod=4 level=0] rxed att command: read group type 
req; conn=1 start_handle=0x0001 end_handle=0xffff
   001372 [ts=10718704ssb, mod=4 level=0] txed att command: read group type 
rsp; conn=1 length=6
   001373 [ts=10726516ssb, mod=4 level=0] host tx hci data; handle=1 length=24
   001373 [ts=10726516ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x18 
0x00 0x14 0x00 0x04 0x00 0x11 0x06 0x01 0x00 0x0b 0x00 0x00 0x18 0x0c 0x00 0x0f 
0x00 0x01 0x18 0x10 0x00 0x1c 0x00 0x11 0x18 
   001376 [ts=10749952ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=11 data=0x07 0x00 0x04 0x00 0x10 0x1d 0x00 0xff 0xff 
0x00 0x28 
   001376 [ts=10749952ssb, mod=4 level=0] rxed att command: read group type 
req; conn=1 start_handle=0x001d end_handle=0xffff
   001376 [ts=10749952ssb, mod=4 level=0] txed att command: read group type 
rsp; conn=1 length=20
   001376 [ts=10749952ssb, mod=4 level=0] host tx hci data; handle=1 length=46
   001376 [ts=10749952ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x2e 
0x00 0x2a 0x00 0x04 0x00 0x11 0x14 0x1d 0x00 0x20 0x00 0x84 0xaa 0x60 0x74 0x52 
0x8a 0x8b 0x86 0xd3 0x4c 0xb7 0x1d 0x1d 0xdc 0x53 0x8d 0x21 0x00 0xff 0xff 0x2d 
0x71 0xa2 0x59 0xb4 0x58 0xc8 0x12 0x99 0x99 0x43 0x95 0x12 0x2f 0x46 0x59 
   001377 [ts=10757764ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001377 [ts=10757764ssb, mod=4 level=0] handle:1 pkts:1
   001380 [ts=10781200ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=11 data=0x07 0x00 0x04 0x00 0x08 0x01 0x00 0x0b 0x00 
0x03 0x28 
   001380 [ts=10781200ssb, mod=4 level=0] rxed att command: read type req; 
conn=1 start_handle=0x0001 end_handle=0x000b
   001380 [ts=10781200ssb, mod=4 level=0] txed att command: read type rsp; 
conn=1 length=7
   001380 [ts=10781200ssb, mod=4 level=0] host tx hci data; handle=1 length=41
   001380 [ts=10781200ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x29 
0x00 0x25 0x00 0x04 0x00 0x09 0x07 0x02 0x00 0x02 0x03 0x00 0x00 0x2a 0x04 0x00 
0x02 0x05 0x00 0x01 0x2a 0x06 0x00 0x02 0x07 0x00 0x02 0x2a 0x08 0x00 0x08 0x09 
0x00 0x03 0x2a 0x0a 0x00 0x02 0x0b 0x00 0x04 0x2a 
   001381 [ts=10789012ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001381 [ts=10789012ssb, mod=4 level=0] handle:1 pkts:1
   001384 [ts=10812448ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=11 data=0x07 0x00 0x04 0x00 0x08 0x0c 0x00 0x0f 0x00 
0x03 0x28 
   001384 [ts=10812448ssb, mod=4 level=0] rxed att command: read type req; 
conn=1 start_handle=0x000c end_handle=0x000f
   001384 [ts=10812448ssb, mod=4 level=0] txed att command: read type rsp; 
conn=1 length=7
   001384 [ts=10812448ssb, mod=4 level=0] host tx hci data; handle=1 length=13
   001384 [ts=10812448ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x0d 
0x00 0x09 0x00 0x04 0x00 0x09 0x07 0x0d 0x00 0x20 0x0e 0x00 0x05 0x2a 
   001384 [ts=10812448ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001384 [ts=10812448ssb, mod=4 level=0] handle:1 pkts:1
   001387 [ts=10835884ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=11 data=0x07 0x00 0x04 0x00 0x08 0x1d 0x00 0x20 0x00 
0x03 0x28 
   001387 [ts=10835884ssb, mod=4 level=0] rxed att command: read type req; 
conn=1 start_handle=0x001d end_handle=0x0020
   001387 [ts=10835884ssb, mod=4 level=0] txed att command: read type rsp; 
conn=1 length=21
   001387 [ts=10835884ssb, mod=4 level=0] host tx hci data; handle=1 length=27
   001387 [ts=10835884ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x1b 
0x00 0x17 0x00 0x04 0x00 0x09 0x15 0x1e 0x00 0x14 0x1f 0x00 0x48 0x7c 0x99 0x74 
0x11 0x26 0x9e 0xae 0x01 0x4e 0xce 0xfb 0x28 0x78 0x2e 0xda 
   001387 [ts=10835884ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001387 [ts=10835884ssb, mod=4 level=0] handle:1 pkts:1
   001391 [ts=10867132ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=7 data=0x03 0x00 0x04 0x00 0x0a 0x03 0x00 
   001391 [ts=10867132ssb, mod=4 level=0] rxed att command: read req; conn=1 
handle=0x0003
   001392 [ts=10874944ssb, mod=4 level=0] host tx hci data; handle=1 length=19
   001392 [ts=10874944ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x13 
0x00 0x0f 0x00 0x04 0x00 0x0b 0x6e 0x69 0x6d 0x62 0x6c 0x65 0x2d 0x62 0x6c 0x65 
0x70 0x72 0x70 0x68 
   001392 [ts=10874944ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001392 [ts=10874944ssb, mod=4 level=0] handle:1 pkts:1
   001395 [ts=10898380ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=7 data=0x03 0x00 0x04 0x00 0x0a 0x0b 0x00 
   001395 [ts=10898380ssb, mod=4 level=0] rxed att command: read req; conn=1 
handle=0x000b
   001395 [ts=10898380ssb, mod=4 level=0] host tx hci data; handle=1 length=13
   001395 [ts=10898380ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x0d 
0x00 0x09 0x00 0x04 0x00 0x0b 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
   001396 [ts=10906192ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001396 [ts=10906192ssb, mod=4 level=0] handle:1 pkts:1
   001399 [ts=10929628ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=9 data=0x05 0x00 0x04 0x00 0x04 0x0f 0x00 0x0f 0x00 
   001399 [ts=10929628ssb, mod=4 level=0] rxed att command: find info req; 
conn=1 start_handle=0x000f end_handle=0x000f
   001399 [ts=10929628ssb, mod=4 level=0] txed att command: find info rsp; 
conn=1 format=1
   001399 [ts=10929628ssb, mod=4 level=0] host tx hci data; handle=1 length=10
   001399 [ts=10929628ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x0a 
0x00 0x06 0x00 0x04 0x00 0x05 0x01 0x0f 0x00 0x02 0x29 
   001400 [ts=10937440ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001400 [ts=10937440ssb, mod=4 level=0] handle:1 pkts:1
   001403 [ts=10960876ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=9 data=0x05 0x00 0x04 0x00 0x04 0x0f 0x00 0x0f 0x00 
   001403 [ts=10960876ssb, mod=4 level=0] rxed att command: find info req; 
conn=1 start_handle=0x000f end_handle=0x000f
   001403 [ts=10960876ssb, mod=4 level=0] txed att command: find info rsp; 
conn=1 format=1
   001403 [ts=10960876ssb, mod=4 level=0] host tx hci data; handle=1 length=10
   001403 [ts=10960876ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x0a 
0x00 0x06 0x00 0x04 0x00 0x05 0x01 0x0f 0x00 0x02 0x29 
   001403 [ts=10960876ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001403 [ts=10960876ssb, mod=4 level=0] handle:1 pkts:1
   001409 [ts=11007812ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=9 data=0x05 0x00 0x04 0x00 0x04 0x20 0x00 0x20 0x00 
   001409 [ts=11007812ssb, mod=4 level=0] rxed att command: find info req; 
conn=1 start_handle=0x0020 end_handle=0x0020
   001409 [ts=11007812ssb, mod=4 level=0] txed att command: find info rsp; 
conn=1 format=1
   001409 [ts=11007812ssb, mod=4 level=0] host tx hci data; handle=1 length=10
   001409 [ts=11007812ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x0a 
0x00 0x06 0x00 0x04 0x00 0x05 0x01 0x20 0x00 0x02 0x29 
   001409 [ts=11007812ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001409 [ts=11007812ssb, mod=4 level=0] handle:1 pkts:1
   001412 [ts=11031248ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=9 data=0x05 0x00 0x04 0x00 0x12 0x0f 0x00 0x02 0x00 
   001413 [ts=11039060ssb, mod=4 level=0] rxed att command: write req; conn=1 
handle=0x000f
   001413 [ts=11039060ssb, mod=64 level=1] subscribe event; conn_handle=1 
attr_handle=14 reason=1 prevn=0 curn=0 previ=0 curi=1
   001413 [ts=11039060ssb, mod=4 level=0] txed att command: write rsp; conn=1 
   001413 [ts=11039060ssb, mod=4 level=0] host tx hci data; handle=1 length=5
   001413 [ts=11039060ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x05 
0x00 0x01 0x00 0x04 0x00 0x13 
   001413 [ts=11039060ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001413 [ts=11039060ssb, mod=4 level=0] handle:1 pkts:1
   001416 [ts=11062496ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=9 data=0x05 0x00 0x04 0x00 0x12 0x0f 0x00 0x02 0x00 
   001416 [ts=11062496ssb, mod=4 level=0] rxed att command: write req; conn=1 
handle=0x000f
   001417 [ts=11070308ssb, mod=4 level=0] txed att command: write rsp; conn=1 
   001417 [ts=11070308ssb, mod=4 level=0] host tx hci data; handle=1 length=5
   001417 [ts=11070308ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x05 
0x00 0x01 0x00 0x04 0x00 0x13 
   001417 [ts=11070308ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001417 [ts=11070308ssb, mod=4 level=0] handle:1 pkts:1
   001420 [ts=11093744ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=9 data=0x05 0x00 0x04 0x00 0x12 0x20 0x00 0x01 0x00 
   001420 [ts=11093744ssb, mod=4 level=0] rxed att command: write req; conn=1 
handle=0x0020
   001420 [ts=11093744ssb, mod=64 level=1] subscribe event; conn_handle=1 
attr_handle=31 reason=1 prevn=0 curn=1 previ=0 curi=0
   001420 [ts=11093744ssb, mod=4 level=0] txed att command: write rsp; conn=1 
   001421 [ts=11101556ssb, mod=4 level=0] host tx hci data; handle=1 length=5
   001421 [ts=11101556ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x05 
0x00 0x01 0x00 0x04 0x00 0x13 
   001421 [ts=11101556ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001421 [ts=11101556ssb, mod=4 level=0] handle:1 pkts:1
   001424 [ts=11124992ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001424 [ts=11124992ssb, mod=4 level=0] handle:1 pkts:1
   001428 [ts=11156240ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=15 data=0x0b 0x00 0x04 0x00 0x52 0x1f 0x00 0x00 0x00 
0x00 0x00 0x00 0x01 0x00 0x00 
   001428 [ts=11156240ssb, mod=4 level=0] rxed att command: write cmd; conn=1 
handle=0x001f
   0x01 0x00 0x6c 0x00 0x68 0x00 0x04 0x00 0x1b 0x1f 0x00 0x69 0x72 0x6d 0x65 
0x64 0xf5 0x66 0x61 0x63 0x74 0x69 0x76 0x65 0xf5 0x69 0x70 0x65 0x72 0x6d 0x61 
0x6e 0x65 0x68 0x00 0x04 0x00 0x1b 0x1f 0x00 0x01 0x00 0x00 0xf4 0x00 0x01 0x00 
0x00 0xbf 0x66 0x69 0x6d 0x61 0x67 0x65 0x73 0x9f 0xbf 0x64 0x73 0x6c 0x6f 0x74 
0x00 0x67 0x76 0x65 0x72 0x73 0x69 0x6f 0x6e 0x65 0x30 0x2e 0x30 0x2e 0x30 0x64 
0x68 0x61 0x73 0x68 0x58 0x20 0xd9 0xa7 0x35 0xac 0x58 0x2f 0x22 0x5f 0x8b 0x43 
0xb7 0x1b 0x4d 0xae 0x29 0x50 0xdb 0x9a 0xa0 0x40 0x93 0x2b 0x6c 0xa1 0x17 0xf0 
0x6d 0x6b 0xd7 0x2c 0x83 0xa2 0x68 0x62 0x6f 0x6f 0x74 0x61 0x62 0x6c 0x65 0xf5 
0x67 0x70 0x65 0x6e 0x64 0x69 0x6e 0x67 0xf4 0x69 0x63 0x6f 0x6e 0x66 
   001457 [ts=11382788ssb, mod=4 level=1] GATT procedure initiated: notify; 
att_handle=31
   001457 [ts=11382788ssb, mod=4 level=0] txed att command: notify req; conn=1 
handle=0x001f
   001457 [ts=11382788ssb, mod=4 level=0] host tx hci data; handle=1 length=108
   001457 [ts=11382788ssb, mod=4 level=0] ble_hs_hci_65 0x6e 0x74 0xf4 0xff 
0xbf 0x64 0x73 0x6c 0x6f 0x74 0x01 0x67 0x76 0x65 0x72 0x73 0x69 0x6f 0x6e 0x65 
0x30 0x2e 0x30 0x2e 0x30 0x64 0x68 0x61 0x73 0x68 0x58 0x20 0x7a 0xd9 0x2c 0x45 
0x61 0xa5 0x62 0x40 0xd2 0x33 0x4c 0xd6 0x54 0xee 0x50 0x44 0xe8 0x18 0x02 0xe5 
0x6c 0x73 0x71 0x95 0x2b 0xe1 0x88 0xe7 0x28 0x65 0x8f 0xf1 0x68 0x62 0x6f 0x6f 
0x74 0x61 0x62 0x6c 0x65 0xf4 0x67 0x70 0x65 0x6e 0x64 
   001458 [ts=11390600ssb, mod=4 level=1] GATT procedure initiated: notify; 
att_handle=31
   001458 [ts=11390600ssb, mod=4 level=0] txed att command: notify req; conn=1 
handle=0x001f
   001458 [ts=11390600ssb, mod=4 level=0] host tx hci data; handle=1 length=57
   001459 [ts=11398412ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x39 
0x00 0x35 0x00 0x04 0x00 0x1b 0x1f 0x00 0x69 0x6e 0x67 0xf4 0x69 0x63 0x6f 0x6e 
0x66 0x69 0x72 0x6d 0x65 0x64 0xf4 0x66 0x61 0x63 0x74 0x69 0x76 0x65 0xf4 0x69 
0x70 0x65 0x72 0x6d 0x61 0x6e 0x65 0x6e 0x74 0xf4 0xff 0xff 0x6b 0x73 0x70 0x6c 
0x69 0x74 0x53 0x74 0x61 0x74 0x75 0x73 0x02 0xff 
   001461 [ts=11414036ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001461 [ts=11414036ssb, mod=4 level=0] handle:1 pkts:1
   001465 [ts=11445284ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001465 [ts=11445284ssb, mod=4 level=0] handle:1 pkts:1
   001468 [ts=11468720ssb, mod=4 level=0] Number of Completed Packets: 
num_handles=1
   001468 [ts=11468720ssb, mod=4 level=0] handle:1 pkts:1
   001470 [ts=11484344ssb, mod=4 level=0] ble_hs_hci_evt_acl_process(): 
conn_handle=1 pb=2 len=15 data=0x0b 0x00 0x04 0x00 0x52 0x1f 0x00 0x02 0x00 
0x00 0x00 0x00 0x01 0x01 0x05 
   001470 [ts=11484344ssb, mod=4 level=0] rxed att command: write cmd; conn=1 
handle=0x001f
   001486 [ts=11609336ssb, mod=4 level=1] GATT procedure initiated: notify; 
att_handle=31
   001486 [ts=11609336ssb, mod=4 level=0] txed att command: notify req; conn=1 
handle=0x001f
   001486 [ts=11609336ssb, mod=4 level=0] host tx hci data; handle=1 length=21
   001486 [ts=11609336ssb, mod=4 level=0] ble_hs_hci_acl_tx(): 0x01 0x00 0x15 
0x00 0x11 0x00 0x04 0x00 0x1b 0x1f 0x00 0x03 0x00 0x00 0x06 0x00 0x01 0x01 0x05 
0xbf 0x62 0x72 0x63 0x00 0xff 
   ```
   
   On my side Ive now been disconnected, but you can see its just hanging out 
in idle, but it doesnt know it was disconnected its not advertising anything
   
   ```
   Resetting target
   0x000000dc in ?? ()
   (gdb) r
   The "remote" target does not support "run".  Try "help target" or "continue".
   (gdb) c
   Continuing.
   ^C
   Program received signal SIGTRAP, Trace/breakpoint trap.
   os_tick_idle (ticks=1920) at 
repos/apache-mynewt-core/hw/mcu/nordic/nrf52xxx/src/hal_os_tick.c:165
   165      if (ticks > 0) {
   (gdb) where
   #0  os_tick_idle (ticks=1920) at 
repos/apache-mynewt-core/hw/mcu/nordic/nrf52xxx/src/hal_os_tick.c:165
   #1  0x0000891e in os_idle_task (arg=<optimized out>) at 
repos/apache-mynewt-core/kernel/os/src/os.c:117
   #2  0x00000000 in ?? ()
   (gdb) 
   ```
   
   
   
   If I reset power erase was successful
   ```
   Jacobs-Air:node-newtmgr jacobrosenthal$ newtmgr image list -cnimble_bleprph 
   Images:
    slot=0
       version: 0.0.0
       bootable: true
       flags: active confirmed
       hash: d9a735ac582f225f8b43b71b4dae2950db9aa040932b6ca117f06d6bd72c83a2
   Split status: N/A (0)
   Jacobs-Air:node-newtmgr jacobrosenthal$ 
   ```

----------------------------------------------------------------
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