Hi, Could you also clarify how to change cc2540/41 state to PM3 programmatically? I tried to use 'osal_pwrmgr_powerconserve()' function but it doesn't seem to change power consumed ( current measured on KeyFob.. 1.6 - 1.7 mA before and after). Is it the proper way at all?
Is that function the only way to set PM3 state? Regards, Evgeny.
Though I'm not familiar with Bluetooth FW, the cc254x and cc253x
sharing the same peripherals and power modes (Radio is the major difference).
Read the OSAL_API.pdf, in Z-stack calling osal_pwrmgr_powerconserve() otside
of OSAL is not a wise thing to do.
Evgeny Lunevcurrent measured on KeyFob.. 1.6 - 1.7 mA before and after
While measuring this current the keyfob is connected to debugger?
In debug mode cc254x and cc253x SoC's emulates deep sleep power modes (PM2 and PM3),
but consumes much more power.
>>While measuring this current the keyfob is connected to debugger?
Sure not, with debugger the usual current is about 17-18 mA.
So, qeustion remains - how to shift to PM3 mode from application stack?...
And then we can talk again.
Please click the Verify Answer button on a post if it answers your question! :)
Thank you, we've already stambled upon it)
but there is another question, related to it
how to detect disconnect event (due to explicit request or timeout). I saw several related events like
GAPROLE_INIT = 0,GAPROLE_STARTED, GAPROLE_ADVERTISING, GAPROLE_WAITING, GAPROLE_WAITING_AFTER_TIMEOUT, GAPROLE_CONNECTED, GAPROLE_ERROR
but there is no disconnect event as such or something like that. What is best suitable event for disconnect ? Or disconnect handling functions should be triggered in some other way?
Any suggestions on how to catch disconnect event?
Any help highly appreciated.
From observation running the BLE v1.2,
if disconnection was caused by link supervision timeout, you will be notified of the new GAP state GAPROLE_WAITING_AFTER_TIMEOUT;
otherwise will be notified of GAPROLE_WAITING.
just checked - it works)
So perhaps you can verify the previous answer to mark this thread as solved.
Not mine but the one who gave you the answer! Whatever. Bye!
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.