Tian Hao
78511c3cc3
component/bt: add a option to make report adv data and scan response individually
...
Originally, when doing BLE active scan, Bluedroid will not report adv to
application layer until receive scan response. This option is used to
disable the behavior. When enable this option, Bluedroid will report
adv data or scan response to application layer immediately.
2019-01-24 14:43:36 +08:00
wangmengyang
358de85eb3
component/bt: add more information and description for bluetooth modem sleep
...
Add remark that "EVED" mode for bluetooth modem sleep is only used for internal test
2018-12-21 19:29:47 +08:00
Jiang Jiang Jian
2cac11f162
Merge branch 'bugfix/btdm_fix_crash_adv_scan_coex_v3.2' into 'release/v3.2'
...
component/bt: fix crash when adv and scan coex and optimize duplicate scan (backport v3.2)
See merge request idf/esp-idf!3994
2018-12-21 15:59:53 +08:00
Jiang Jiang Jian
64eeee4532
Merge branch 'bugfix/btdm_fix_two_bugs_about_pairing_v3.2' into 'release/v3.2'
...
components/bt: Fix two bugs about pairing(backport 3.2)
See merge request idf/esp-idf!3995
2018-12-21 14:26:19 +08:00
zwj
3f6033d8bd
fix crash when adv and scan coex and optimize duplicate scan
2018-12-19 19:53:01 +08:00
baohongde
45e59a9f56
components/bt: Fix two bugs about pairing
...
1. Fix Legacy Pairing failed without remote device name
2. Fix discovery no device after disabling SSP
2018-12-19 19:42:47 +08:00
wangmengyang
587e6ec93f
component/bt: use a pm_lock to prevent light sleep when bluetooth is enabled due to current imcompatibility
2018-12-18 14:51:19 +08:00
Jiang Jiang Jian
6d00c7fc49
Merge branch 'bugfix/btdm_assert_ble_65536_v3.2' into 'release/v3.2'
...
fix bug that there's very low ratio to cause BLE assert(65536, 0) in rwble.c at line 222
See merge request idf/esp-idf!3968
2018-12-18 12:03:21 +08:00
Jiang Jiang Jian
c418714ec6
Merge branch 'bugfix/btdm_fix_receive_adv_pkt_when_duplicate_scan_enabled_v3.2' into 'release/v3.2'
...
Component/bt: fix receive adv pkt when enable duplicate scan (backport v3.2)
See merge request idf/esp-idf!3942
2018-12-18 11:45:28 +08:00
Tian Hao
e5e592e5b6
fix bug that there's very low ratio to cause BLE assert(65536, 0) in rwble.c at line 222
2018-12-17 20:50:42 +08:00
zhiweijian
28e20e90e3
Component/bt: fix receive adv pkt when enable duplicate scan
2018-12-17 15:51:28 +08:00
Jiang Jiang Jian
1c4d9f2aca
Merge branch 'bugfix/btdm_modem_sleep_cowork_with_DFS_for_v3.2' into 'release/v3.2'
...
Bugfix/btdm modem sleep cowork with dfs for v3.2(backport v3.2)
See merge request idf/esp-idf!3962
2018-12-14 20:28:31 +08:00
Jiang Jiang Jian
ded8b0102a
Merge branch 'bugfix/btdm_fix_auth_mode_error_when_reconnection_in_smp_v3.2' into 'release/v3.2'
...
Component/bt: fix auth_mode error when reconnection in SMP (backport v3.2)
See merge request idf/esp-idf!3955
2018-12-14 18:24:01 +08:00
wangmengyang
401970495d
component/bt: add DRAM_ATTR attribute to global variables(mostly in bss segment) in bt.c which can be accessed in ISR
2018-12-14 14:59:41 +08:00
wangmengyang
8de9149b11
component/bt: bugfix of bluetooth modem sleep not being able to work with Dynamic Frequency Scaling
...
1. start an esp_timer on entering sleep to acquire pm_lock before wake up from modem sleep
2. decrease the clock division of XTAL fed to bluetooth low power clock from 32us to 2us period to allow to work under 240MHz Max CPU frequency
3. decrease the minimum sleep duration threshold to allow shorter bluetooth modem sleep period, especially for BLE with short connection interval
4. reconfigure bluetooth baseband(BT-BB) settings after PHY/RF init upon waking up from modem sleep to avoid packet RX/TX performance degradation
2018-12-14 14:56:29 +08:00
zhiweijian
2c1e3d1ef2
Component/bt: fix save keys when auth mode without bond
2018-12-13 15:45:53 +08:00
zhiweijian
bf608b6709
Component/bt: fix auth_mode error when reconnection in SMP
2018-12-13 15:33:37 +08:00
Jiang Jiang Jian
fd00d3213b
Merge branch 'bugfix/btdm_fix_accept_specified_sec_auth_v3.2' into 'release/v3.2'
...
Component/bt: fix accept specified sec auth error(backport v3.2)
See merge request idf/esp-idf!3836
2018-12-13 11:20:02 +08:00
Tian Hao
f44507de53
fix bug that there's very low ratio to cause BLE assert(32768, 0) in rwble.c at line 222
2018-12-06 21:35:19 +08:00
Tian Hao
2d67ce3109
component/bt and esp32: fix two bluetooth bugs that caused by coexist module
...
1. Fix interrupt watchdog timeout in bluetooth "btdm_bb_isr"
2. Fix BLE assert(512) or assert(1536) in rwble.c at line 222
3. Update librtc.a to fix BLE assert(512) in rwble.c at line 222
The #1 and #2 occurs random.
The #3 bug occurs in certain scenario:
1. If Wifi start softap and BLE is working
2. If wifi start station, but do not use normal station operation, such
as just use espnow, while BLE is working
3. Any other scenario, that wifi works without use software coexist
operation, while BLE is working(such as do advertising and ...)
4. update libcoexist.a version to v1.1.2
2018-12-03 19:30:28 +08:00
zhiweijian
ca51b60033
Component/bt: fix accept specified sec auth error
2018-11-29 20:46:08 +08:00
Tian Hao
9bb719dd68
fix bug to unsupport rf reg access from hci cmd
...
Always return 0 when read rf register and do nothing when write rf register
2018-11-24 14:21:25 +08:00
baohongde
8d1594c339
components/bt: Move function in interrupt into IRAM
...
1. Move function in interrupt into IRAM
2. Delete unused code, saving 240B DRAM and some code size
2018-11-22 16:19:21 +08:00
Jiang Jiang Jian
18b65dca26
Merge branch 'bugfix/btdm_controller_disable_v3.2' into 'release/v3.2'
...
Fix two bugs when disable bluetooth controller(backport v3.2)
See merge request idf/esp-idf!3716
2018-11-21 11:26:14 +08:00
Tian Hao
331c7c7dc3
Fix two bugs when disable bluetooth controller
...
1. Fix the bug that disable controller suddenly cause crash when ble is working.
2. Fix the bug that when disable controller, it will cause wifi cannot RX, TX timeout, buffer lack and etc.
2018-11-20 09:01:57 +00:00
zhiweijian
c59c40741b
Component/bt: add check peer addr type in set adv params
2018-11-19 17:15:41 +08:00
Jiang Jiang Jian
8725bce5bc
Merge branch 'bugfix/btdm_errors_in_comment_v3.2' into 'release/v3.2'
...
components/bt: Some errors in comment(backport 3.2)
See merge request idf/esp-idf!3713
2018-11-19 14:36:45 +08:00
baohongde
b021bbdc80
components/bt: Some errors in comment
2018-11-16 15:27:28 +08:00
baohongde
c9fe4fa13e
components/bt: Put function in isr into iram(backport 3.2)
2018-11-16 07:19:51 +00:00
Jiang Jiang Jian
fe0a5b41bf
Merge branch 'bugfix/fix_memory_leak_for_v3.2' into 'release/v3.2'
...
Component/bt: fix memory leak in service change(backport v3.2)
See merge request idf/esp-idf!3685
2018-11-14 15:35:03 +08:00
zhiweijian
1f7c54ae85
Component/bt: fix memory leak in service change
2018-11-12 19:41:19 +08:00
baohongde
f2309f1013
components/bt: Point ACL RX buffer ptr to ACL RX buffer if ACL RX buffer ptr is null
...
1. When WIFI task or other high priority task blocks the Bluetooth task, ACL RX buffer will use up, ACL RX buffer ptr will point to null and will never point to a valid adress. Causing errors in Bluetooth.
2. hcimsgs.h used whether flow control is on or off
2018-11-01 17:33:44 +08:00
Jiang Jiang Jian
12b2268ee5
Merge branch 'bugfix/btdm_sniff_anchor_point_calculation_error' into 'master'
...
bugfix/btdm_sniff_anchor_point_calculation_error
See merge request idf/esp-idf!3582
2018-11-01 15:58:00 +08:00
Jiang Jiang Jian
a60a71ff07
Merge branch 'bugfix/btdm_name_buffer_allocation_size_differs' into 'master'
...
components/bt: Fix the different size of name buffer allocation size
See merge request idf/esp-idf!3587
2018-11-01 15:56:45 +08:00
Jiang Jiang Jian
cac7b951a8
Merge branch 'bugfix/btdm_fix_get_attr_value_error' into 'master'
...
Component/bt: fix get attr value API error
See merge request idf/esp-idf!3583
2018-11-01 15:55:22 +08:00
baohongde
373f1c121b
component/bt: bugfix of error when entering sniff mode with attempt large than 0xFF
2018-10-31 16:16:49 +00:00
wangmengyang
159d4ac742
component/bt: bugfix for the error in calculation sniff anchor point which can result in supervision timeout after connection is brought into sniff mode
2018-10-31 16:16:49 +00:00
zhiweijian
1716d12547
Component/bt: fix ble cannot send or receive packet sometimes
2018-10-31 16:13:51 +00:00
Jiang Jiang Jian
dba29eeb2e
Merge branch 'bugfix/btdm_change_default_CoD_of_BT_profile' into 'master'
...
components/bt: Set default Class of Device of BT profile
See merge request idf/esp-idf!3564
2018-10-31 20:51:15 +08:00
baohongde
e19a352a2b
components/bt: Fix the different size of name buffer allocation size
...
Close https://github.com/espressif/esp-idf/issues/2615
2018-10-31 17:39:31 +08:00
Jiang Jiang Jian
39c03558e8
Merge branch 'bugfix/btdm_add_attr_handle_for_ESP_GATTS_CONF_EVT' into 'master'
...
Component/bt: add attr_handle for ESP_GATTS_CONF_EVT
See merge request idf/esp-idf!3492
2018-10-31 17:20:47 +08:00
zhiweijian
950fe25120
Component/bt: fix get attr value API error
2018-10-30 15:00:23 +08:00
baohongde
df5839420d
components/bt: Reduce IRAM size
...
libbtdm: 2608B
idf: 924B
2018-10-29 16:54:32 +08:00
baohongde
67e62aa105
components/bt: Set default Class of Device of BT profile
...
The CoD of each profile both are 0x2c0414, now they are as follow:
A2DP sink: 0x240414
A2DP source: 0x280400
HFP: 0x200408
SPP: 0x001F00
2018-10-26 17:03:39 +08:00
Jiang Jiang Jian
93dbf2f3ba
Merge branch 'bugfix/btdm_read_multiple_return_callback_status_ESP_GATT_STACK_RSP' into 'master'
...
Component/bt: fix read multiple return callback status: ESP_GATT_STACK_RSP
See merge request idf/esp-idf!3437
2018-10-26 11:41:18 +08:00
Jiang Jiang Jian
0bc364f7ea
Merge branch 'bugfix/btdm_add_sniff_mode_to_spp' into 'master'
...
components/bt: Add sniff mode to SPP
See merge request idf/esp-idf!3472
2018-10-26 11:38:50 +08:00
Jiang Jiang Jian
762c04bd61
Merge branch 'bugfix/btdm_disconnect_ble_when_ESP_BLE_SM_ONLY_ACCEPT_SPECIFIED_SEC_AUTH_failed' into 'master'
...
Component/bt: add ble disconnect when ACCEPT_SPECIFIED_SEC_AUTH failed
See merge request idf/esp-idf!3465
2018-10-26 11:34:26 +08:00
zhiweijian
6b96a3c23b
Component/bt: add ble disconnect when ACCEPT_SPECIFIED_SEC_AUTH failed
2018-10-25 06:03:16 +00:00
zwj
501ebabc4e
component/bt: fix remove bond list failed
2018-10-24 23:23:50 +00:00
Renz Bagaporo
cc774111bf
cmake: Add support for test build
2018-10-20 12:07:24 +08:00