Chapter 4. Software framework
4.1.51 When I use an ESP32 development board to test several versions of blue example
under ESP-IDF for networking, the following error kept printing. What is the
reason?
E (117198) BT_L2CAP: l2ble_update_att_acl_pkt_num not found p_tcb
W (117198) BT_BTC: btc_blufi_send_encap wait to send blufi custom data
• When this error occurs, please modify the esp_ble_get_cur_sendable_packets_num(blufi_env.
conn_id)
to
esp_ble_get_sendable_packets_num()
in the
components/bt/
host/bluedroid/btc/profile/esp/blufi/blufi_prf.c le.
• This bug has been xed in all branches, you can update ESP-IDF to the latest release version.
4.1.52 When I use ESP32, can Light-sleep mode be enabled for Bluetooth and can Blue-
tooth be kept connected in Light-sleep mode?
• To use Light-sleep mode for ESP32, release/4.0 or above versions of ESP-IDF and a 32.768 kHz crystal are
needed.
• Bluetooth can be kept connected in Light-sleep mode. Please refer to Bluetooth modem sleep with external
32.768 kHz xtal under light sleep.
4.1.53 How can I modify the Bluetooth device name of ESP32?
• The structure to be modied is as follows:
static uint8_t raw_adv_data[] = {
/* flags*/
0x02, 0x01, 0x06,
Tx power*/
0x02, 0x0a, 0xeb,
/* service uuid*/
0x03, 0x03, 0xFF, 0x00,
/* device name*/
0x0f, 0x09,'E','S','P','_','G','A','T','T','S','_','D','E ','M','O
,→'
};
• The above /* device name*/ is the modied item. Among them, 0x0f is the total length
of the eld type plus specic content, and 0x09 indicates that this type refers to the device name.
Subsequent’E’,’S’,’P’,’_’,’G’,’A’,’T’,’T’,’S’,’_’,’D’,’E’,
‘M’,’O’are the ASCII code of the broadcast device name.
Espressif Systems 53
Submit Document Feedback
Release master