Hello,
I try to send multi notification in one connection interval, but I can only send one notification.
Hardware
Peripheral: nrf52832 costumed board (with BMD-300 module).
Central: nrf52832, BMD-300 evaluation kit
Software
Soft device: 5.1.0
BLE configuration
- PHY: 2Mpbs
- ATT MTU: 247 bytes
- DLE: enable
- Connection interval: 7.5 msec (min and max)
- Extended BLE connection: enable
- HVN tx queue size: 7
- BLE_GAP_EVENT_LENGTH: 320
Application
Base on Nordic UART example (peripheral and central) - NUS.
The problem:
I used the API ‘ble_nus_string_send’ to send packet (notification). I try to send packets until I get error code ‘NRF_ERROR_RESOURCES’. Then I wait for BLE_GATTS_EVT_HVN_TX_COMPLETE event and try to send again. In the BLE_GATTS_EVT_HVN_TX_COMPLETE event the counter (‘gatts_evt.params.hvn_tx_complete.count’) is always 1.
When I used the API ‘ble_nus_string_send’ the return code is only NRF_SUCCESS or NRF_ERROR_RESOURCES.
In the begging I succeed to push 7 packets to the HVN queue before receiving BLE_GATTS_EVT_HVN_TX_COMPLETE event, and after this I succeed to push only 1 packet.
What can be the problem? How can I send more the one notification during one connection interval base on NUS?