6 Replies Latest reply on Jun 28, 2018 2:55 AM by AxLi_1746341

    BLE : Buffer Corrupted

      Hello,

      In WICED V6.1

      When I'm trying to send a notification with BLE function wiced_bt_gatt_send_notification, I had :

       

      00:02:03.955000 GKI_exception(): Task State Table

      00:02:03.960000 GKI_exception 65535 Enqueue - Buffer corrupted

       

       

      Can you help me to understand the problem ?

        • 1. Re: BLE : Buffer Corrupted
          ShengY_96

          What's the length of data transport into notification?  Try to send the length <= MTU-3.

           

          Regards

          Jenson

          • 2. Re: BLE : Buffer Corrupted

            I just send 0x13 with this function.

            • 3. Re: BLE : Buffer Corrupted
              ShengY_96

              Please check if the hello_sensor demo code's send notification will be helpful:

               

              void hello_sensor_send_message( void )

              {

                  WICED_BT_TRACE( "hello_sensor_send_message: CCC:%d\n", hello_sensor_hostinfo.characteristic_client_configuration );

               

               

                  /* If client has not registered for indication or notification, no action */

                  if ( hello_sensor_hostinfo.characteristic_client_configuration == 0 )

                  {

                      return;

                  }

                  else if ( hello_sensor_hostinfo.characteristic_client_configuration & GATT_CLIENT_CONFIG_NOTIFICATION )

                  {

                      uint8_t *p_attr = (uint8_t*)hello_sensor_char_notify_value;

               

               

                      wiced_bt_gatt_send_notification( hello_sensor_state.conn_id, HANDLE_HSENS_SERVICE_CHAR_NOTIFY_VAL, sizeof(hello_sensor_char_notify_value), p_attr );

                  }

                  else

                  {

                      if ( !hello_sensor_state.flag_indication_sent )

                      {

                          uint8_t *p_attr = (uint8_t *)hello_sensor_char_notify_value;

               

               

                          hello_sensor_state.flag_indication_sent = TRUE;

               

               

                          wiced_bt_gatt_send_indication( hello_sensor_state.conn_id, HANDLE_HSENS_SERVICE_CHAR_NOTIFY_VAL, sizeof(hello_sensor_char_notify_value), p_attr );

                      }

                  }

              }

              • 4. Re: BLE : Buffer Corrupted
                AxLi_1746341

                The main problem is the normal developer have no idea to address the error like "Enqueue - Buffer corrupted".

                You should explain what kind of situation can cause "Enqueue - Buffer corrupted".

                2 of 2 people found this helpful
                • 5. Re: BLE : Buffer Corrupted

                  Before sending 0x13 with wiced_bt_gatt_send_notification() function, I sent 0x12 in my code without error.

                  I will try the code you send me but :

                  What does it means "Enqueue- Buffer corrupted" ?

                   

                  • 6. Re: BLE : Buffer Corrupted
                    AxLi_1746341

                    jerome_2594171 wrote:

                     

                    Before sending 0x13 with wiced_bt_gatt_send_notification() function, I sent 0x12 in my code without error.

                    I will try the code you send me but :

                    What does it means "Enqueue- Buffer corrupted" ?

                     

                    ShengY_96

                    Any update?