About Sleep Functionality

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

cross mob
HiIg_4537276
Level 3
Level 3
10 replies posted 5 replies posted 5 questions asked

Hello

Function processing in the functions of Wiced

Please tell me the sleep function.

What we want to realize is as follows.

------------------------------------

(1) The monitoring target flag is initially OFF.

(2) The function starts processing. Check the status of the monitoring target flag.

(3) Sleeps for 60 seconds if the monitoring target flag is not ON.

(4) After 60 seconds, check the monitoring target flag again.

(5) Repeat steps (2) ~ (4) until it is confirmed that the monitoring target flag is ON.

(6) If it is confirmed that the monitoring target flag is ON, the subsequent processing is performed.

------------------------------------

Thank you

0 Likes
1 Solution

Hi,

wiced_rtos_delay_milliseconds() function can be used for sleep mode. You can check this in the ping_powersave app present in the directory : 43xxx_Wi-Fi/apps/snip/ping_powersave/ping_powersave.c.

Please define PLATFORM_MCU_POWERSAVE_MODE_INIT=PLATFORM_MCU_POWERSAVE_MODE_SLEEP in your application make file for the system to enter sleep state.

Thanks.

View solution in original post

14 Replies
KotnaniK_71
Employee
Employee
50 likes received 25 likes received 10 likes received

Hi,

Can you let me know the WICED version you are using and the type of chip used in your setup.

Please refer to the power save app note for Sleep state which is available in the directory : 43xxx_Wi-Fi/doc/WICED-Powersave-App-Note.pdf if you are performing WICED power save implementation.

Thanks.

Hi

Thank you for your reply.

The implementation environment is as follows.
・ Chip model: CYW43438
・ SDK: WICED-Studio-6.4


I investigated further after asking this question.
We thought that this could be achieved by calling wiced_result_t wiced_rtos_delay_milliseconds (uint32_t milliseconds).
I want you to tell me if I am wrong.

Thank you

0 Likes

Hi,

wiced_rtos_delay_milliseconds() function can be used for sleep mode. You can check this in the ping_powersave app present in the directory : 43xxx_Wi-Fi/apps/snip/ping_powersave/ping_powersave.c.

Please define PLATFORM_MCU_POWERSAVE_MODE_INIT=PLATFORM_MCU_POWERSAVE_MODE_SLEEP in your application make file for the system to enter sleep state.

Thanks.

Thank you.

The question has been resolved.

0 Likes

KotnaniK_71 wrote:

Please define PLATFORM_MCU_POWERSAVE_MODE_INIT=PLATFORM_MCU_POWERSAVE_MODE_SLEEP in your application make file for the system to enter sleep state.

Are you sure this define can work for CYW43438?

0 Likes

Hi,

It's related to MCU power saving and is for host processor.

CYW43438 is a Wi-Fi combo chip where you have to use the WICED API functions to control the Wi-Fi power saving.

Thanks.

0 Likes

KotnaniK_71 wrote:

Hi,

It's related to MCU power saving and is for host processor.

CYW43438 is a Wi-Fi combo chip where you have to use the WICED API functions to control the Wi-Fi power saving.

Thanks.

My point is PLATFORM_MCU_POWERSAVE_MODE_INIT define only has impact on BCM4390x.

It's nothing to do with CYW43438 and it's host.

0 Likes

HiIg_4537276 wrote:

We thought that this could be achieved by calling wiced_result_t wiced_rtos_delay_milliseconds (uint32_t milliseconds).

This looks incorrect to me.

Even though you call wiced_rtos_delay_milliseconds() in your application,

there are other tasks running.

0 Likes

Hello

Thank you for pointing out.

I have a problem with debugging and I haven't confirmed the operation yet.

I feel that we still need to investigate this matter.

0 Likes

Hi,

Can you please share some more insights about monitoring target flag and the host processor you're using.

Also, please provide the debug logs or error screenshots to investigate further.

Thanks.

0 Likes

Hello

I may not know the meaning of the host.
I now think that the host is a chip model.

There is also a problem with current debugging.
Because the detailed contents of the problem are written here
Can you tell me if you know?

<About breakpoints during debugging >


Thank you

0 Likes

HiIg_4537276 wrote:

Hello

I may not know the meaning of the host.
I now think that the host is a chip model.

Which module are you using?

0 Likes

Hello

I use STM32F412

Thank you

0 Likes

Hello

The problem has been resolved.

Thank you

0 Likes