Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7485

cc2640修改哪些参数可以降低连接后的功耗?

$
0
0

cc2640我使用  simple_peripheral 例子    修改的程序,待机功耗1.7uA,但是BLE ON 连接后,功耗0.3mA。

我试着将下面参数修改,但发现没有效果 。如果 定义了 Original , 采用simple_peripheral 例子默认的参数

#ifdef Original
#define DEFAULT_ADVERTISING_INTERVAL 160
#else
#define DEFAULT_ADVERTISING_INTERVAL 1032             // 1032 * 0.625            
#endif

#ifdef Original
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 80
#else
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 240     // 240*1.25=300ms
#endif

#define DEFAULT_DESIRED_MAX_CONN_INTERVAL     800    //units of 1.25ms, 800=1000ms

// Slave latency to use if automatic parameter update request is enabled
#ifdef Original
#define DEFAULT_DESIRED_SLAVE_LATENCY 0
#else
#define DEFAULT_DESIRED_SLAVE_LATENCY 4
#endif

#ifdef Original
#define DEFAULT_DESIRED_CONN_TIMEOUT 1000         //(units of 10ms, 1000=10s)
#else
#define DEFAULT_DESIRED_CONN_TIMEOUT 600
#endif

实验结果,定义Original , 和未定义的 的电流都是0.3mA左右,

请问我还需要修改那些参数?


Viewing all articles
Browse latest Browse all 7485

Trending Articles