TI中文支持网
TI专业的中文技术问题搜集分享网站

关于定时事件的疑问

#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 600

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

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

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

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

上述我把connection event 的基本配置如上,如果我有一个100ms的定时事件,和上述那个配置是怎么协调的?

Yan:

waiting,

定时事件到时,51会自动启动处理你的定时事件。

如果这时connection interval 也到了,那么就会优先处理RF 的RX 和TX。

waiting:

回复 Yan:

Yan

就是说如果当时定时事件到了,slave lantency 计数到5,处理完定时事件后,会以5为开始计算跳过的连接事件,可以这样理解吧?设置了slave lantency ,如果此时connection  interval 来到时,还是会处理定时事件的吧?

yi zhang23:

回复 waiting:

slave latency不是只有空包的时候才生效吗?从机端有数据需要发送的话,优先级还是会高于定时事件的吧?

赞(0)
未经允许不得转载:TI中文支持网 » 关于定时事件的疑问
分享到: 更多 (0)