Connection Interval data transfer slow

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
Anonymous (not verified)
Connection Interval data transfer slow

亲爱的对话框

I have changed the connection interval on a DA14583 dynamically using the code below

struct gapc_param_update_cmd * req = KE_MSG_ALLOC(GAPC_PARAM_UPDATE_CMD, TASK_GAPC, TASK_APP, gapc_param_update_cmd);

// Fill in the parameter structure
req->operation = GAPC_UPDATE_PARAMS;
if (do_fast) {
申请- >参数。intv_min = MS_TO_DOUBLESLOTS(10); // N * 1.25ms
申请- >参数。intv_max = MS_TO_DOUBLESLOTS(20); // N * 1.25ms
申请- >参数。time_out = MS_TO_TIMERUNITS(1250); // N * 10ms

}
else
{
申请- >参数。intv_min = MS_TO_DOUBLESLOTS(150); // N * 1.25ms
申请- >参数。intv_max = MS_TO_DOUBLESLOTS(200); // N * 1.25ms
申请- >参数。time_out = MS_TO_TIMERUNITS(6000); // N * 10ms
}
申请- >参数。latency = 0; // Conn Events skipped
ke_msg_send(req);

Now when I set the parameters to the slow values i.e 150,200,6000 and then through an iOS app write to around 4 bytes to a BLE characteristic, on the 14583, the data is received after around 4 seconds by the 14583. Is there a special mechanism to maintain the data transfer speed when we increase the connection interval or is this the expected behaviour.

Thanks and Regards

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
加入:2015-06-08 11:34
Hi mutahir,

Hi mutahir,

The data transfer in BLE is achieved through the connection intervals, if you have a large connection interval and if there is latency as well its expected that your data will take time to get to your peripheral device. There is no special command that will allow you to keep a steady rate while increasing the intervals, the devices are setting up an arrangement during the connection or when you update the parameters of a connection according to this arrangement they agree when they should wake up in order to communicate and send data offcourse.

Thanks MT_dialog