Hi,
I'm writing an application for CC2541-based device (BLE-CC2541-1.2.1 stack).
So I'm wondering - in oder to switch the device to PM3 mode
all I have to do is to stop all application timers?
Or anything else should be done - like disabling sllep timers of RF wake event?
Thank you.
BR,
Evgeny.
Hi Evgeny,
You are correct, make sure that there is no Application activity and the device is not connected. The device should then go into PM3 automatically.
Br
Thank you for reply.
Can I check somehow that it is really PM3?
Say, watch some variable through debugger? Or through other means?
You can check it, for example, by measuring current consumption :)
http://www.ti.com/lit/an/swra347a/swra347a.pdf
Please click the Verify Answer button on a post if it answers your question! :)
Yes, I had it in mind ) but
ubfortunately we've got many periferial sensor on our device,
so not only chip consumes power and it's hard to guess actual state by current..
would be great to douvle check by some other means.. if it's posseble
Evgeny
Unfortunately in debug mode, the device cannot be in lower power modes. i.e when it is connected to the CC Debugger or SmartRF Studio the device cannot enter sleep mode, hence it would be difficult to read out whether the device is in PM3. Unfortunately the best way here would be to measure the current in the different modes to determine the state
---------------------------------------------------------------------------------------------------------Please click the Verify Answer button on this post if it answers your question.---------------------------------------------------------------------------------------------------------
Back to the PM3 transition I explicitly switched off all timers in application (no activity)
and the device is not in connection but judging by oscillograph 32KHz clock still running - so presumably it is in PM2.
Should I correct something in BLE stack source files? hal_sleep.c or smth.?