CC2541如何减少收发连接间隔?
CC2541如何减少收发连接间隔? 要修改哪些参数?
这些参数里应该改哪些? 尝试改过 DEFAULT_DESIRED_MIN_CONN_INTERVAL ,但通过示波器观察,发送间隔并没有改变。
// What is the advertising interval when device is discoverable (units of 625us, 160=100ms)
#define DEFAULT_ADVERTISING_INTERVAL 160
// General discoverable mode advertises indefinitely,origin GAP_ADTYPE_FLAGS_LIMITED
#define DEFAULT_DISCOVERABLE_MODE GAP_ADTYPE_FLAGS_GENERAL
// Minimum connection interval (units of 1.25ms, 80=100ms) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 80
// 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 0
// Supervision timeout value (units of 10ms, 1000=10s) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_CONN_TIMEOUT 1000
// Whether to enable automatic parameter update request when a connection is formed
#define DEFAULT_ENABLE_UPDATE_REQUEST FALSE
// Connection Pause Peripheral time value (in seconds)
#define DEFAULT_CONN_PAUSE_PERIPHERAL 8
// Company Identifier: Texas Instruments Inc. (13)
#define TI_COMPANY_ID 0x000D
#define INVALID_CONNHANDLE 0xFFFF
您指的是connection interval?
您可以参考下论坛之前的帖子 http://www.deyisupport.com/question_answer/wireless_connectivity/bluetooth/f/103/t/18625.aspx
希望对您有所帮助。
这个参数是跟功耗紧密关联的,如果对功耗有更高的要求,推荐 TI 的新一代 BLE 产品 CC2640。