About cyw20719B2 Shut Down Sleep(SDS) mode

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JiZh_4619191
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

Hi,

Since CYW20719B1KUMLG went out of production, I modified my project to CYW920719B2Q40EVB-01_EVALUATION_BOARD.

On WICED-studio, this project can switch to "Shut Down Sleep (SDS)" mode (CYW20719B1KUMLG chip, CYW920719Q40EVB-01_EVALUATION_BOARD).

But It can't switch to SDS on ModusToolbox (CYW20719B2KUMLG chip, CYW920719B2Q40EVB-01_EVALUATION_BOARD).

What is the difference between WICED-studio and ModusToolbox SDS of low power mode configuration?

Regards,

Jian

0 Likes
1 Solution

Hi,

Not sure whether you were able to solve the issue or not.

When I tried GATT_Server code which you have attached in the latest BTSDKv2.8, I couldn't see a restart behavior. Could you please also check with the latest BTSDK? But I saw many Sleep configuration parameters are commented out from the code, which is wrong. Please set the parameters correctly.

Thanks,

-Dheeraj

View solution in original post

0 Likes
5 Replies
lock attach
Attachments are accessible only for community members.
JiZh_4619191
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

My project files.

0 Likes
JiZh_4619191
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

Without wiced_bt_stack_init(), this project can switch to SDS mode.

With wiced_bt_stack_init(),  this project will switch to SDS mode and restart immediately!

What's wrong???

0 Likes

Hi,

Is the same application is used in WICED?

"Without wiced_bt_stack_init(), this project can switch to SDS mode"

I doubt it's due to the configured advertising interval in wiced_bt_cfg.c. Now the duration is configured to infinite. So the device might not be going to low power state properly.

Generally, WICED_SLEEP_ALLOWED_WITH_SHUTDOWN  value is returned by the sleep_permit_handler, the device will enter to Timed-Wake or HIDOff mode. In HID Off everything is OFF and the SRAM is not retained. The only wakeup source is an LHL GPIO interrupt. The device starts executing from reset after wakeup.

Are you sure that the device goes to the sleep mode? Please share if you have any device side trace.

Also, Could you please share a buildable project ? I couldn't test the app by programming it because I got some compile errors.

Thanks,

-Dheeraj

0 Likes
lock attach
Attachments are accessible only for community members.

Hi,

Thank you so much for your reply!

"microCAM.rar" is "WICED-studio" project. When client device write "SLEEP_SERVER", it can switch into SDS mode, then "WAKEUP_SERVER" can wake it up.

"GATT_server.rar" is modified from "microCAM.rar" for "ModusToolbox". But it can not switch into SDS mode.

"GATT_server.rar" problem has confused me for a long time.

Best regards,

Jian

0 Likes

Hi,

Not sure whether you were able to solve the issue or not.

When I tried GATT_Server code which you have attached in the latest BTSDKv2.8, I couldn't see a restart behavior. Could you please also check with the latest BTSDK? But I saw many Sleep configuration parameters are commented out from the code, which is wrong. Please set the parameters correctly.

Thanks,

-Dheeraj

0 Likes