官方CH582F-EVT-C[外部背板]開發(fā)板,CH583EVT 2.0 2024-01-16。
PM例程測試正常,各模式下電流均正常。
未開啟HAL_SLEEP
BLE Peripheral 可被手機藍牙調(diào)試助手連接,可收發(fā)消息,調(diào)試信息一直打印
BLE Broadcaster 藍牙調(diào)試助手可發(fā)現(xiàn)設備
BLE Observer 調(diào)試信息一直打印附近設備
BLE RF_PHY 調(diào)試信息一直打印"STA: 1"
開啟HAL_SLEEP
#define HAL_SLEEP? ? ? ? ? ? ? ? ? ? ? ? ? ?TRUE
BLE Peripheral 手機藍牙調(diào)試助手無法發(fā)現(xiàn)設備,調(diào)試信息停止打印
BLE Broadcaster 藍牙調(diào)試助手不可發(fā)現(xiàn)設備
BLE Observer 調(diào)試信息一直打印附近設備,無影響
BLE RF_PHY 調(diào)試信息僅打印一次"STA: 1"
CH58X_LowPower每次入口參數(shù)都一樣,2000左右,復位重新運行可改變,運行后即為固定值。
uint32_t CH58X_LowPower(uint32_t time)
{
? ? PRINT("%d\n", time);
...
}
time_sleep = time + (RTC_TIMER_MAX_VALUE - time_curr);
time_sleep值一直大于SLEEP_RTC_MAX_TIME導致無法進入低功耗
CH583EVT和CH592EVT中SLEEP_RTC_MAX_TIME宏定義方法不一樣,將CH583EVT修改為CH592EVT方法
#define SLEEP_RTC_MAX_TIME? ? ? ? ? ? ? ? ? (RTC_TIMER_MAX_VALUE -? 1000 * 30)
幾秒后可進入低功耗,uA級,但是功能是不正常的,未進入低功耗前不能搜索到。
請問如何測試BLE相關(guān)例程的低功耗模式,謝謝。