Is there a relation between connection event length and connection intervel?
From my understanding connection intervel = connection event + sleep time. That is after the connection event the device sleeps, then wakes up on next intervel to process the event. Is this right?
Is only one event in one intervel?
/*
* Connection Event Length Ranges
* Size: 2 bytes.
* Unit: 0.625ms.
* Range: maximum possible (0 - (40959.375ms ~ 41s))
*/
/*
* Connection Interval Ranges
* Size: 2 bytes
* Unit: 1.25ms.
* Range: 7.5ms - 4s.
*/
How we use eventLengthMax which 41s and intervelLengthMax 4s together? How this is possible?
In KW36 sample example 'frdmkw36_wireless_examples_bluetooth_temp_coll_bm',
gapConnectionRequestParameters_t gConnReqParams =
{
.scanInterval = 36,
.scanWindow = 36,
.filterPolicy = (uint8_t)gUseDeviceAddress_c,
.ownAddressType = gBleAddrTypePublic_c,
.connIntervalMin = gcConnectionIntervalMinDefault_c,
.connIntervalMax = gcConnectionIntervalMinDefault_c,
.connLatency = 0,
.supervisionTimeout = 0x03E8,
.connEventLengthMin = 0,
.connEventLengthMax = 0xFFFF,
.initiatingPHYs = (uint8_t)gLePhy1MFlag_c,
};
Here event length is ~41 sec and connection intervel is 50 ms. Please clarify this.
Best Regards,
Nidhin