esp_ble_gattc_write_char_descr error错误

xuanzihao
Posts: 8
Joined: Thu Dec 06, 2018 3:59 am

esp_ble_gattc_write_char_descr error错误

Postby xuanzihao » Mon Sep 09, 2019 10:35 am

你好,
我参考gatt_client的demo。在gattc_profile_event_handler 中 ESP_GATTC_REG_FOR_NOTIFY_EVT 事件中,调用 esp_ble_gattc_write_char_descr,偶尔会出现 esp_ble_gattc_write_char_descr error 的情况,然后我打开了log,看到内容如下:
esp_ble_gattc_write_char_descr, the l2cap chanel is congest.[0m
这个错误是在什么时候会出现呢?测试发现是偶尔出现的,并不是有规律出现的


log如下:

Code: Select all

[0;32mI (26097) BT_GATT: GATTC_Discover conn_id=1 disc_type=5[0m
[0;32mI (26097) BT_L2CAP: L2CA_SendFixedChnlData()  CID: 0x0004  BDA: 1804ed6e933f[0m
[0;32mI (26167) BT_GATT: GATTC_Discover conn_id=1 disc_type=5[0m
[0;32mI (26167) BT_L2CAP: L2CA_SendFixedChnlData()  CID: 0x0004  BDA: 1804ed6e933f[0m
[0;32mI (26197) BT_L2CAP: L2CA_SendFixedChnlData()  CID: 0x0004  BDA: 1804ed6e933f[0m
[0;32mI (26227) BT_L2CAP: L2CA_EnableUpdateBleConnParams - BD_ADDR 1804ed6e933f enable 1 current upd state 0x08[0m
[0;32mI (26227) BT_GATT: GATTC_ConfigureMTU conn_id=1 mtu=512[0m
[0;32mI (26227) BT_L2CAP: L2CA_SendFixedChnlData()  CID: 0x0004  BDA: 1804ed6e933f[0m
[0;32mI (26257) HXJ_BLUE_CLIENT: ESP_GATTC_CFG_MTU_EVT, Status 0, MTU 247, conn_id 0[0m
[0;32mI (26257) HXJ_BLUE_CLIENT: SEARCH RES: conn_id = 0 is primary service 1[0m
[0;32mI (26257) HXJ_BLUE_CLIENT: start handle 31 end handle 41 current handle value 31[0m
[0;32mI (26257) HXJ_BLUE_CLIENT: service found[0m
[0;32mI (26257) HXJ_BLUE_CLIENT: UUID16: fff0[0m
[0;32mI (26267) HXJ_BLUE_CLIENT: Get service information from remote device[0m
[0;32mI (26267) HXJ_BLUE_CLIENT: ESP_GATTC_SEARCH_CMPL_EVT[0m
[0;31mE (26267) HXJ_BLUE_CLIENT: count= 3[0m
[0;32mI (26267) HXJ_BLUE_CLIENT: esp_ble_gattc_get_char_by_uuid: remote_filter_write_char_uuid count: 1[0m
[0;32mI (26267) HXJ_BLUE_CLIENT: 可以写的 ESP_GATT_CHAR_PROP_BIT_WRITE_NR : count: 1 21[0m
[0;32mI (26267) HXJ_BLUE_CLIENT: esp_ble_gattc_get_char_by_uuid: remote_filter_char_uuid count: 1[0m
[0;32mI (26267) HXJ_BLUE_CLIENT: 可以注册成notify的: count: 1 24[0m
[0;32mI (26267) HXJ_BLUE_CLIENT: esp_ble_gattc_register_for_notify[0m
[0;32mI (26267) HXJ_BLUE_CLIENT: ESP_GATTC_REG_FOR_NOTIFY_EVT[0m
[0;32mI (26267) HXJ_BLUE_CLIENT: esp_ble_gattc_get_descr_by_char_handle: count: 1 len: 2 handle: 0025[0m
D (26317) BT_LOG: esp_ble_gattc_write_char_descr, the l2cap chanel is congest.[0m
[0;31mE (26367) HXJ_BLUE_CLIENT: esp_ble_gattc_write_char_descr error[0m
E (26367) wifi: esp_wifi_stop 898 wifi is not init


chegewara
Posts: 2362
Joined: Wed Jun 14, 2017 9:00 pm

Re: esp_ble_gattc_write_char_descr error错误

Postby chegewara » Sat Sep 14, 2019 7:14 am

Code: Select all

esp_ble_gattc_write_char_descr, the l2cap chanel is congest
Try to add small delay before it.

xuanzihao
Posts: 8
Joined: Thu Dec 06, 2018 3:59 am

Re: esp_ble_gattc_write_char_descr error错误

Postby xuanzihao » Mon Sep 16, 2019 7:07 am

Thank you. I tried it, but it didn't work. :)

Who is online

Users browsing this forum: Baidu [Spider] and 42 guests