Hi,
I am using the MCU on a board with sensors that are sampled in a very high rate (~100Hz).
I am having issues when trying to send the data with notification on more then one characteristic.
The information is sent correctly for a short time (~30 seconds) and then the connection get stuck and unresponsive.
When the connection "crashes" i start getting NRF_ERROR_RESOURCES from sd_ble_gatts_hvx(*pointer_conn_handle, &hvx_params);
Initially i thought it is because the queue was very small (the default value of 1) however even after changing it to 10 it still does it.
I use the following code to change it:
ble_cfg_t ble_cfg;
memset(&ble_cfg, 0, sizeof ble_cfg);
ble_cfg.conn_cfg.conn_cfg_tag = APP_BLE_CONN_CFG_TAG;
ble_cfg.conn_cfg.params.gatts_conn_cfg.hvn_tx_queue_size = 10;
err_code = sd_ble_cfg_set(BLE_CONN_CFG_GATTS, &ble_cfg, ram_start);
I have 2 questions:
1. how can i config the system to allow much more bandwidth as i will need several notification simultaneously?
2. how can i avoid crashes in case of overload? i saw this post but couldn't understand how to use it on my project as the data structs are different.
I am using NRF52832 (custom board) with freeRTOS (based on the HRS freeRTOS example) SDK15, and SD 6.0
BR,
Danny