4 posts / 0 new
Last post
dhrishi
Offline
Last seen:3 years 3 months ago
加入:2017-02-10 09:56
How to set the BLE connection event duration to maximum

Hi,

我用祝福外围的解决方案。我不ed to set the BLE connection event duration to maximum window value.
In user_config.h file in my app, I see it as (which I suppose means that use smallest window possible?):
/// Minimum Connection Event Duration measured in ble double slots (1.25ms)
/// use the macro MS_TO_DOUBLESLOTS to convert from milliseconds (ms) to double slots
.ce_len_min = MS_TO_DOUBLESLOTS(0),

/// Maximum Connection Event Duration measured in ble double slots (1.25ms)
/// use the macro MS_TO_DOUBLESLOTS to convert from milliseconds (ms) to double slots
.ce_len_max = MS_TO_DOUBLESLOTS(0),

For maximum window coverage, do I directly set it to 0xFFFF, or any other value?
.ce_len_min = 0xFFFF,
.ce_len_max = 0xFFFF,

If not, what is the right way to do this?

Device:
Qinjiny_Dialog
Offline
Last seen:3 weeks 2 days ago
Staff
加入:2016-11-01 05:47
Hi, dhrishi

Hi, dhrishi

The default value (0) means there's no limitation, the connection will continue as long as the slave wants to and the window is available. The option exists in order to allow people to limit it if they need.

BR,

Qinjin Yang

dhrishi
Offline
Last seen:3 years 3 months ago
加入:2017-02-10 09:56
Thanks a lot for your reply.

Thanks a lot for your reply. So, keeping both min and max as zero is the same as setting them to max value 0xFFFF. Is this what you mean?

Qinjiny_Dialog
Offline
Last seen:3 weeks 2 days ago
Staff
加入:2016-11-01 05:47
Keep them as they are now

Keep them as they are now (zeros) should be what you expected to do. Honestly I'm not sure what's going to happen if you set them to 0xFFFF