Hello,
I am using nRF52840 and I currently am working on a application where mostly I am using central functionality (BLE connection and exchange the data) along with cellular connection (bg96 sim module to connect the device with MQTT) and following BLE links...
NRF_SDH_BLE_PERIPHERAL_LINK_COUNT 1
NRF_SDH_BLE_CENTRAL_LINK_COUNT 11
NRF_SDH_BLE_TOTAL_LINK_COUNT 12
Overall functionality is to connect with multiple peripheral, take data from them and upload it on cloud via MQTT.
Now as per currently developed code, my application requires about 164 KB RAM. So just for safer side, I have set 170 KB of RAM.
Now my central device works well up to 10 peripheral devices (it got connected with 10 peripherals), no crash, stable BLE connection and everything works just fine.
As soon as it connects with 11th peripheral device, following problems gets generated at random point of time...
- Sometimes central device generated fatal error during BLE connection.
- Sometimes central device generated fatal error at random point of time when there was any activity to be performed (such as exchange the data over BLE).
- Unstable BLE connection. Which means any of the peripheral device gets disconnected and connected again and this happens at random point of time.I thought it was an issue of RAM. I have also tried with 250 KB of RAM and then also the same problem gets appeared.
FYI: As per Nordic documentation, there's support of 20 total ble links. My ultimate requirement is to establish the central connection with 15 peripheral devices (15 BLE central links) in parallel.
So I need help to overcome such kind of issues so that I can properly establish the 15 BLE connection with peripherals in parallel. Any help will be highly appreciated.
Thanks & Regards
Vivek