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

BLE GATT_INTERNAL_ERROR 129

Hi,

I am doing development on Android platform. I am using Marshmallow device to develop my BLE application. Many times I am getting status code 129 in onServicesDiscovered() method. After that connection gets disconnected. And it goes into infinite loop. I have tested on 3 different devices, In all the devices I found same issue. This is random issue. I searched on many forums but didn't found any solutions yet.

Following are the things that I have tried:

  1. Refreshing Gatt cache using reflection.
  2. Reinstalling applicaiton.
  3. Unpairing and pairing the BLE device.
  4. Turning On/Off Bluetooth and wifi. Only restarting the phone is resolving this issue. But I can't ask user to restart phone if application is unable to make connection to BLE device.

What is the root cause of this issue? Is there any sure shot solution for this?

I have checked the Android open source code also for this. I found following URL for status codes.

android.googlesource.com/.../gatt_api.h

Please anyone provide me some hint or solution for this.

Thank you

Related