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

Disconnecting on Generic Attribute PrimaryService(0x1801) discovery

Hi! I use S130 on nRF51822 device. After device is connected as peripheral I try to discover services using Master Control Panel but device disconnects. In Master Control Panel I see that central tries to get ServiceChanged characteristics of Generic Attribute service (0x1801). Please look at attached screenshot:image description

I tried it on S110 and it works well. So, is it bug in S130 SoftDevice?

Parents
  • FormerMember
    0 FormerMember

    If service discover fails in your application in Master Control Panel, the problem is most likely that the event BLE_GATTS_EVT_SYS_ATTR_MISSING is not being handled. If the application doesn't support boding, it can for example be handled the following way in on_ble_evt(..) in main.c:

    case BLE_GATTS_EVT_SYS_ATTR_MISSING:
            err_code = sd_ble_gatts_sys_attr_set(m_peripheral_conn_handle, NULL, 0);
            APP_ERROR_CHECK(err_code);
            break;
    
Reply
  • FormerMember
    0 FormerMember

    If service discover fails in your application in Master Control Panel, the problem is most likely that the event BLE_GATTS_EVT_SYS_ATTR_MISSING is not being handled. If the application doesn't support boding, it can for example be handled the following way in on_ble_evt(..) in main.c:

    case BLE_GATTS_EVT_SYS_ATTR_MISSING:
            err_code = sd_ble_gatts_sys_attr_set(m_peripheral_conn_handle, NULL, 0);
            APP_ERROR_CHECK(err_code);
            break;
    
Children
No Data
Related