AN223400 need update

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

cross mob
StN__1917156
Level 4
Level 4
25 replies posted 10 replies posted 5 replies posted

I was trying to reproduce example given in 002-23400_AN223400_Getting_Started_with_EZ-BT_WICED_Modules.pdf  with WICED 6.2 and

CYBT-413034-EVAL, but 3 of the steps on page 21/22 are not applicable as the mentioned code is missing with what is actually provided   with WICED studio 6.2:

There is no  wiced_bt_app_init();  in hello_sensor_application_init()  so cant make:

Comment out wiced_bt_app_init(); as required on page 21/22

There is no :  

// wiced_hal_gpio_configure_pin( WICED_GPIO_BUTTON, WICED_GPIO_BUTTON_SETTINGS(

GPIO_EN_INT_RISING_EDGE ), WICED_GPIO_BUTTON_DEFAULT_STATE );

// wiced_hal_gpio_register_pin_for_interrupt( WICED_GPIO_BUTTON, hello_sensor_interrupt_handler,

NULL );

to comment out as required on page 22

instead I commented:

in hello_sensor.c:hello_sensor_application_init

//    wiced_platform_register_button_callback( WICED_PLATFORM_BUTTON_1, hello_sensor_interrupt_handler, NULL, WICED_PLATFORM_BUTTON_RISING_EDGE);

But this probably is not enough as the result is not quite perfect - the app stalls if from the Android Client try to connect SPP mode, disconnect, then BLE  or vise versa

0 Likes
1 Solution
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi rfq1_1917156​,

wiced_bt_app_init() function is not there in hello_sensor.c for CYBT-413043; this comment should be there for CYBT-343026.

// wiced_hal_gpio_configure_pin( WICED_GPIO_BUTTON, WICED_GPIO_BUTTON_SETTINGS(

GPIO_EN_INT_RISING_EDGE ), WICED_GPIO_BUTTON_DEFAULT_STATE );

// wiced_hal_gpio_register_pin_for_interrupt( WICED_GPIO_BUTTON, hello_sensor_interrupt_handler,

NULL );

This section is in hello_sensor.c for CYBT-343026, it is not there for CYBT-413043. This is mentioned on page 22.

Thanks for pointing out.! I will accelerate this to team internally.

View solution in original post

0 Likes
1 Reply
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi rfq1_1917156​,

wiced_bt_app_init() function is not there in hello_sensor.c for CYBT-413043; this comment should be there for CYBT-343026.

// wiced_hal_gpio_configure_pin( WICED_GPIO_BUTTON, WICED_GPIO_BUTTON_SETTINGS(

GPIO_EN_INT_RISING_EDGE ), WICED_GPIO_BUTTON_DEFAULT_STATE );

// wiced_hal_gpio_register_pin_for_interrupt( WICED_GPIO_BUTTON, hello_sensor_interrupt_handler,

NULL );

This section is in hello_sensor.c for CYBT-343026, it is not there for CYBT-413043. This is mentioned on page 22.

Thanks for pointing out.! I will accelerate this to team internally.

0 Likes