Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to configure multiple notifications per connection event

Hi, 

I'm trying to improve throughput by increasing the notification buffer number to 6. (SD132, V 5.0.0, SDK14.2)

I tried to follow the sequence charts as well as use sd_ble_cfg_set() in ble_stack_init() but it does not seem to work.

	ble_cfg_t ble_cfg;
	ble_cfg.conn_cfg.params.gatts_conn_cfg.hvn_tx_queue_size = 6;	
	APP_ERROR_CHECK(sd_ble_cfg_set(APP_BLE_CONN_CFG_TAG, &ble_cfg, ram_start));

What is the correct way to do it?

Thanks

Parents Reply
  • Thanks.

    I've changed to BLE_CONN_CFG_GATTS as you advised and increased APP_RAM_START (+0x100 bytes)

    Strangely, nrf_sdh_ble_enable() returns NRF_ERROR_NO_MEM, even if I explicitly set hvn_tx_queue_size= 1...

    	ble_cfg_t ble_cfg;
    	ble_cfg.conn_cfg.params.gatts_conn_cfg.hvn_tx_queue_size = 1;	// Tried 6
    	err_code = sd_ble_cfg_set(BLE_CONN_CFG_GATTS, &ble_cfg, ram_start); 
    	APP_ERROR_CHECK(err_code);	
    
        // Enable BLE stack.
        err_code = nrf_sdh_ble_enable(&ram_start);  // this call returns NRF_ERROR_NO_MEM
        APP_ERROR_CHECK(err_code);
    

Children
Related