cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

HiIg_4537276
New Contributor II

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
KotnaniK_71
Employee

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

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.

HiIg_4537276
New Contributor II

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
KotnaniK_71
Employee

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

HiIg_4537276
New Contributor II

Thank you.

The question has been resolved.

0 Likes
AxLi_1746341
Honored Contributor

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
KotnaniK_71
Employee

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
AxLi_1746341
Honored Contributor

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
AxLi_1746341
Honored Contributor

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
HiIg_4537276
New Contributor II

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
KotnaniK_71
Employee

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
HiIg_4537276
New Contributor II

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
AxLi_1746341
Honored Contributor

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
HiIg_4537276
New Contributor II

Hello

I use STM32F412

Thank you

0 Likes
HiIg_4537276
New Contributor II

Hello

The problem has been resolved.

Thank you

0 Likes