Dear all,
I'm trying to build a system with 1 central to 9 peripherals. All devices are based on nRF52832, SDK16, s132 7.0.1.
I've checked this post to get some clues but still quite confusing while scheduling.
Here are some questions I have for scheduling and connection parameters:
- Can peripherals using GAP_EVENT_LENGTH different with each other?
- CONNECTION_INTERVAL should be unified for all the peripherals and central device? Which eaquals to
∑tevent-Cx+scanWindow+tScanReserved ? - How to determine central GAP_EVENT_LENGTH?
∑tevent-Cx ? - Should I set MIN_CONNECTION_INTERVAL and MAX_CONNECTION to the same value get better performance?
For example, I have Peripheral one with GAP_EVENT LENGTH set to 5 (which is 6.25ms) and other eight peripherals with GAP_EVENT LENGTH set to 2 (which is 2.5ms). Total gap_event length needed is 6.25 + 2.5 * 8 = 26.25ms, thus the central GAP_EVENT_LENGTH should be 22(27.5ms). Considering 10ms scan window and some scan reserved time. I set both CONNECTION_INTERVAL to 40ms for all devices, SCAN_INTERVAL is set to 40ms for central. Is it the correct thinking?
But the peripherals disconnect periodically.
*Besides, I can't set MTU_SIZE to maximum value if I set CENTRAL_LINK_COUNT to 9. It shows
.
Following is snippet of compiler message of my cenrtral device code, I've set the RAM exactally the size compiler told me so I guess I've spared as much RAM as possible to softdevice?

Any help is appreciated,
Thanks!