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

Increase number of Characteristics

I am using the ble_blinky example (s132) and want to increase the number of characteristics. I get the error code 4. I think the storage capacity is not the reason why I can't create more characteristics. In the a try I implemented some variables to see if I can still create the same number of characteristics, and yes I can. I read in some old Posts about a limitation for the GATT Table or the number of characters per service but I couldn't find these parameters anymore.

I tried with the the is_value_user parameter as well. Maybe I haven't used it right but the number of characteristics didn't increase and reacted the same way like before.

I hope somebody has an idea

Parents
  • Hi Moe,

    As Steve suggested, you may need to increase NRF_SDH_BLE_VS_UUID_COUNT. In addition to this you may also need to increase the RAM size allocated for the Softdevice. If you enable the NRF_LOG module you will get a message if this is necessary. To enabled NRF_LOG go to sdk_config.h and search for "NRF_LOG_ENABLED"

    // <e> NRF_LOG_ENABLED - nrf_log - Logger
    //==========================================================
    #ifndef NRF_LOG_ENABLED
    #define NRF_LOG_ENABLED 1
    #endif

    Best Regards,

    Marjeris

  • Hey msromero,

    thank you for the fast response. With the "NRF_LOG_ENABLED" it told me to change the RAM size. The Log Output is: " <error> app: Fatal error" and the error code is still 4. Increasing the NRF_SDH_BLE_VS_UUID_COUNT didn't worked either. The error Codes are still the same and I can't get more Characteristics.

Reply Children
Related