How to setup HIDOFF(CYW20706) with ModusToolbox + BTSDK

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

cross mob
TaMi_1708256
Level 2
Level 2
50 sign-ins First like given 25 sign-ins

Hi

I'm trying to implement HIDOFF using GPIO.
It worked fine with WICED Studio 6.x.
However, it does not work well with ModusTollbox2.3 + BT SDK (3.0 / 3.1).
In the case of Modus, 20706 go to HIDOFF, but it wakes up after 5 seconds without GPIO operation.

For Example

wiced_hal_gpio_register_pin_for_interrupt( WICED_GPIO_BUTTON, NULL, NULL );
wiced_hal_gpio_configure_pin( WICED_GPIO_BUTTON,WICED_GPIO_BUTTON_SETTINGS(GPIO_EN_INT_FALLING_EDGE), WICED_GPIO_BUTTON_DEFAULT_STATE );
wiced_power_save_start(WICED_WAKE_SOURCE_GPIO, 0);

Please tell me the correct setting of HIDOFF for ModusToolbox/BTSDK.

I am testing with the CYBT-343026-EVAL01 board. GPIO uses P0.

Best Regards,

 

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

Update:

The issue showed up in multiple versions of SDK unevenly. It will be solved in the upcoming BTSDK (v3.3). 

View solution in original post

5 Replies
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

Is it periodically waking up at every 5 seconds?

Could you please share your full code with us? we will try check the code and reproduce the issue.

 

Thanks,

-Dheeraj

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

Hi Dheeraj
Thank you for your reply.

I attached the test app code of HIDOFF .

In the case of this test APP, it will be "HIDOFF" after startup soon. And then 30 seconds later it unintentionally wakes up.

...
[2021-08-30 12:43:13.099] Bluetooth Enabled (success)
[2021-08-30 12:43:13.147] Shutdown - Entering power save
[2021-08-30 12:43:42.976] **** App Start ****
[2021-08-30 12:43:43.086] Unhandled Bluetooth Management Event: 0x15 (21)
[2021-08-30 12:43:43.095] Bluetooth Enabled (success)
[2021-08-30 12:43:43.145] Shutdown - Entering power save
[2021-08-30 12:44:12.977] **** App Start ****
[2021-08-30 12:44:13.089] Unhandled Bluetooth Management Event: 0x15 (21)
...

Please check this code.

Regards,

 

0 Likes

Hi 

Did the attached test app work?

Regards,

0 Likes

Hi  Dheeraj

Do you have any update ?

Regards,

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

Update:

The issue showed up in multiple versions of SDK unevenly. It will be solved in the upcoming BTSDK (v3.3).