- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
WICED Studio
- Tags:
- sleep mode wifi
- wiced
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you.
The question has been resolved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I use STM32F412
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
The problem has been resolved.
Thank you