This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to check connection fail?

Hi, I'm using nRF52832, SDK13.0.0 as peripheral.

My iPhone app(my company's) makes connection without problem. But Android app gets connection fail when it tries to connect.

Android callback function is onConnectionStateChange(BluetoothGatt gatt, int status, int newState) callback value of status = 133 (Not success, GATT_ERROR)

I think it's not nordic's problem but i want to know debugging point.

Is there any chance of getting event regarding connection before "BLE_GAP_EVT_CONNECTED" event? Or do you have good experience in this case for Android?

I need your help.

  • Roger, you need to learn how to use BLE sniffer/radio analyzer and how to read the logs. This is typical example of situation which can be debugged indirectly by spending days and weeks by looking into traces from blackbox like Android phone or you can understand to what is happening in few hours after making few radio logs.

    But I guess I'm not the first one on this forum who suggests this way to you...

  • Hi Roger, could you provide some more information about your Android device ? We have seen error 133 quite often in the past but didn't have a clear explanation why it happens. You can try to add some delay before you do anything after connection established. As you can read about it here and here.

    Also, please try using the nRFConnect app for testing.

  • Hi. Hung Bui. Thank you very much for your help. Your reply is perfect. That's what i really wanted. I already read a lot of documents here about 133 error, but there was not a perfect answer to me as you know. Now I read your link, I think i have a good point to debug. I'll add some delay as your recommendation. And i'll try to run github.com/.../pc-nrfconnect-ble app. Thank you very much again.

Related