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

BLE does not reconnect after disconnection | Error (0x85) GATT ERROR reported on central | Unknown function at 0x0000008C8

Hi,

I am having trouble in reconnecting the BLE peripheral to a central device (a smartphone using nrf tool box app). 

In the connection, i am using static passkey to first be able to pair up the device. After successful connection, i then disconnect from central. Once i try to reconnect, it throws off an error saying  error on mtu request (133). 

In the logs on toolbox app, i see Error (0x85): GATT ERROR and unknown function at 0x0000008c8 comes in during debugging at the same time. 

Environment that i am using is SES on windows 10. I am running SDK v14.2 and SD 5.0 on nrf52832. 

Could you please let me know what can be the cause of this error? 

These are the settings i am using for my application.

#define MIN_CONN_INTERVAL               MSEC_TO_UNITS(20, UNIT_1_25_MS)             /**< Minimum acceptable connection interval (20 ms), Connection interval uses 1.25 ms units. */
#define MAX_CONN_INTERVAL               MSEC_TO_UNITS(75, UNIT_1_25_MS)             /**< Maximum acceptable connection interval (75 ms), Connection interval uses 1.25 ms units. */
#define SLAVE_LATENCY                   0                                           /**< Slave latency. */
#define APP_ADV_INTERVAL                64                                          /**< The advertising interval (in units of 0.625 ms. This value corresponds to 250 ms) */
#define APP_ADV_TIMEOUT_IN_SECONDS      60                                          /**< The advertising timeout (in units of seconds). */
#define CONN_SUP_TIMEOUT                MSEC_TO_UNITS(4000, UNIT_10_MS)             /**< Connection supervisory timeout (4 seconds), Supervision Timeout uses 10 ms units. */
#define SECURITY_REQUEST_DELAY          APP_TIMER_TICKS(400)                        /**< Delay after connection until Security Request is sent, if necessary (ticks). */

#define FIRST_CONN_PARAMS_UPDATE_DELAY  APP_TIMER_TICKS(5000)                       /**< Time from initiating event (connect or start of notification) to first time sd_ble_gap_conn_param_update is called (5 seconds). */
#define NEXT_CONN_PARAMS_UPDATE_DELAY   APP_TIMER_TICKS(30000)                      /**< Time between each call to sd_ble_gap_conn_param_update after the first call (30 seconds). */
#define MAX_CONN_PARAMS_UPDATE_COUNT    3                                           /**< Number of attempts before giving up the connection parameter negotiation. */

//Flash and RAM settings

FLASH_PH_START=0x0
FLASH_PH_SIZE=0x80000
RAM_PH_START=0x20000000
RAM_PH_SIZE=0x10000
FLASH_START=0x23000
FLASH_SIZE=0x5d000
RAM_START=0x20002968
RAM_SIZE=0xd698

//NRF INFO Logs

<info> app: Connected to a previously bonded device.
<info> app: Connected
<info> app: Passkey: ******
<info> app: BLE_GAP_EVT_CONN_SEC_UPDATE
<info> app: Security mode: 1. Security level: 3
<info> app: Link secured. Role: 1. conn_handle: 0, Procedure: 1
<info> app: Authorization succeeded!
<info> app: Disconnected
<info> app: Connected to a previously bonded device.
<info> app: Connected
<info> app: Link secured. Role: 1. conn_handle: 0, Procedure: 0
<info> app: BLE_GAP_EVT_CONN_SEC_UPDATE
<info> app: Security mode: 1. Security level: 3
<info> app: Link secured. Role: 1. conn_handle: 0, Procedure: 0

Parents Reply Children
No Data
Related