Other Parts Discussed in Thread: BLE-STACK
Tool/software: TI-RTOS
We have developed a project based on the "Multi-Role" example out of the SDK v1.50. This software is developed for our custom CC2640R2 based BLE device configurable as either central or peripheral.
While in peripheral mode, our device is allowed to connect with maximum of two central devices. Although, we had an issue connecting and pairing to even one of the central devices, later we found that the heap memory was falling short. (discussion on this is here)
After the inclusion of AUX ram into the SRAM, we were able to increase the heap by approximately 2KB and got the iOS device and the android device to connect and pair individually. But, connecting the iOS device and android device in succession, in any order, resulted in failed pairing of the later. From detailed inspection of the heap usage statistics it was found that the iOS device requires nearly 2.5KB of heap to successfully connect and pair and similarly the android device requires nearly 1.2KB of heap. So, the heap memory available was not enough to sustain both the connections simultaneously.
We want to know how the heap usage of a connection is distributed (for both iOS and Android connections). This would enable us to reduce the heap usage, if possible, and more importantly decide our device's limitations (in terms of number of connections, etc.) to avoid unprecedented scenarios.
Thanks and Regards.