- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I am trying to broadcast custom data for say 10 Sec and then go to deep sleep mode.
then Wake the after 8 Sec using WDT (counter 2) and then start broadcasting. continue doing the same forever.
but in the first time it broadcast for 10 sec. after timeout period. it go to Deepsleep mode. wakeup after 8 Sec( confirmed by toogling BLue LED in WDT ISR).
but does not Advertise furthur...
suggestions are most welcome.
i am attaching my project for Reference.
Thanks
Amol
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
These might be useful -
http://www.cypress.com/?rID=78797 AN86233 - PSoC® 4 Low-Power Modes and Power Reduction Techniques
http://www.cypress.com/?rID=96072 AN90114 - PSoC® 4000 Family Low-Power System Design Techniques
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
These might be useful -
http://www.cypress.com/?rID=78797 AN86233 - PSoC® 4 Low-Power Modes and Power Reduction Techniques
http://www.cypress.com/?rID=96072 AN90114 - PSoC® 4000 Family Low-Power System Design Techniques
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In your project you are not starting the advertisement after WDT interrupt
use api CyBle_GappStartAdvertisement(CYBLE_ADVERTISING_FAST) to start advertisement.
Regards,
Vikas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Eventhhough i write CyBle_GappStartAdvertisement(CYBLE_ADVERTISING_FAST); at the end of ISR it doesnt start advertisng.
Also there is no need to write it in the isr, because control should return to the point where i had left after executing the isr and continue normal operation. in that case it should advertise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Vikas,
Finally your attachment is the answer to my problems. I have been searching for a solution for weeks. One thing I noted however, in the code below, when I comment out the commented bit, it works. Without commenting it out however, my system always stays in advertising mode. Is the a reason for this? I do not really understand it.
else if(blessState != CYBLE_BLESS_STATE_EVENT_CLOSE)
{
/* If BLESS is active, then configure PSoC 4 BLE system in
* Sleep mode (~1.6mA current consumption) */
//CySysClkWriteHfclkDirect(CY_SYS_CLK_HFCLK_ECO);
//CySysClkImoStop();
CySysPmSleep();
CySysClkImoStart();
CySysClkWriteHfclkDirect(CY_SYS_CLK_HFCLK_IMO);
}
Thanks for your help.
Best regards,
Eugenia