- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
- Labels:
-
Wifi+Bluetooth
- Tags:
- ble
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What's the length of data transport into notification? Try to send the length <= MTU-3.
Regards
Jenson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just send 0x13 with this function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 );
}
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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" ?
yans
Any update?