This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Why i can't debug Nordic supply nRF UART App source code in my Google nexus 7 II ?

I tried to debug Nordic provided Uart App code on the Google Nexus 7 II device.

But I found a problem, when I remove: LocalBroadcastManager.getInstance(this).registerReceiver(UARTStatusChangeReceiver, makeGattUpdateIntentFilter()); function, I can debug, but after connecting to the device, APP will crash.

If not removed, then at a start of the operation, it can not debug.

Parents
  • @Moriszen: I'm sorry for a late response. Do you have the device bonded to your phone before you program the UART firmware ? Android doesn't always do a service discovery right after connected (as in iOS). So sometimes when you modified the code, changed the ATT table, Android might still keep the old ATT table as in the old firmware, especially when you are bonded.

    The solution is to remove bonding, turn off and on bluetooth, or you can change the address of the device manually using sd_ble_gap_address_set() so that android will treat the device as a new device.

    Please let me know if the issue remains

Reply
  • @Moriszen: I'm sorry for a late response. Do you have the device bonded to your phone before you program the UART firmware ? Android doesn't always do a service discovery right after connected (as in iOS). So sometimes when you modified the code, changed the ATT table, Android might still keep the old ATT table as in the old firmware, especially when you are bonded.

    The solution is to remove bonding, turn off and on bluetooth, or you can change the address of the device manually using sd_ble_gap_address_set() so that android will treat the device as a new device.

    Please let me know if the issue remains

Children
No Data
Related