1 Reply Latest reply on Jun 3, 2019 1:53 AM by SheetalJ_96

    AN223400 need update

    StN._1917156

      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

        • 1. Re: AN223400 need update
          SheetalJ_96

          Hi StN._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.