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

ios connect nrf52832 failed.

hi:

App <lightblue or nrf connect> (ipone6) connect nrf52832 failed .But using Android won't cause this problem.

Here is the log that failed to connect  lightblue:

<debug> nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.
<debug> nrf_ble_gatt: Updating data length to 251 on connection 0x0.
<debug> btk_ble_bcs: bcs : BLE_GAP_EVT_CONNECTED
<info> app: Connected.
<debug> nrf_ble_gatt: ATT MTU updated to 185 bytes on connection 0x0 (response).
<info> app: Data len is set to 0xB6(182)
<debug> app: ATT MTU exchange completed. central 0xF7 peripheral 0xF7
<debug> nrf_ble_gatt: Data length updated to 27 on connection 0x0.
<debug> nrf_ble_gatt: max_rx_octets: 27
<debug> nrf_ble_gatt: max_tx_octets: 27
<debug> nrf_ble_gatt: max_rx_time: 328
<debug> nrf_ble_gatt: max_tx_time: 328
<debug> app: ATT MTU exchange completed. central 0xF7 peripheral 0xF7
<debug> btk_ble_bcs: bcs : BLE_GATTS_EVT_WRITE
<info> app: Fast advertising.
<info> app: Disconnected.

Parents Reply
  • Hi Mttrinh:

     iPhone connect with nrfConnect but disconnect after 30 seconds. 

    I've revised it. But I don't know why.

    Add

    static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context){

    .........

    case BLE_GATTS_EVT_SYS_ATTR_MISSING:
    // No system attributes have been stored.
    err_code = sd_ble_gatts_sys_attr_set(m_conn_handle, NULL, 0, 0);
    APP_ERROR_CHECK(err_code);
    break;

    .........

    }

Children
No Data
Related