This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[CC2640R2F] 關於BLE Advertising disable 時的耗電流問題.



您好,

SDK version: simplelink_cc2640r2_sdk_4_10_00_10

使用範例:ti\simplelink_cc2640r2_sdk_4_10_00_10\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral_oad_offchip

用simple_peripheral_oad_offchip這範例來做 Advertising  enable 5秒 再Advertising  disable 10秒的廣播循環控制.

用電流儀器抓出來的電流圖發現, Advertising  disable 時, 會有不間斷的pulse出現, 如下:

為了釐清不是我加的程式造成, 所以接著做另一實驗, 將simple_peripheral_oad_offchip 的原始code,  在static void SimplePeripheral_init(void) API裡 把initialAdvertEnable設為false不讓它上電就廣播:

initialAdvertEnable = false;

GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8_t),  &initialAdvertEnable);

之後再測量電流, 發現沒廣播時本來就會有這些不間斷的pulse產生, 如下:

除非我不去執行此行程式, 把它tag:

// VOID GAPRole_StartDevice(&SimplePeripheral_gapRoleCBs);

等於不去執行BLE device, 才不會有這些pulse產生.

請問一下, 該如何在Advertising  disable 時, 不要有這些不間斷的pulse產生呢? 這些pulse是從何而來,讓如何關閉它來達到省電的效率, 謝謝.