CC2540 用Btool 查看connection setting发现都是一样的?为什么

2019-07-18 15:23发布

想用btool看一下cc2540的connection setting,但是我尝试用BT00l去看cc2540的connection setting发现都是一样的,而且和我的设定也不一样。我的设定如下// Minimum connection interval (units of 1.25ms, 80=100ms) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 20
// Maximum connection interval (units of 1.25ms, 800=1000ms) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL 20
// Slave latency to use if automatic parameter update request is enabled
#define DEFAULT_DESIRED_SLAVE_LATENCY 0
// Supervision timeout value (units of 10ms, 1000=10s) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_CONN_TIMEOUT 500
// Whether to enable automatic parameter update request when a connection is formed
#define DEFAULT_ENABLE_UPDATE_REQUEST TRUE
我尝试的去改#define DEFAULT_DESIRED_MAX_CONN_INTERVAL,btool的显示也没有任何变化.难道btool里面的这个connection setting不是我设备的设定吗?请高手给指点一下,谢谢![url=http://www.deyisupport.com/cfs-file.ashx/__key/communityserver-discussions-components-files/103/0336.001.jpg][/url]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册 x
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
3条回答
广电总局
2019-07-19 00:46
Update_Para的说明在peripheral.c函数里面

static uint8_t  gapRole_ParamUpdateEnable = FALSE;

// Check whether update parameter request is enabled
if (gapRole_ParamUpdateEnable == TRUE)
{
// Get the minimum time upon connection establishment before the
// peripheral can start a connection update procedure.
uint16_t timeout = GAP_GetParamValue(TGAP_CONN_PAUSE_PERIPHERAL);

Util_restartClock(&startUpdateClock, timeout*1000);
}

你需要把定义改为TRUE

一周热门 更多>