微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI蓝牙设计交流 > 采用CyclingSensor的sample用手机app连接快到30S的时候会自动断掉

采用CyclingSensor的sample用手机app连接快到30S的时候会自动断掉

时间:10-02 整理:3721RD 点击:

采用CyclingSensor的sample用手机app连接

连接成功cyclingsensor定时1S发送一个notify包给手机,

快到30S的时候会连接断开。

不知道什么原因

参数如下

// Fast advertising interval in 625us units.  625*32 = 20ms (recommended)
#define DEFAULT_FAST_ADV_INTERVAL                32

// Duration of fast advertising duration in ms
#define DEFAULT_FAST_ADV_DURATION                20000

// Duration of advertising to white list members only after link termination
#define DEFAULT_WHITE_LIST_ADV_DURATION          10000

// Slow advertising interval in 625us units.  625*1704 = 1065ms (recommended)
#define DEFAULT_SLOW_ADV_INTERVAL                1704

// Duration of slow advertising duration in ms (set to 0 for continuous advertising)
#define DEFAULT_SLOW_ADV_DURATION                20000

// How often to perform sensor's periodic event (ms)
#define DEFAULT_CSC_PERIOD                       1000

// Whether to enable automatic parameter update request when a connection is formed
#define DEFAULT_ENABLE_UPDATE_REQUEST            FALSE

// Minimum connection interval (units of 1.25ms) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL        200

// Maximum connection interval (units of 1.25ms) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL        1600

// Slave latency to use if automatic parameter update request is enabled
#define DEFAULT_DESIRED_SLAVE_LATENCY            0

// Supervision timeout value (units of 10ms) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_CONN_TIMEOUT             1000


keep me,

你用的是254x 还是26xx?

另外有没有换一个手机试试呢?或者把代码里面POWER_SAVING关闭试试看。

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top