我想可能是由于连接间隔时间过长,单板无法传输所有的采样数据。这是它断开的原因吗?为什么它在wrap_platform_reset中停止?谢谢。< / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords / connection-interval”“=“skos:概念”属性=“rdfs: label skos: prefLabel” datatype="">connection interval
// Modify Conn Params
if (app_state == APP_SECURITY || app_state == APP_PARAM_UPD || app_state == APP_CONNECTED)
{
struct gapc_param_update_cmd * req = KE_MSG_ALLOC(gapc_param_update_cmd, TASK_GAPC, TASK_APP,)
#ifndef __DA14581__
req->params.intv_min = PREFERRED_CONN_INTERVAL_MIN;
//填充参数结构
req->// N * 1.25ms
req->params.intv_max = PREFERRED_CONN_INTERVAL_MAX;// N * 1.25ms
req->延迟= PREFERRED_CONN_LATENCY;// Conn Events skip
req->time_out = PREFERRED_CONN_TIMEOUT;// N * 10msI
#else
req->intv_min = PREFERRED_CONN_INTERVAL_MIN;// N * 1.25ms
req->intv_max = PREFERRED_CONN_INTERVAL_MAX;// N * 1.25ms
req-> // Conn Events skipped
req->time_out = PREFERRED_CONN_TIMEOUT; // N * 10ms
#endif
dbg_puts(DBG_FSM_LVL, "Send GAP_PARAM_UPDATE_REQ\r\n");
ke_msg_send(req);
ke_state_set(TASK_APP, APP_PARAM_UPD);
}
}
if I set the PREFERRED_CONN_INTERVAL_MIN being equal to PREFERRED_CONN_INTERVAL_MAX to 40, it means the connection interval is 50ms( 40*1.25ms) .??
In that position, the keyboard would disconnect after the connection is successful for several minutes.
if I set the PREFERRED_CONN_INTERVAL_MIN being equal to PREFERRED_CONN_INTERVAL_MAX to 6, the keyboard would disconnect.