cancel
Showing results for 
Search instead for 
Did you mean: 

ModusToolbox Bluetooth SDK

TaMi_1708256
New Contributor

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
3 Replies
DheerajPK_41
Moderator
Moderator

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
TaMi_1708256
New Contributor

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
TaMi_1708256
New Contributor

Hi 

Did the attached test app work?

Regards,

0 Likes