zhiweijian
d12982dc6e
Component/bt: add set default passkey function
2018-09-07 10:55:44 +08:00
baohongde
bd8b9960d5
component/bt: Add Legacy Pairing
2018-09-04 21:11:03 +08:00
Jiang Jiang Jian
f5b699cee7
Merge branch 'bugfix/btdm_a2dp_sink_pcm_buf_size' into 'master'
...
bugfix/btdm_a2dp_sink_pcm_buffer_size
See merge request idf/esp-idf!3052
2018-08-28 10:42:36 +08:00
wangmengyang
3faee500bb
component/bt: bugfix for incorrect computation of PCM data buffer size in A2DP sink
2018-08-27 02:53:59 +00:00
Hrishikesh Dhayagude
29ec0339f6
components/bt: Fix a probable memory leak for BTA_GATTS_CONF_EVT event
...
Multiple modules register their callback BTA_GATTS_AppRegister().
If any of the callbacks do not free the allocated pointer in
BTA_GATTS_CONF_EVT event, then this can result in memory leak.
So, free the pointer after the callback function is called and remove
the calls to free in the callback functions as it is now not required
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-08-25 16:26:37 +00:00
zhiweijian
57355d7154
Component/bt: fix get bond list error when connection with no bond
2018-08-08 14:44:22 +08:00
Angus Gratton
5aff7fd07f
Merge branch 'bugfix/btdm_fix_queue_block_when_scanning' into 'master'
...
Component/bt: fix queue blocking when scanning
See merge request idf/esp-idf!2706
2018-08-03 07:24:08 +08:00
zhiweijian
658668b386
Component/bt: fix hci_hal_env.rx_q and xHciH4Queue blocking when scanning
2018-08-01 15:06:56 +08:00
zhiweijian
feef9b9387
Component/bt: fix gattc get count invalid
2018-07-31 02:36:46 +00:00
Jiang Jiang Jian
d62293165b
Merge branch 'bugfix/btdm_using_osi_malloc_instead_of_malloc' into 'master'
...
component/bt: Using osi_malloc instead of malloc
See merge request idf/esp-idf!2748
2018-07-18 11:09:28 +08:00
baohongde
47a164b3ac
component/bt: Using osi_malloc instead of malloc
2018-07-11 11:15:41 +00:00
baohongde
21af1d7339
component/bt: Add Secure Simple Pairing
2018-07-10 11:18:52 +08:00
Jiang Jiang Jian
b727113fc1
Merge branch 'bugfix/btdm_delete_deprecated_files' into 'master'
...
Component/bt: delete deprecated files
See merge request idf/esp-idf!2583
2018-06-29 19:37:03 +08:00
Jiang Jiang Jian
53ce5fd106
Merge branch 'bugfix/btdm_bt_remove_device_disconnect' into 'master'
...
component/bt: Fix bug of BT and BLE remove bond device
See merge request idf/esp-idf!2562
2018-06-29 19:29:57 +08:00
baohongde
be8ec6b8d2
component/bt: Fix some bad point calculations of BT GAP
...
In response to: https://github.com/espressif/esp-idf/issues/2103
2018-06-29 11:40:46 +08:00
baohongde
29b7d4e916
component/bt: Fix bug of BT and BLE remove bond device
...
1. esp_ble_remove_bond_device will only remove BLE bond key and disconnect BLE device.
2. esp_bt_gap_remove_bond_device will only remove BT bond key and disconnect BT device.
2018-06-22 11:54:40 +08:00
Tian Hao
e3d3ed5a06
bt : fix read rssi conflict when in dual mode
2018-06-22 11:16:16 +08:00
zhiweijian
41b57d35c8
Component/bt: delete deprecated files
2018-06-21 06:07:21 +00:00
zhiweijian
822dac5659
Component/bt: fix memory leak
2018-06-06 02:17:06 +00:00
Tian Hao
21cb7226a2
component/bt : enlarge the A2DP SINK FRAME QUEUE SIZE to make A2DP more fluent
2018-06-01 16:51:23 +08:00
xiewenxiang
4467b34da2
component/bt: Fix malloc fail lead to crash
2018-05-31 13:31:27 +08:00
baohongde
4c8d9278b5
component/bt: Fix mem leak of esp_ble_gap_set_security_param
2018-05-28 17:43:53 +08:00
Jiang Jiang Jian
affed9a235
Merge branch 'feature/a2dp-sink-source-runtime-selection' into 'master'
...
bt-a2dp: BT A2DP sink and source selection is now runtime
See merge request idf/esp-idf!2229
2018-05-22 22:21:39 +08:00
Amey Inamdar
ae8ed8dad8
bt-a2dp: BT A2DP sink and source selection is now runtime
...
Earlier they have to be selected at the compile time through sdkconfig.
A2DP sink and source application tested with this change.
Signed-off-by: Amey Inamdar <amey@espressif.com>
2018-05-21 14:02:49 +05:30
zhiweijian
340ad5c430
Component/bt: fix scan duplicate
2018-05-21 15:23:15 +08:00
wangmengyang
4c4e143a2f
component/bt: implement HFP Hands Free Unit Role
2018-05-21 11:33:30 +08:00
Roland Dobai
2aa9c15906
VFS: allow to find free file descriptors & register them
2018-05-18 07:57:35 +02:00
baohongde
174501ff35
component/bt: modify BT GAP structure
...
1. Separate the upward and the downward
2. Cancel use of msg.aid when call btc_transfer_context
2018-05-16 18:58:13 +08:00
Jiang Jiang Jian
f502e195aa
Merge branch 'bugfix/improve_bt_debug' into 'master'
...
components/bt: Improve the Bluetooth debug messaging scheme
See merge request idf/esp-idf!2303
2018-05-16 16:04:34 +08:00
Jiang Jiang Jian
6adaeb0048
Merge branch 'bugfix/btdm_fix_crash_without_smp_when_deinit_bluedroid' into 'master'
...
Component/bt: fix crash without SMP when deinit bluedroid
See merge request idf/esp-idf!2375
2018-05-14 21:20:44 +08:00
Hrishikesh Dhayagude
da6cb6c741
components/bt: Improve the Bluetooth debug messaging scheme
...
As of now, when Bluetooth debugs are enabled, all the messages are
mapped to BT_PRINTF which is mapped to ESP_LOGE. Hence, make monitor
shows all logs in red color which might lead to missing the actual
errors
This patch maps the Bluetooth messages to appropriate ESP_LOG* messages
and improves readability.
Also, make the BT trace level be configurable in menuconfig, so that
each layer of bt trace can be enabled/disabled.
Finally, add debug log control for BTC, OSI, BLUFI and clear up
Bluetooth debug logs.
So, with this the method of enabling Bluetooth logs is as follows:
1. make menuconfig -> Component config -> Bluetooth -> Bluedroid Enable
-> BT DEBUG LOG LEVEL -> set trace level for every layer of BT
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-05-14 20:45:05 +08:00
Jiang Jiang Jian
d4276efed7
Merge branch 'bugfix/bluedroid_const_char' into 'master'
...
Bluedroid: remove warnings about discarding "const" for "const char*"
See merge request idf/esp-idf!2387
2018-05-14 15:25:45 +08:00
Roland Dobai
2041c08681
Bluedroid: remove warnings about discarding "const" for "const char*"
2018-05-11 11:29:10 +02:00
Jiang Jiang Jian
325920046f
Merge branch 'bugfix/btdm_conn_fail_after_deinit_and_init_spp' into 'master'
...
component/bt: Fix can't be connected if init SPP again after SPP deinit
See merge request idf/esp-idf!2369
2018-05-11 15:38:03 +08:00
Jiang Jiang Jian
c1e0f029d1
Merge branch 'bugfix/btdm_a2dp_disconn_state_when_connecting_with_iphone' into 'master'
...
component/bt: Fix bug a2dp have disconnect state when connecting with iphone 7
See merge request idf/esp-idf!2288
2018-05-11 14:59:34 +08:00
baohongde
dfbc59f1c2
component/bt: Fix can't be connected if init SPP again after SPP deinit
2018-05-10 16:16:25 +08:00
zhiweijian
b7a5fef871
Component/bt: fix crash without SMP when deinit bluedroid
...
- fix crash without SMP when bluedroid deinit
- modify default menuconfig in blufi demo
2018-05-10 11:39:34 +08:00
Roland Dobai
80ff8d55ac
bluedroid: use the new socket registering API
2018-05-07 09:01:56 +02:00
baohongde
cbab7fec76
component/bt: Fix bug a2dp have disconnect state when connecting with iphone 7
2018-05-04 19:44:40 +08:00
Jiang Jiang Jian
b827e0e331
Merge branch 'feature/btdm_get_end_handle_when_get_include_service' into 'master'
...
Component/bt: get end_handle when get include services
See merge request idf/esp-idf!2319
2018-05-04 19:31:43 +08:00
baohongde
c22c070e07
component/bt: Add APIs of get and remove bond device
...
1. Add APIs of get and remove bond device
2. Add ESP_BT_GAP_AUTH_CMPL_EVT
2018-05-03 19:05:57 +08:00
Jiang Jiang Jian
95cbdd76dc
Merge branch 'feature/btdm_read_bredr_rssi' into 'master'
...
component/bt : add class bt read RSSI delta (golden range)
See merge request idf/esp-idf!2325
2018-05-01 22:55:50 +08:00
zhiweijian
e236ffd91f
Component/bt: get end_handle when get include services
2018-04-28 16:27:25 +08:00
baohongde
d95d0ececb
component/bt: Add SPP profile with VFS
2018-04-28 11:36:22 +08:00
Tian Hao
8646913cbf
component/bt : add class bt read RSSI delta (golden range)
2018-04-27 14:33:47 +08:00
Tian Hao
adada3f67e
component/bt : modify header files to avoid conflict
...
1. add the L1 include path with a prefix, such like osi/list.h, stack/a2d_api.h and etc.
2. modify component, only bluedroid/api/include/api is export to another component and application,
other include path just for bluedroid used
3. put bluedroid/include into common/include/common, so the root directory of bluedroid have no include path.
4. modify doxygen to use esp_bt.h and redirect to
component/bt/bluedroid/api/include/api/
fix compile
2018-04-26 19:32:06 +08:00
zhiweijian
be107320f7
Component/bt: fix gatt cache error
...
- fix sev == NULL error
- fix start_handle == end_handle
2018-04-23 15:43:10 +08:00
Yulong
2c7182c59f
component/bt: For unity, Change all the associat & associa to abbreviated form(assoc).
2018-04-20 02:16:33 -04:00
Yulong
b940abca0e
component/bt: Change the cache 'associat' name for unify.
2018-04-19 22:56:33 -04:00
Yulong
ece6bd9b82
component/bt: Change the btc gattc callback function with the compile error.
...
1. Change all the gattc API && bta gattc layer.
2. Debug the code and change the btc_ble_gattc_get_db method.
3. Change the gatt read API interface.
4. Reconstruction the BTA_gattc_cache code.
5. Change back the bluedroid_get_status to marco.
6. Change the gattc docs format.
7. Change the docs format.
8. fix the read char value bug.
9. change the gattc_get_attr_count method.
10. Change back the bta_gattc write ccc code.
11. Change the gattc api docs format
12. Change the gattc API docs.
13. Change the prepare write descriptor method to avoid the exection.
14. modify gatt clinet demo with new API
15. Change the p_src_data->read.p_value to avoid exection.
16. Change the bugfix of gattc unreg for the notify.
component/bt: Added the serch service res start_handle & end_handle to the result.
component/bt: Added the bta_gattc_cache_write when gatt discovery complete.
component/bt: Added the bta_gattc_cache_write declaration.
component/bt: Added the comments for esp_ble_gattc_cache_refresh API.
component/bt: Change the spelling errors & some comment error.
component/bt: fix bug of get gattc cache address list error.
1. Change the esp_bluedroid_get_status to macro;
2. added the malloc & free for the get_addr_list
component/bt: Added the addr_info->ass_addr == NULL Judgment to prevent crashes in the bta_gattc_co_cache_find_src_addr function.
component/bt: Fixed following gattc cache bugs
1. gattc can't refresh the gattc cache in the gatt discover state;
2. remove the nvs_get_blob in the cache address init function;
3. added the nvs_set_blob return value judgment in the cache address save function;
4. added the list_new when ass_address is NULL;
5. Change the ass_address list remove method to fix the ass address can't remove bug.
2018-04-19 12:05:13 +08:00
Jiang Jiang Jian
16ad81c636
Merge branch 'feature/btdm_get_and_set_cod' into 'master'
...
component/bt: Add API: get cod & set cod
See merge request idf/esp-idf!2127
2018-04-17 14:21:18 +08:00
Jiang Jiang Jian
a3cfbdb150
Merge branch 'bugfix/btdm_a2dp_source_cleanup_bug' into 'master'
...
component/bt: Fix bug of a2dp source cleanup bug when connected
See merge request idf/esp-idf!2042
2018-04-17 14:20:15 +08:00
Jiang Jiang Jian
0d55f2cb7b
Merge branch 'bugfix/btdm_add_assert_when_no_device_name' into 'master'
...
component/bt: Fix exception when there is no device name
See merge request idf/esp-idf!2184
2018-04-17 14:19:39 +08:00
Jiang Jiang Jian
12dbe4dac5
Merge branch 'feature/btdm_add_set_local_icon_api' into 'master'
...
Component/bt: add set gap icon API
See merge request idf/esp-idf!2129
2018-04-11 20:48:13 +08:00
baohongde
52dbcef908
component/bt: Fix exception when there is no device name
2018-04-10 17:55:33 +08:00
Roland Dobai
744c2dcdd9
Resolve problems found by enabling -Wwrite-strings compilation flag
2018-04-10 08:53:43 +02:00
baohongde
789edc0b52
component/bt: Add API: get cod & set cod
...
In response to: https://github.com/espressif/esp-idf/issues/1565
2018-04-09 19:25:26 +08:00
Jiang Jiang Jian
f46ad1fec8
Merge branch 'bugfix/btdm_fix_get_PID_key_error' into 'master'
...
Component/bt: fix get PID key error
See merge request idf/esp-idf!2156
2018-03-30 19:26:31 +08:00
zhiweijian
99872beb6a
Component/bt: add set gap icon API
2018-03-30 09:21:53 +00:00
Jiang Jiang Jian
e6d6deebc7
Merge branch 'bugfix/btdm_fix_connect_fail_when_remote_addr_is_random' into 'master'
...
Component/bt: modify open API params
See merge request idf/esp-idf!2116
2018-03-30 17:00:19 +08:00
Jiang Jiang Jian
6ffd089c97
Merge branch 'bugfix/btdm_fix_no_set_rand_addr_event_callback' into 'master'
...
Component/bt: fix no set rand add callback
See merge request idf/esp-idf!2140
2018-03-30 16:05:32 +08:00
Jiang Jiang Jian
b26ab188af
Merge branch 'bugfix/btdm_fix_service_change_event_param_error' into 'master'
...
Component/bt: fix service change event params error
See merge request idf/esp-idf!2150
2018-03-30 14:57:13 +08:00
Jiang Jiang Jian
fc5b15173e
Merge branch 'bugfix/btdm_add_some_comment' into 'master'
...
Component/bt: add some comments
See merge request idf/esp-idf!1949
2018-03-30 14:07:30 +08:00
zhiweijian
109a93bf8c
Component/bt: fix get PID key error
2018-03-30 11:31:15 +08:00
zhiweijian
e6262375a3
Component/bt: fix connect fail when remote addr type is random
2018-03-29 20:55:31 +08:00
zhiweijian
aa236809ad
Component/bt: fix no set rand add callback event
2018-03-29 20:17:14 +08:00
zhiweijian
f5d581421e
Component/bt: fix service change event params error
2018-03-29 16:11:16 +08:00
baohongde
e1b419fb6d
component/bt: Fix xQueueGenericSend assertion
2018-03-28 20:25:57 +08:00
Jiang Jiang Jian
0a83733d2d
Merge branch 'bugfix/btdm_spp_handle_error' into 'master'
...
component/bt: Fix bug of SPP handle error
See merge request idf/esp-idf!2026
2018-03-22 10:08:47 +08:00
Jiang Jiang Jian
0f6f762be0
Merge branch 'bugfix/btdm_add_char_descr_uuid_error' into 'master'
...
component/bt: Change the char_uuid to descr_uuid in the add descriptor callback params.
See merge request idf/esp-idf!2065
2018-03-20 18:43:42 +08:00
baohongde
2531975ca0
component/bt: Fix bug: AVRC remote_bda error when disconnect
2018-03-20 15:12:36 +08:00
zhiweijian
7c777f40aa
Component/bt: add some comment
2018-03-19 21:19:21 +08:00
Ivan Grokhotkov
e784df60cc
Merge branch 'bugfix/fix_param_name_comments_bt' into 'master'
...
components/bt: Fix parameter name and print statements
See merge request idf/esp-idf!2032
2018-03-19 16:59:09 +08:00
baohongde
b9ea6a2067
component/bt: Fix bug of a2dp source cleanup bug when connected
2018-03-19 02:21:12 +00:00
Yulong
c802ea842d
component/bt: Change the char_uuid to descr_uuid in the add descriptor callback params.
2018-03-15 02:29:11 -04:00
baohongde
c0eadc514f
component/bt: Fix bug of a2dp sink cleanup bug when connected
2018-03-14 06:27:26 +00:00
Hrishikesh Dhayagude
9831eca4b2
components/bt: Fix parameter name and print statement
...
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-03-09 13:53:27 +05:30
baohongde
d082316507
component/bt: Fix bug of SPP handle error
2018-03-09 11:46:30 +08:00
Jiang Jiang Jian
702b46108c
Merge branch 'bugfix/btdm_fix_set_error_channel_map_in_adv_params' into 'master'
...
Component/bt: fix set error params and return callback when start adv
See merge request idf/esp-idf!1943
2018-03-08 20:18:30 +08:00
zhiweijian
b1d8ea84c3
Component/bt: blufi add custom data cmd
2018-03-08 17:38:44 +08:00
Jiang Jiang Jian
983e9f854d
Merge branch 'bugfix/btdm_error_log' into 'master'
...
component/bt: remove some error logs which are not error
See merge request idf/esp-idf!1826
2018-03-06 19:37:16 +08:00
baohongde
3824f0eb8f
component/bt: Fix spp lock error
2018-03-06 14:57:08 +08:00
baohongde
569b9d592e
component/bt: remove some error logs which are not error
2018-03-05 19:22:21 +08:00
baohongde
c4cdb66947
component/bt: Add lock for SPP slot
2018-03-02 18:11:47 +08:00
Jiang Jiang Jian
165e3edd49
Merge branch 'bugfix/btdm_mem_leak_of_bt' into 'master'
...
component/bt: Fix mem leak of bt
See merge request idf/esp-idf!1924
2018-02-24 10:25:13 +08:00
Ing. Jaroslav Šafka
475e3cc43e
Fix function name typo. Closes https://github.com/espressif/esp-idf/issue/1572
2018-02-13 15:05:56 +01:00
zhiweijian
4056878c69
Component/bt: fix set error params and add callback in adv params
2018-02-12 16:34:30 +08:00
baohongde
0519a73334
component/bt: Fix mem leak of bt
2018-02-08 16:26:12 +08:00
Jiang Jiang Jian
9ecd718f72
Merge branch 'bugfix/btdm_modify_set_mtu_call_handler' into 'master'
...
Component/bt: modify set mtu call handler
See merge request idf/esp-idf!1850
2018-02-01 20:19:52 +08:00
Jiang Jiang Jian
0f7d9cf7d3
Merge branch 'bugfix/btdm_a2dp_task_stack_size' into 'master'
...
component/bt: make A2DP source and sink task size configurable through menuconfig
See merge request idf/esp-idf!1825
2018-02-01 10:58:40 +08:00
zhiweijian
b06ea40f66
Component/bt: modify set mtu call handler
2018-01-31 11:28:05 +08:00
wangmengyang
00db39ee1b
component/bt: make A2DP source and sink task size configurable through menuconfig
...
1. use different set of parameters for A2DP source/sink tasks
2. make the task stack size configurable through menuconfig
2018-01-30 14:26:53 +08:00
zhiweijian
41f338d23c
Component/bt: fix bt load boned in smp
2018-01-26 14:38:54 +08:00
Jiang Jiang Jian
5b1f869880
Merge branch 'feature/btdm_bluedroid_env_dynomic_malloc_enable' into 'master'
...
This MR added the bluedroid env variable can dynamic malloc and BT variable use psram malloc supported
See merge request !1698
2018-01-26 10:06:43 +08:00
Jiang Jiang Jian
62fade9970
Merge branch 'bugfix/btdm_fix_bonded_device_list_error_after_reboot' into 'master'
...
component/bt: fix bonded device list error after reboot
See merge request !1750
2018-01-25 12:05:58 +08:00
Yulong
63e5cbbd66
component/bt: Added the bluedroid environment variable dynomic malloc support & support to malloc the memory to the psram.
...
component/bt: Added the Macro for the classic BT support.
component/bt: added the bluedroid deinit method.
component/bt: allow more classic BT global variables to use dynamic allocation scheme
1. allocate memory for AVDT, AVCT control blocks when dynamic memory is used
2. allow SBC decoder buffer to use dynamic allocation scheme
component/bt: Remove the wrong changes in bt/Kconfig & Added the GATTS_INCLUDED in the gatt_free function when gatt service close.
component/bt: Shorten the abbreviation BT_ALLOCATION_FROM_SPIRAM_FIRST and BT_BLE_DYNAMIC_ENV_MEMORY two macros.
2018-01-24 15:18:02 +08:00
zhiweijian
1861d6e137
Component/bt: fix bonded device list error after reboot
2018-01-17 19:54:49 +08:00
zhiweijian
cf91ad32dc
Component/bt: add get error event for blufi
2018-01-16 17:29:48 +08:00
zhiweijian
4d2c3edc07
Component/bt: add get wifi list cmd for blufi
2018-01-15 12:16:19 +00:00
Jiang Jiang Jian
cd54a95a7f
Merge branch 'feature/btdm_a2dp_src' into 'master'
...
Feature/btdm a2dp src
See merge request !1190
2018-01-15 18:55:01 +08:00