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

only 4 packets of data can be sent out at a time (as a slave)

I am now experiencing such a problem. I packaged 20 packets of data, each packet of data is 13 bytes, and then I want to send it out, but only 4 packets of data can be sent out at a time (as a slave), when I use When nrf_connect (as host) software receives, it can only receive the first 4 packets of data each time. Chip platform: 52832, protocol stack: s332, who knows why?
Looking forward to your reply
Parents Reply
  • Hi,

    NRF_ERROR_RESOURCES means you have run out of tx buffers in the Softdevice and that you need to wait for "tx complete" event before queueing more packets as illustrated by the message sequence chart: GATTS Handle Value Notification.

    You may increase the notification queue size and event length through sd_ble_cfg_set() in ble_stack_init(). The configuration option in sdk_config.h I mentioned earlier is not available in this SDK version. But note that the number of packets you can send per event varies between phones and what chipset they use. We have tested a selection of phones internally for this, see section 4.5 of the pdf uploaded here to see the results.

Children
No Data
Related