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
baohongde
acce9e5fea
components/bt: Replace task post with btc_inter_profile_call, when post message from btc_dm to btc_gap
2020-09-27 19:55:12 +08:00
xiongweichao
4e4c86b267
add remove bond device complete event
2020-09-27 19:55:12 +08:00
liqigan
ba51da8c91
1. fix read rssi delta bug in bredr
...
2. modify read rssi related function names
Closes https://github.com/espressif/esp-idf/issues/5660
2020-09-27 10:44:18 +08:00
xiongweichao
b0c4988d69
1.revert dummy command
...
2.fix send MEDIA_CTRL command in disconnect
2020-09-25 11:14:24 +08:00
xiongweichao
84cacaba51
1.fix test case dummy
...
2.fix sink send media control ESP_A2D_MEDIA_CHECK_SRC_RDY
2020-09-25 10:54:13 +08:00
weitianhua
31df07c5d7
Redesign separating AVRC & A2DP
...
1. Add g_av_with_rc to avrc_tg_init function
2. Remove g_av_open_fail
3. Add comment in API files
4. Add a2dp init & deinit state variable to inidcate a2dp statement
2020-09-14 17:22:41 +08:00
weitianhua
57b695be10
Add global header and change declaration position
2020-09-11 14:31:18 +08:00
weitianhua
04a7771f33
Remove uneccessary macro
...
Separate AVRC from A2DP when AVRC not Initialized
2020-09-11 14:31:18 +08:00
weitianhua
af52df8b83
Rewrite a2dp clean_up function
2020-09-11 14:31:18 +08:00
weitianhua
87bf47bd90
Add bda_addr for esp_bt_a2dp_disconn_req API
...
1. Add reaction for a2dp snk & src disconn req when no link up
2. Change state machine set before EVT upto APP layer in some cases
3. Add bool open_fail to choose whether post disconnection evt to app layer
2020-09-11 14:31:18 +08:00
Jiang Jiang Jian
74e932c73f
Merge branch 'bugfix/btdm_spp_null_ptr_with_dynamic_memory' into 'master'
...
components/bt: Fix SPP using NULL point with dynamic memory
Closes BT-1024
See merge request espressif/esp-idf!10188
2020-09-10 17:38:53 +08:00
baohongde
898baf20f8
components/bt: Fix SPP using NULL point with dynamic memory
2020-09-07 15:41:30 +08:00
Island
cfd13d8c90
Merge branch 'bugfix/btdm_blufi_data_sequence_not_reset_after_disconnect' into 'master'
...
component/bt: fix Blufi sends data after disconnecting the seq still increase
See merge request espressif/esp-idf!10217
2020-09-01 15:38:26 +08:00
XieWenxiang
e92c2f553b
component/bt: fix Blufi sends data after disconnect the seq still increase
2020-09-01 09:54:14 +08:00
xiewenxiang
5979111109
component/bt: add link role param for gatt connection event
2020-08-28 08:47:54 +08:00
baohongde
060a36352c
components/bt: Add mode change event
2020-08-12 09:20:04 +00:00
XieWenxiang
fa729f3805
component/bt: fix Blufi sends longer customer data will will lead congested
2020-08-03 14:55:12 +08:00
Chinmay Chhajed
4a0c137188
Bluedroid: Fixes cases having fallback to link up event.
...
Signed-off-by: Chinmay Chhajed <chinmay.chhajed@espressif.com>
2020-07-17 17:11:33 +05:30
Jiang Jiang Jian
170b4c9eff
Merge branch 'bugfix/fix_get_bond_device_list' into 'master'
...
bugfix/fix esp_bt_gap_get_bond_device_list bug
Closes BT-852 and BTCI-88
See merge request espressif/esp-idf!9542
2020-07-15 15:50:32 +08:00
Li Qi Gan
f6f2d9780b
add API esp_spp_stop_srv() and fix the error parameter in esp-idf/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/example_spp_initiator_demo.c
...
Closes https://github.com/espressif/esp-idf/issues/5409
Closes https://github.com/espressif/esp-idf/pull/5408
See merge request espressif/esp-idf!9114
2020-07-15 15:49:37 +08:00
boblane
4293f0320f
fix esp_bt_gap_get_bond_device_list bug
...
Closes https://github.com/espressif/esp-idf/issues/5395
2020-07-09 11:58:10 +08:00
Chinmay Chhajed
e3350e7861
Bluedroid: Authentication fixes in Legacy and Secure Connection.
...
Prevent a remote device from doing a Bluetooth Impersonation Attack
(BIAS) by:
- Preventing remote device to downgrade secure connection
feature mask. Secure connection feature mask should remain same or
increase to enabled in link key generation and authentication.
- Doing a mutual authentication during Legacy Authentication.
Signed-off-by: Chinmay Chhajed <chinmay.chhajed@espressif.com>
2020-06-25 15:37:01 +05:30
Jiang Jiang Jian
8c7c3ff899
Merge branch 'bugfix/btdm_ESP_BT_GAP_DISCOVERY_STOPPED_evt_come_twice' into 'master'
...
Bugfix/fix event bug in GAP API
Closes BT-594 and BT-595
See merge request espressif/esp-idf!8808
2020-06-16 21:22:40 +08:00
wangcheng
999ca60657
blufi: When the format of the received data packet is wrong, reply with an error response
2020-06-15 19:33:28 +08:00
zhiweijian
6d593eb6fc
component/bt: add clear white list API
2020-06-02 11:29:51 +08:00
liqigan
6cf659f293
components/bt: Adjust the description of esp_bt_gap_start_discovery
and esp_bt_gap_cancel_discovery
.
...
Add some comments to explain why `ESP_BT_GAP_DISC_STATE_CHANGED_EVT` is not reported.
2020-05-28 14:47:51 +08:00
liqigan
55f6a927b5
btdm:fix emit ESP_BT_GAP_DISC_STATE_CHANGED_EVT
event when call API esp_bt_gap_start_discovery
...
closes BT-594
See merge request espressif/esp-idf!8808
2020-05-20 22:43:44 +08:00
zhiweijian
ec6c7558ef
add congest direct callback and fix malloc failed when multi_connection notify performance test
2020-05-15 15:35:39 +08:00
wangcheng
a5ac789725
fix bta_dm_deinit_cb crash
2020-05-13 20:18:27 +08:00
Hristo Gochkov
25281ef4de
Add HID Support to IDF
...
- Adds HID Host support in Buedroid
- Adds BLE HID Host and Device support
- Adds some general HID utilities and definitions to help integrate with other stacks and native USB
2020-04-29 17:24:01 +08:00
weitianhua
477e584f7d
Bugfix for HFP and some Github issue.
...
1. Bugfix for AG audio crash (change the return position)
2. Fix the error macro name and error return in hfp_hf demo
3. Fix the annotation error using UTF-8 ' (from Github)
4. Change or remove the log in SCO related code region.
5. Correct error of introduction of a function.
2020-02-25 18:03:54 +08:00
baohongde
5ca4c85497
components/bt: Fix connection fail and crash when receive unknown AT cmd
2020-01-20 11:32:26 +08:00
zhiweijian
b820b3fc56
component/bt: fix blufi prepare write buf len invalid
2020-01-09 09:38:35 +00:00
Geng Yu Chao
090843fa17
component/bt: Fix the issue with pointer type conversion in gattc. Unified count pointer type in bta and btc, change pointer type in bta from int to uint16_t.
2020-01-09 16:30:55 +08:00
gengyuchao
7e54ac08e6
ble Fix typo and add some comment
2020-01-08 04:17:49 +00:00
Brian Friedkin
efc514fa0a
add missing gatt descriptors
2020-01-08 04:17:49 +00:00
weitianhua
392eb79704
Format the BTM_WBS_INCLUDED macro
2019-12-12 17:12:38 +08:00
weitianhua
ad4b11a4f1
Fix crash when WBS enabled.
2019-12-12 17:12:38 +08:00
Geng Yu Chao
6c923cf330
Fix some typo in idf
2019-12-12 15:55:42 +08:00
Jiang Jiang Jian
767917bcf7
Merge branch 'bugfix/btdm_avrc_metadata_length_error' into 'master'
...
components/bt: Fix AVRC metadata length error
See merge request espressif/esp-idf!6879
2019-12-12 15:53:08 +08:00
Geng Yu Chao
46c53ab8c8
btdm:fix the problem that Not getting complete Identity Address (Public Address) of the Privacy-enabled Bonded Device after bonding. beacuse of the wrong memcpy in LE_KEY callback handler.
2019-12-09 15:21:49 +08:00
baohongde
e94c2a04c1
components/bt: Fix AVRC metadata length error
2019-12-03 02:44:49 +00:00
weitianhua
7c18299571
Add AG component API_REFERENCE
...
Expose esp_hf_indchange_notification to this example.
2019-11-27 13:35:35 +00:00
weitianhua
0c6e1f7ef8
Fix the audio crash bugs
...
Fix voice recognition bugs
Fix audio memory leak bug.
2019-11-27 13:35:35 +00:00
weitianhua
3f0e851a39
Feature/ Read Remote Device's Name
2019-11-14 03:33:37 +00:00
baohongde
90b18dd4f6
components/bt: Not post message to a2dp ctrl queue from btc queue, just call it.
2019-11-01 14:12:25 +08:00
baohongde
a099b6f7e4
components/bt: Fix assert when deinit A2DP while playing music
2019-10-29 19:47:50 +08:00
Jiang Jiang Jian
ea0f0b1700
Merge branch 'feature/btdm_add_api_to_set_channel_classification' into 'master'
...
Feature/btdm add api to set channel classification
Closes BT-450
See merge request espressif/esp-idf!6229
2019-10-26 20:42:58 +08:00
Jiang Jiang Jian
87e1dfa31e
Merge branch 'bugfix/btdm_check_avrc_connected_error' into 'master'
...
components/bt: Fix error in checking AVRC connected
See merge request espressif/esp-idf!6415
2019-10-26 20:42:04 +08:00
baohongde
ed984cc9b5
components/bt: Add API and EVT for BLE set channels(BLE)
2019-10-25 11:39:35 +08:00
baohongde
eaf5f6a319
components/bt: Add API and EVT for set AFH channels(BR/EDR)
2019-10-25 11:39:22 +08:00
baohongde
d6201066a3
components/bt: Fix error in checking AVRC connected
2019-10-25 02:50:31 +00:00
weitianhua
26b69f1363
New Clean Commit for AG.
...
Only Support single AG control block.
2019-10-14 07:54:09 +00:00
Prasad Alatkar
2c3648b619
BT/Bluedroid : Add support to set min encryption key requirement
...
- Modifies `smp_utils.c` to add check on encryption key size received from
peer.
- Modifies `esp_ble_gap_set_security_param` API to add minimum encryption key
size requirement.
2019-09-25 11:56:47 +08:00
Jiang Jiang Jian
9f145ff165
Merge branch 'feature/btdm_add_hf_nvrc_command' into 'master'
...
BT HFP: Add AT+NREC=0 command for disabling AG echo cancellation.
See merge request espressif/esp-idf!5974
2019-09-12 13:25:18 +08:00
nif
75578300f1
BT HFP: Add AT+NREC=0 command for disabling AG echo cancellation.
2019-09-02 09:28:38 +00:00
wangmengyang
30bc5953f2
bugfix that call of esp_a2d_media_ctrl(ESP_A2D_MEDIA_CTRL_SUSPEND) will not get an ACK from callback on A2DP sink
...
# Conflicts:
# components/bootloader/subproject/components/micro-ecc/micro-ecc
2019-08-28 15:16:10 +08:00
Anton Maklakov
afbaf74007
tools: Mass fixing of empty prototypes (for -Wstrict-prototypes)
2019-08-01 16:28:56 +07:00
baohongde
d1f774bc0a
component/bt: Avoid PLC to use unallocated memory
...
Closes https://github.com/espressif/esp-idf/pull/3799
2019-07-26 14:39:50 +08:00
baohongde
f048be924c
components/bt: Fix AVRCP command will not be executed while playing music
2019-07-16 08:50:36 +00:00
Jiang Jiang Jian
70474ae844
Merge branch 'feature/btdm_avrcp_volume' into 'master'
...
components/bt: Add AVRCP feature about volume
See merge request idf/esp-idf!5209
2019-06-30 16:40:10 +08:00
Hrishikesh Dhayagude
21165edf41
Bluetooth component refactoring
2019-06-30 16:39:00 +08:00