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

How to increase the maximum number of characteristics per service supported by this module?

Hello,

I'm working on a project with SoftDevice s120. I played with the project ble_app_multilink_central. The maximum number of characteristics per service supported by a module is 3. But I have a module have a service with 8 characteristics.

How to increase the maximum number of characteristics per service supported by this module?

I try to change the BLE_DB_DISCOVERY_MAX_CHAR_PER_SRV in "ble_db_discovery.h" to 8. The module will hang when it initialize.

#define BLE_DB_DISCOVERY_MAX_CHAR_PER_SRV   3

Maximum number of characteristics per service supported by this module.

Edit: format.

Parents
  • You should be able to increase it, if you only have 1 service with 8 characteristics, you should be able to set

    #define BLE_DB_DISCOVERY_MAX_SRV          1  /**< Maximum number of services supported by this module. This also indicates the maximum number of users allowed to be registered to this module. (one user per service). */
    #define BLE_DB_DISCOVERY_MAX_CHAR_PER_SRV 8  /**< Maximum number of characteristics per service supported by this module. */
    

    I find it a bit hard to believe that the module hangs on init, since the init only consists of:

    uint32_t ble_db_discovery_init(void)
    {
        m_num_of_handlers_reg      = 0;
        m_initialized              = true;
        m_num_of_discoveries_made  = 0;
        m_pending_usr_evt_index    = 0;
    
        return NRF_SUCCESS;
    }
    
  • Peter, thanks for this responce and responce in this post.

    But if in "file ble_db_discovery.h" I change BLE_DB_DISCOVERY_MAX_CHAR_PER_SRV and BLE_DB_DISCOVERY_MAX_SRV, source code of SoftDevice will be customized. This is no good.

    Second: Is the MCP use S120 to discover any devices? MCP do not have limit to max charecteristics per service. In my peripherial I use 1 service with 4 charecteristics and MCP discover all char-s.

    What to do?

Reply
  • Peter, thanks for this responce and responce in this post.

    But if in "file ble_db_discovery.h" I change BLE_DB_DISCOVERY_MAX_CHAR_PER_SRV and BLE_DB_DISCOVERY_MAX_SRV, source code of SoftDevice will be customized. This is no good.

    Second: Is the MCP use S120 to discover any devices? MCP do not have limit to max charecteristics per service. In my peripherial I use 1 service with 4 charecteristics and MCP discover all char-s.

    What to do?

Children
No Data
Related