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

ble_app_lbs error

I have an issue with the ble_app_lbs. I can compile it OK, but when I run it it gets as far as calling sd_ble_gap_device_name_set(), which returns error 0x3001.

Can someone tell me why this might be?

Parents
  • If you are using SD7, there is a code sequence to enable the SD.

        // Enable BLE stack
        ble_enable_params_t ble_enable_params;
        memset(&ble_enable_params, 0, sizeof(ble_enable_params));
        ble_enable_params.gatts_enable_params.service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT;
        err_code = sd_ble_enable(&ble_enable_params);
        APP_ERROR_CHECK(err_code);
    

    That is what I found by comparing the init stack with new hrs example. It solves the problem of that error but I could't get the custom service working yet. There may be other differences between SD6 & SD7 that need to change.

Reply
  • If you are using SD7, there is a code sequence to enable the SD.

        // Enable BLE stack
        ble_enable_params_t ble_enable_params;
        memset(&ble_enable_params, 0, sizeof(ble_enable_params));
        ble_enable_params.gatts_enable_params.service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT;
        err_code = sd_ble_enable(&ble_enable_params);
        APP_ERROR_CHECK(err_code);
    

    That is what I found by comparing the init stack with new hrs example. It solves the problem of that error but I could't get the custom service working yet. There may be other differences between SD6 & SD7 that need to change.

Children
Related