cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Bluetooth

NiLi_2861801
New Contributor II

Hi ,

     My device has no need to open bluetooth at some time like from 00:00 - 8:00 everyday, but it should be awake for sensor to record the value.  Can the bluetooth stack be closed alone to save the power? How to?

thanks.

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator

You need to use WICED_SLEEP_ALLOWED_WITHOUT_SHUTDOWN in your application. The power modes can't be selected in the Wiced SDK. The device will choose it automatically.

You just need to stop the adv and scan to shut down the RF part. You can start advertising when you need.

View solution in original post

6 Replies
Owen_Zhang123
Moderator
Moderator

Do you mean you need to run the application all the time but just shut down the RF part some time?

0 Likes
NiLi_2861801
New Contributor II

Hi zhxh.

   Yes. 

    And is it possible to lower down the MCU speed when RF closed?

    And How many current should be measured at J15 while SDS mode?

Owen_Zhang123
Moderator
Moderator

The HCLK will not run in the sleep mode. For the low power mode, you may refer to this document for the low power mode and how to use it.

http://www.cypress.com/file/415986/download

The current is about 1.5 uA floor current and 3 channel adv at 100 ms interval is about 30 uA. You can test on your own board for your application.

NiLi_2861801
New Contributor II

Hi zhxh,

    Sorry I can't understand the PMU low_power mode document. I dont know how to switch between these power modes. 

    Do you mean I should return WICED_SLEEP_ALLOWED_WITHOUT_SHUTDOWN not WICED_SLEEP_ALLOWED_WITH_SHUTDOWN in the sleep_permit_handler ? Then the mcu will running my own application and the RF will be closed? When the closing time is ended, How to restart the bluetooth stack? Bond a GPIO as wakeup source and give it a level changing?

Thanks

0 Likes
NiLi_2861801
New Contributor II

WICED_SLEEP_ALLOWED_WITHOUT_SHUTDOWN  - this mode will close the peripherals including SPI what I need to communicat with g-sensor.

0 Likes
Owen_Zhang123
Moderator
Moderator

You need to use WICED_SLEEP_ALLOWED_WITHOUT_SHUTDOWN in your application. The power modes can't be selected in the Wiced SDK. The device will choose it automatically.

You just need to stop the adv and scan to shut down the RF part. You can start advertising when you need.

View solution in original post