CYW20706, wiced_sleep_config, bt_wake, host_wake

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

cross mob
adam
Level 4
Level 4
5 solutions authored 25 replies posted 50 sign-ins

Hi there, 

IDE: modustool box version 2.4.0

Chip: CYW20706

Project: LE_Hello_Sensor

I want to control Pin BT_DEV_WAKE(GPIO36, WICED_P36) as a IO output Pin, 

but when I call wiced_sleep_config (TRUE, WICED_WAKE_GPIO_ACTIVE_LOW,  WICED_WAKE_GPIO_ACTIVE_LOW); in APPLICATION_START()

the PIO36 is difficult to control output HI, output LO, 

I am confuse about is  wiced_sleep_config () limited the control of PIO36?

so, I want to set  wiced_sleep_config (TRUE, NULL, NULL), 

but build project error. 

I don't know any step go wrong.

adam_0-1649995829262.png

 

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi, 

If you enable sleep mode using wiced_sleep_config and configured the Dev_wake and Host_Wake active modes, then those pins will be under the control of the FW which controls the sleep modes. 

By the way, there is a bug in the current SDK in configuring low power mode for cyw20706. We are internally debugging and fixing the issue. The fix will be available in the upcoming SDK.

Thanks,

-Dheeraj.P.K

View solution in original post

0 Likes
3 Replies
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi, 

If you enable sleep mode using wiced_sleep_config and configured the Dev_wake and Host_Wake active modes, then those pins will be under the control of the FW which controls the sleep modes. 

By the way, there is a bug in the current SDK in configuring low power mode for cyw20706. We are internally debugging and fixing the issue. The fix will be available in the upcoming SDK.

Thanks,

-Dheeraj.P.K

0 Likes
adam
Level 4
Level 4
5 solutions authored 25 replies posted 50 sign-ins

Hi @DheerajPK_41 , 

So if I set Dev_wake and Host_Wake output hi, 20706 will not go to sleep mode, am I correct ?

thanks,

Adam

0 Likes
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Update:

Based on the below parameter, we can wake up the device or host. We should define the polarity in wiced_sleep_config_t.

sleep_config.device_wake_mode
sleep_config.host_wake_mode

0 Likes