xiongweichao
9d56c4c215
Assert when malloc user_data fail
2022-12-05 20:30:45 +08:00
xiongweichao
6bce9b7029
Fixed memory leak when SPP initialization failed
2022-12-05 20:30:45 +08:00
xiongweichao
4a702a2011
Added esp_spp_vfs_unregister() to free memory allocated by esp_spp_vfs_register()
2022-12-05 20:30:43 +08:00
chenjianhua
c37184aa85
bluedroid: fix encrypt keysize of GATT characteristic permission
2022-12-02 15:10:39 +08:00
xiongweichao
3268075231
bt:Modify the member variable *arg in struct btc_msg to arg[0]
2022-11-30 10:41:54 +08:00
xiongweichao
40f6239fd7
bt: Fixed memory leak due to not freeing memory if posting a message to a thread fails
2022-11-30 10:41:52 +08:00
xiongweichao
c497d7d6c1
bt: Remove SPP default send buffer size option and add parameters to configure send buffer size in esp_spp_enhance_init()
2022-11-29 10:20:47 +08:00
xiongweichao
ecf2eea1d6
bt: Added esp_spp_enhance_init() API to indicate whether to enable L2CAP ERTM
2022-11-28 20:42:53 +08:00
xiongweichao
33d351898a
bt:Fixed the use of invalid configuration when the peer device configures the stream, and returned an incorrect error code
2022-11-23 20:17:22 +08:00
xiongweichao
01a67d001e
bt: Keep the maximum number of credits unchanged
2022-10-27 19:45:25 +08:00
xiongweichao
7885f80597
bt: Replaced the tx queue in SPP VFS mode with ringbuffer
2022-10-27 19:45:25 +08:00
xiongweichao
ea41a21b0e
bt: Split SPP application layer data packets according to the MTU of the peer
2022-10-27 19:45:25 +08:00
xiongweichao
bda54af557
bt: Fixed SPP VFS mode not being able to send data
2022-10-25 14:17:45 +08:00
Jin Cheng
0459cf3963
optimized a2dp_sink audio datapath
...
1. removed audio cache in BTC layer of Bluedroid
2. added flow control for audio data in application layer
Closes https://github.com/espressif/esp-idf/issues/9622
2022-10-17 20:57:19 +08:00
xiongweichao
697755dfe5
Fixed sink not being able to output mono audio because it can only decode dual channel audio data
2022-08-25 11:36:28 +08:00
chenjianhua
e29170bce9
Bluedroid: Configurable option to modify max gatt service attributes count
2022-08-17 14:36:12 +08:00
wangmengyang
0a1fa3e204
component/bt: add simple ADV flow control mechanism -- drop the packets when the adv report queues are considered full
2022-08-02 14:14:07 +08:00
wangmengyang
9a5f854760
component/bt: use the OSI utility "osi_event" to handle adv report in btc_layer
2022-08-02 14:14:07 +08:00
wangmengyang
3c8671f592
component/bt: use the OSI utility "osi_event" to handle A2DP source data Tx processing
2022-08-02 14:14:07 +08:00
wangmengyang
578bfa3600
component/bt: use the OSI utility "osi_event" to handle A2DP sink data Rx processing
2022-08-02 14:14:07 +08:00
Jiang Jiang Jian
4c1f114eab
Merge branch 'bugfix/ble_50_sync_periodic_adv_lost_data' into 'master'
...
components/bt: Fix ble sync periodic adv report will lost data
See merge request espressif/esp-idf!18957
2022-07-12 16:18:01 +08:00
xiewenxiang
947d082b44
components/bt: Fix ble sync periodic adv report lost data issue
2022-07-11 16:51:22 +08:00
Wei Tian Hua
8699a10929
Merge branch 'bugfix/redesign_hf_ag_init_deinit_api_param' into 'master'
...
component_bt: Change HF AG API
See merge request espressif/esp-idf!18592
2022-07-08 16:57:20 +08:00
Jiang Jiang Jian
c154d09c52
Merge branch 'bugfix/resolve_redefinition_in_spp_and_hid' into 'master'
...
resolve redefinition in btc_spp.h and btc_hd.h/btc_hh.h
Closes IDFGH-7647
See merge request espressif/esp-idf!18617
2022-07-04 14:12:35 +08:00
weitianhua
b4aa3269e7
Change HF AG APIs' NamingMethod
...
1. Remove parameter of esp-bt_hf_init & esp_bt_hf_deinit API
2. Change API names
2022-06-22 15:34:05 +08:00
jincheng
b5d1464180
resolve redefinition in btc_spp.h and btc_hd.h/btc_hh.h
...
Closes https://github.com/espressif/esp-idf/issues/9199
2022-06-22 11:33:04 +08:00
Darian Leung
c2e098c10e
bluedroid: Fix breaking change typos
...
This commit fixes typos that are breaking changes (i.e., macros, types, and functions)
in the bluedroid API. Migration notes for v5.0 have also been added.
Closes https://github.com/espressif/esp-idf/issues/6887
2022-06-21 19:07:25 +08:00
xiongweichao
d52cb7d6e4
update hfp_ag version to 1.7.2
2022-06-07 17:17:03 +08:00
Jiang Jiang Jian
4ed2e6130a
Merge branch 'feature/add_l2cap_ertm_api' into 'master'
...
Component_bt:Add l2cap and sdp api
Closes IDF-4487
See merge request espressif/esp-idf!18034
2022-05-29 17:34:38 +08:00
Jiang Jiang Jian
ffbc25056c
Merge branch 'feature/add_avdtp_delay_reporting' into 'master'
...
component_bt: add avdtp delay reporting
Closes BT-2308
See merge request espressif/esp-idf!17475
2022-05-29 17:03:36 +08:00
xiongweichao
b777a53fe8
support add and search raw sdp record
2022-05-28 23:34:21 +00:00
xiongweichao
4faf4e760a
sdp support create and search PBAPC record
2022-05-28 23:34:21 +00:00
xiongweichao
1d9fd4707a
add sdp api
2022-05-28 23:34:21 +00:00
xiongweichao
4719db7047
add l2cap api
2022-05-28 23:34:21 +00:00
xiongweichao
b0551ef456
add source handle the delay report
2022-05-28 23:31:45 +00:00
xiongweichao
9126e4f07b
add sink send delay reporting
2022-05-28 23:31:45 +00:00
keymoon
2c4b135be6
add address field to read_rmt_name_param
2022-05-26 23:24:56 +09:00
weitianhua
4c370cc437
component_bt: Fix build doc errors of bt
...
1. bluedroid: use standard function pointer define.
2. blufi: Change ESP_BD_ADDR_LEN into ESP_BLUFI_BD_ADDR_LEN
3. doc/sphinx_known_warnings: Remove fixed parts.
2022-05-11 14:30:20 +00:00
Xiong Wei Chao
af84842e8b
Component_bt/Fix spp crash after call esp_spp_deinit
2022-04-27 13:02:23 +08:00
liqigan
81829c2670
add missing unlock in btc_spp_cb_handler of BTA_JV_RFCOMM_WRITE_EVT
2022-04-11 17:14:02 +08:00
liqigan
2ce516e455
fix SPP initiator can not free resource when connection is failed
2022-04-06 18:17:07 +08:00
Bao Hong De
2748b3a4be
Merge branch 'bugfix/not_use_malloc_in_bluedroid' into 'master'
...
component/bt: use osi_malloc instead of malloc in bluedroid
See merge request espressif/esp-idf!17663
2022-04-03 04:24:08 +08:00
Wei Tian Hua
dbe4606eab
Merge branch 'feature/hfp_hf_vendor_batt_level' into 'master'
...
components/bt: support for vendor specific battery level and docker status...
See merge request espressif/esp-idf!17601
2022-04-01 14:43:51 +08:00
baohongde
65b15cd75a
component/bt: use osi_malloc instead of malloc in bluedroid
2022-03-31 22:27:54 +08:00
baohongde
418b546a7c
components/bt: support for vendor specific battery level and docker status indication over HFP profile
2022-03-29 11:38:09 +08:00
xiongweichao
7dd9ac9997
Add some bluetooth debug log
2022-03-22 10:35:50 +08:00
xiongweichao
7ee85858b4
Update HFP_HF version to 1.7.2
2022-03-04 11:52:12 +00:00
xiongweichao
83b9320d2e
btc_a2dp_control_set_datachnl_stat is only used by a2dp sink
2022-01-06 14:10:18 +08:00
xiongweichao
688700f33b
remove btc_a2dp_dispatch_datapath_evt and event
2022-01-06 14:02:03 +08:00
xiongweichao
c5af97759f
Fixed the crash caused by calling esp_a2d_media_ctrl(ESP_A2D_MEDIA_CTRL_START) after stream started
2022-01-06 14:02:03 +08:00
xiongweichao
061ae4c07a
Fixed a2dp source audio data packet congestion causing choppy audio in a2dp sink
2022-01-06 14:02:03 +08:00
liqigan
66e88fbdbe
clear old event bits when malloc a slot
2021-12-22 16:44:51 +08:00
baohongde
c138e47f45
components/bt: Update licenses
2021-12-08 10:59:06 +08:00
liqigan
aa6f86fbc5
fix SPP server bugs when the BTC layer can not allocate a slot for the listen port
2021-12-01 14:59:14 +08:00
“YangZhao”
12ec4866b8
Fix the high-impact issues from the code analysis report from customer.
...
For the CID10564,10384,10280,10098,10038,The memory was released in other place.
For the CID10365,it release the memory in the function when sent successfully.
For the CID10268,10011, we need not change the code.
2021-11-22 17:38:02 +08:00
xiongweichao
101ad32110
Dereference before null check
2021-11-18 19:38:48 +08:00
jincheng
52e7b99630
fix wrong clock_id in function time_now_us
...
Close https://github.com/espressif/esp-idf/issues/7561
2021-09-23 09:47:35 +08:00
liqigan
1c15c9207c
1. transparent HID device
...
2. add esp API for HID
3. add PM config for HID
4. add HID device demo
Closes https://github.com/espressif/esp-idf/issues/5311
Closes https://github.com/espressif/esp-idf/issues/5635
Merges https://github.com/espressif/esp-idf/pull/3425
2021-09-07 16:59:30 +08:00
Wang Meng Yang
7df2a22faa
Merge branch 'bugfix/spp_memory_leak' into 'master'
...
Fix spp memory leak
Closes IDFGH-5508
See merge request espressif/esp-idf!14319
2021-08-19 00:12:51 +00:00
xiongweichao
7960110729
components/bt: fix spp memory leak
...
closes https://github.com/espressif/esp-idf/issues/7238
2021-07-19 21:19:49 +08:00
xiongweichao
55fe021ddb
fix a2dp deinit crash
2021-07-19 11:06:21 +08:00
Jiang Jiang Jian
59b49d2783
Merge branch 'feature/add-nimble-host-to-blufi' into 'master'
...
Add support of NimBLE host to Blufi
See merge request espressif/esp-idf!13734
2021-06-29 12:54:01 +00:00
“sonalipatil”
5175672050
Add support of NimBLE host to Blufi
...
Merges https://github.com/espressif/esp-idf/pull/6904
2021-06-28 19:53:33 +05:30
liqigan
fd83938f39
fix a2dp sink RxSbcQ bugs
...
Closes https://github.com/espressif/esp-idf/issues/6712
Closes https://github.com/espressif/esp-idf/issues/7100
2021-06-21 20:02:36 +08:00
Wang Meng Yang
e245d4c9cd
Merge branch 'bugfix/bta_hf_client_co_cb_ptr_macro' into 'master'
...
bugfix/bta_hf_client_co_cb_ptr requires HFP_DYNAMIC_MEMORY macro to be used
See merge request espressif/esp-idf!12335
2021-06-18 09:03:33 +00:00
xiongweichao
d38a91ee95
Remove btc_hf_idx_by_bdaddr in both btc_hf_init and btc_hf_deinit functions
2021-05-10 11:11:02 +08:00
xiongweichao
be6b25b9d9
fix ag use dynamic memory error
2021-05-10 10:56:46 +08:00
liaowenhao
048f527883
bugfix/bta_hf_client_co_cb_ptr requires HFP_DYNAMIC_MEMORY macro to be used
2021-03-22 03:07:49 +00:00
Jiang Jiang Jian
d01c951d46
Merge branch 'bufix/ag_deep_copy_crash' into 'master'
...
components/bt: Fix crash in btc_hf_arg_deep_copy when name or number is NULL
Closes BT-1355
See merge request espressif/esp-idf!12338
2021-03-18 09:49:57 +00:00
liqigan
408a1490a9
add API esp_spp_stop_srv_scn
to stop a specific server
2021-03-03 15:02:23 +08:00
xiongweichao
d39756d8e7
components/bt: Fix crash in btc_hf_arg_deep_copy when name or number is NULL
2021-03-01 12:54:21 +00:00
Jiang Jiang Jian
6a7781b92a
Merge branch 'bugfix/fix_a2dp_underun' into 'master'
...
bugfix/component_bt: Fix A2DP Underrun Issue
Closes AUD-2681
See merge request espressif/esp-idf!12093
2021-02-04 19:28:07 +08:00
liaowenhao
e502893f18
bugfix/if bta_hf_client_sco_co_out_data is called, it will crash when sco disconnected
2021-01-27 19:46:13 +08:00
weitianhua
1404879bf4
Fix A2DP Underrun Issue
2021-01-25 17:44:11 +08:00
weitianhua
bfad85a372
Add init & deinit event for a2dp
2021-01-25 16:30:09 +08:00
Jiang Jiang Jian
f7c9f1afd7
Merge branch 'bugfix/avrc_set_player_value_cmd_event_unhandle' into 'master'
...
bugfix/fix unhandle RC vendor PDU when tg receive set_player_app_value cmd
Closes BT-711
See merge request espressif/esp-idf!11807
2021-01-20 23:39:57 +08:00
Jiang Jiang Jian
ffa29f8098
Merge branch 'feature/hfp_console' into 'master'
...
Feature/modify hfp console style by using esp console
Closes BT-1052
See merge request espressif/esp-idf!10973
2021-01-20 23:39:45 +08:00
zwj
1d1754e4b4
- fix congest return value
...
- fix system no rsp when doing disconnect
- fix no congest event when ssc do writing performance
2021-01-15 18:03:56 +08:00
zwj
7c1c669799
component/bt: add BLE v5.0 feature for bluedroid host
2021-01-15 17:55:12 +08:00
liaowenhao
6c0e3fe23c
bugfix:unhandle event when tg receive set_player_app_value cmd
2021-01-08 20:58:35 +08:00
liaowenhao
60e2eb8dfc
bugfix/fixed the warning info always being printed when entering the cona command in msbc mode
2021-01-07 11:37:24 +00:00
Jiang Jiang Jian
b790a1866f
Merge branch 'bugfix/btdm_blufi_send_custom_data_will_congested_after_connection_is_broken' into 'master'
...
component/bt: fix Blufi sends customer data will congested when connection is broken
See merge request espressif/esp-idf!11845
2021-01-06 12:29:20 +08:00
Bao Hong De
64d30fa6c4
Add API to config QoS
2021-01-05 10:32:47 +08:00
XieWenxiang
ba89eeabfa
component/bt: fix Blufi sends customer data will congested when connection is broken
2020-12-31 14:45:23 +08:00
liqigan
478cef9b75
fix spp vfs demo crash when use dynamic memory
2020-12-09 19:46:43 +08:00
xiewenxiang
945606b658
component/bt: support BLE Read Attribute value by UUID
2020-12-02 20:04:36 +08:00
xiewenxiang
7e5e0ba7de
component/bt: refactor ble random address setting
2020-12-02 09:08:31 +08:00
XieWenxiang
e840191a0c
component/bt: support BLE Application Layer Encryption key size check
2020-12-02 09:08:03 +08:00
wangcheng
d1bf93e055
component/bt: Add a macro to control the compilation of blufi.
2020-11-24 10:43:18 +08:00
wangcheng
709ad66d44
blufi: fix an error caused by incorrect conn_id parameters.
2020-11-24 10:22:32 +08:00
Angus Gratton
66fb5a29bb
Whitespace: Automated whitespace fixes (large commit)
...
Apply the pre-commit hook whitespace fixes to all files in the repo.
(Line endings, blank lines at end of file, trailing whitespace)
2020-11-11 07:36:35 +00:00
weitianhua
08eace5a26
Fix crash cause by calling a2dp deinit when connected
2020-11-10 07:25:57 +00:00
Jiang Jiang Jian
6bed9ec70c
Merge branch 'bugfix/fix_ag_outging_callback_not_triggered' into 'master'
...
Bugfix/Fix Ag Example Outgoing Callback Not Triggered
Closes BTCI-50
See merge request espressif/esp-idf!10828
2020-10-28 19:57:02 +08:00
liqigan
743c1c1f20
fix ag example outgoing callback not triggered
...
Closes https://github.com/espressif/esp-idf/issues/4967
2020-10-14 09:47:16 +08:00
liqigan
93ba9ba15c
replace list and ringbuffer with fixed queue
...
use eventgroup to sync spp_vfs_write
each connection has a switch_delay_timer not sharing a one
revert functions like spp_find_slot_by_xxx
fix vfs read bug when peer close
2020-09-29 17:19:29 +08:00
liqigan
14f48d35bd
move flow control to btc layer
...
defer free slot in btc layer when receive BTA_JV_RFCOMM_CLOSE_EVT
2020-09-29 17:15:11 +08:00
liqigan
eff892933c
add event when calling spp API failed
2020-09-29 17:15:11 +08:00
Jiang Jiang Jian
96d59ff3e9
Merge branch 'bugfix/fix_bredr_read_rssi_delta' into 'master'
...
Bugfix/Fix Read Rssi Delta Bug in Bredr
Closes IDFGH-3739
See merge request espressif/esp-idf!10574
2020-09-29 16:47:43 +08:00
Jiang Jiang Jian
caba103d51
Merge branch 'bugfix/add_clear_bond_complete_evt' into 'master'
...
componenet_bt/bugfix: add remove bond device complete event
Closes BT-1013
See merge request espressif/esp-idf!10342
2020-09-28 14:39:40 +08:00
xiongweichao
4e4c86b267
add remove bond device complete event
2020-09-27 19:55:12 +08:00