Requirement "Sleep Mode Level 1 after 30 second of idle" & "Sleep Mode Level 2 after 30 minute or idle"
Based on the requirement i need to configure the sleep mode. but i notice than in BLE Status Polling, when the ble_status_aaa == T5S_CONNECTED_STATUS_AAA, the device will enter the sleep after 60 second being idle. This match to the "Sleep Mode Level 2" where enter deep sleep when the ble is currently connected and working.
For Sleep Mode Level 1, i notice that in the BLE Power Manager, the if the device is not active, it will enter the suspend mode. therefore do i still need to implement the "idle count > 30 seconds" condition ? And Is there any value limit that i can set to compare with idle count (like if i want compare the idle count with 30 minute) is that able (guide me on how can i decide that).
i was given the task to enable two different sleep mode level, where in sleep mode level 1 only can be awaken by timer | pad while the sleep mode level 2 only by pad.
When you call the sleep function, set the correct wake-up source. If you need to use sleep mode level 1, set timer and pad. If you need to use sleep mode level 2, only set pad.
The time-based judgment conditions can be handled using the "clock_time" function.