wangmengyang
7403e8e11c
component/bt: remove the pm_lock that prevents light sleep in case that external 32kHz crystal is used as Bluetooth low power clock
2019-05-27 17:47:33 +08:00
baohongde
fcf4886172
components/bt: Support EV3 packet type
2019-05-24 17:36:10 +08:00
baohongde
dd906a91a5
components/bt: Enable mSBC and add decoder and encoder
2019-05-24 17:36:10 +08:00
baohongde
20758443df
components/bt: Add packet loss concealment (PLC) for HFP
2019-05-24 17:33:52 +08:00
baohongde
e10d5aaddc
component/bt: modify the SBC decoder to support mSBC mode
2019-05-24 17:33:52 +08:00
wangmengyang
7c28611a3d
component/bt: modify the SBC encoder to support mSBC mode
2019-05-24 17:33:52 +08:00
baohongde
f15323b453
component/bt: remove SBC frame scramling
2019-05-24 17:33:52 +08:00
GOPTIONS\pfrost
897bb55482
nvs: Append _t to nvs_handle & nvs_open_mode types
...
Merges https://github.com/espressif/esp-idf/pull/3239/
2019-05-22 02:53:28 +00:00
Roland Dobai
1ad2283641
Rename Kconfig options (components/bootloader)
2019-05-21 09:32:55 +02:00
Roland Dobai
a1bddb923b
Rename Kconfig options (components/bt)
2019-05-21 09:09:01 +02:00
Roland Dobai
0ae53691ba
Rename Kconfig options (components/esp32)
2019-05-21 09:09:01 +02:00
Renz Christian Bagaporo
ffec9d4947
components: update with build system changes
2019-05-13 19:59:17 +08:00
wangmengyang
38ec1b9a86
component/bt: fix some performance issues in A2DP source data flow control
...
1. modify the limit of frames to send to avoid dropping packet on A2DP source due to TX data queue overflow
2. reduce the A2DP source data queue size in order to achieve faster control respnonse
2019-05-05 11:42:27 +08:00
Jiang Jiang Jian
b5bbd42b9a
Merge branch 'bugfix/btdm_abort_if_deinit_spp_without_init' into 'master'
...
components/bt: Fix abort if call esp_spp_deinit without calling esp_spp_init
See merge request idf/esp-idf!4859
2019-04-25 20:38:37 +08:00
baohongde
db6b210a5f
components/bt: Fix abort if call esp_spp_deinit without calling esp_spp_init
2019-04-24 11:17:54 +08:00
zhiweijian
0ae4eb4f09
Component/bt: add ble link timeout config in menuconfig
...
- add ble link timeout config in menuconfig
- disable background connection when call gatts_open
2019-04-22 09:16:19 +00:00
Michael (XIAO Xufeng)
562af8f65e
global: move the soc component out of the common list
...
This MR removes the common dependency from every IDF components to the SOC component.
Currently, in the ``idf_functions.cmake`` script, we include the header path of SOC component by default for all components.
But for better code organization (or maybe also benifits to the compiling speed), we may remove the dependency to SOC components for most components except the driver and kernel related components.
In CMAKE, we have two kinds of header visibilities (set by include path visibility):
(Assume component A --(depends on)--> B, B is the current component)
1. public (``COMPONENT_ADD_INCLUDEDIRS``): means this path is visible to other depending components (A) (visible to A and B)
2. private (``COMPONENT_PRIV_INCLUDEDIRS``): means this path is only visible to source files inside the component (visible to B only)
and we have two kinds of depending ways:
(Assume component A --(depends on)--> B --(depends on)--> C, B is the current component)
1. public (```COMPONENT_REQUIRES```): means B can access to public include path of C. All other components rely on you (A) will also be available for the public headers. (visible to A, B)
2. private (``COMPONENT_PRIV_REQUIRES``): means B can access to public include path of C, but don't propagate this relation to other components (A). (visible to B)
1. remove the common requirement in ``idf_functions.cmake``, this makes the SOC components invisible to all other components by default.
2. if a component (for example, DRIVER) really needs the dependency to SOC, add a private dependency to SOC for it.
3. some other components that don't really depends on the SOC may still meet some errors saying "can't find header soc/...", this is because it's depended component (DRIVER) incorrectly include the header of SOC in its public headers. Moving all this kind of #include into source files, or private headers
4. Fix the include requirements for some file which miss sufficient #include directives. (Previously they include some headers by the long long long header include link)
This is a breaking change. Previous code may depends on the long include chain.
You may need to include the following headers for some files after this commit:
- soc/soc.h
- soc/soc_memory_layout.h
- driver/gpio.h
- esp_sleep.h
The major broken include chain includes:
1. esp_system.h no longer includes esp_sleep.h. The latter includes driver/gpio.h and driver/touch_pad.h.
2. ets_sys.h no longer includes soc/soc.h
3. freertos/portmacro.h no longer includes soc/soc_memory_layout.h
some peripheral headers no longer includes their hw related headers, e.g. rom/gpio.h no longer includes soc/gpio_pins.h and soc/gpio_reg.h
BREAKING CHANGE
2019-04-16 13:21:15 +08:00
Jiang Jiang Jian
603d293365
Merge branch 'feature/btdm_AVRCP_TG' into 'master'
...
component/bt: implement AVRCP Target APIs
See merge request idf/esp-idf!3899
2019-04-15 18:53:51 +08:00
wangmengyang
61bd453c15
component/bt: implement AVRCP Target APIs
...
1. Add more notification events to the enum according to the event list in AVRCP specification.
2. Add API and callback events for basic AVRCP target functionalities to do init, deinit, callback-registration, connection status indication.
3. Implement API to set/get supported PASSTHROUGH command on local AVRCP TG, implement callback events for remote passthrough command indication.
4. Implement API to set/get supported notification eventIDs on local AVRCP TG, implement API to send event notifications to remote CT. \
Currently supported event in TG only includes ESP_AVRC_RN_VOLUME_CHANGE(0xd), which can be extended in later commits.
5. Implement callback events for SetAbsoluteVolume command indication on TG.
6. Add limitation of event_ids supported in RegisterNotification command in CT. The supported event_ids include: \
ESP_AVRC_RN_PLAY_STATUS_CHANGE(0x1), ESP_AVRC_RN_TRACK_CHANGE(0x2), ESP_AVRC_RN_PLAY_POS_CHANGE(0x5), ESP_AVRC_RN_VOLUME_CHANGE(0xd).
7. Add feature bit mask in parameter of callback event ESP_AVRC_CT_REMOTE_FEATURES_EVT for peer feature information got from SDP.
8. Add API and callback event to AVRCP CT to retrieve remote TG's supported notification event capabilities.
9. Modify data type for parameter of callback event ESP_AVRC_CT_CHANGE_NOTIFY_EVT.
10. Change AVRCP version from 1.3 to 1.4 for compatibility cause in using AbsoluteVolume feature.
11. Modify local AVRCP device to be category 1 as CT and category 2 as TG that applies to bluetooth headphones or speakers.
12. Update the use of AVRCP APIs and events in the two examples: a2dp_sink and a2dp_gatts_coex, which include the demo of volume control and notification.
2019-04-10 16:34:13 +08:00
zhiweijian
6e4a89ffce
component/bt: fix memory leak when settig tx power
2019-04-04 19:49:23 +08:00
Jiang Jiang Jian
3ab9d00219
Merge branch 'bugfix/btdm_fix_warning_when_disable_logs' into 'master'
...
components/bt: Fix warning when disable debug logs or in release mode and improve the code structure
See merge request idf/esp-idf!4618
2019-04-04 18:45:25 +08:00
Jiang Jiang Jian
e7f85f1987
Merge branch 'bugfix/btdm_disconn_with_apple_device' into 'master'
...
components/bt: Fix disconnect with apple device
See merge request idf/esp-idf!4665
2019-04-04 18:44:53 +08:00
morris
f5b03c9ea3
misc adjustment of esp32 component
2019-04-03 19:57:46 +08:00
baohongde
a332bca0c7
components/bt: Fix disconnect with apple device
...
1. Fix disconnect with apple device
2. Fix hci_refresh_enc_key_cmd will be ignored
3. Fix hci_refresh_enc_key_cmd will crash
Closes https://github.com/espressif/esp-idf/issues/3140
2019-04-03 17:22:01 +08:00
zhiweijian
0acc2f59e5
Component/bt: add mesh beacon adv and svc uuid for duplicate scan exceptional list
2019-03-28 06:09:19 +00:00
Jiang Jiang Jian
fe793eb574
Merge branch 'bugfix/btdm_modify_HCI_GET_CMD_BUF' into 'master'
...
Component/bt: modify HCI_GET_CMD_BUF
See merge request idf/esp-idf!4465
2019-03-27 14:23:52 +08:00
baohongde
59d77660ef
components/bt: Fix warning when disable debug logs or in release mode and improve the code structure
2019-03-26 14:37:37 +08:00
zhiweijian
c0bdea6aae
Component/bt: add new param for update_whitelist()
2019-03-22 12:22:51 +00:00
Ivan Grokhotkov
106dc05903
Merge branch 'feature/specify_includes_belonging_esp32' into 'master'
...
move esp32 chip specific includes to esp32/xxx.h
See merge request idf/esp-idf!4534
2019-03-21 18:34:08 +08:00
Jiang Jiang Jian
bd103f3743
Merge branch 'feature/btdm_add_api_to_clean_gattc_cache' into 'master'
...
Component/bt: add api to clean gattc cache
See merge request idf/esp-idf!3951
2019-03-20 22:05:00 +08:00
Jiang Jiang Jian
c1600f28d1
Merge branch 'bugfix/btdm_fix_no_adv_report_when_scaning_with_sleep_enable' into 'master'
...
Component/bt: fix no adv report when scanning with sleep enable
See merge request idf/esp-idf!4535
2019-03-20 21:36:23 +08:00
Jiang Jiang Jian
c5fb88c2e2
Merge branch 'bugfix/btdm_fix_build_warning_when_bluedroid_disable_log' into 'master'
...
Component/bt: fix build warning when bluedroid disable log
See merge request idf/esp-idf!4524
2019-03-20 21:09:59 +08:00
zhiweijian
7f606d0c2b
Component/bt: modify HCI_GET_CMD_BUF
2019-03-20 19:35:06 +08:00
Jiang Jiang Jian
dc5ff1d633
Merge branch 'bugfix/btdm_fix_blufi_prepare_write_crash' into 'master'
...
Component/bt: fix blufi prepare write crash
See merge request idf/esp-idf!4447
2019-03-20 11:46:15 +08:00
morris
956c25dedd
move esp32 chip specific includes to esp32/xxx.h
2019-03-18 17:14:05 +08:00
zhiweijian
a628577f64
Component/bt: fix no adv report when scaning with sleep enable
2019-03-18 16:35:50 +08:00
zhiweijian
1940ee0910
Component/bt: fix build warning when bluedroid disable log
2019-03-18 14:18:12 +08:00
Jiang Jiang Jian
5beb2802e0
Merge branch 'bugfix/bluetooth_fix_API_esp_bt_gap_set_scan_mode' into 'master'
...
Modify esp_bt_gap_set_scan_mode() to be able to set connection modes as well as discoverable modes
See merge request idf/esp-idf!2208
2019-03-17 14:19:11 +08:00
Tian Hao
b39bd0615c
fix the bug assert(8192 0) in rwble.c 234
2019-03-14 15:38:23 +08:00
zhiweijian
296fbca2e7
Component/bt: fix blufi prepare write crash
2019-03-13 17:57:25 +08:00
zhiweijian
d5e78e79d3
Component/bt: add api to clean gattc cache
2019-03-13 15:23:33 +08:00
Hrishikesh Dhayagude
d9ce0bb705
Modify esp_bt_gap_set_scan_mode() to be able to set connection modes as well as discoverable modes
...
The current API is insufficient to allow the users to set different combinations of connection and discoverable mode
Users should be able to choose the device modes independently:
1. Connectable-
i. Non-connectable mode
ii. Connectable mode
2. Discoverable-
i. Non-discoverable mode
ii. Limited discoverable mode
iii. General discoverable mode
2019-03-13 11:24:00 +05:30
zhiweijian
d5f15a45ca
Component/bt: add BLE adv report flow control
2019-03-12 11:10:26 +08:00
Jiang Jiang Jian
c1e50c8a27
Merge branch 'bugfix/btdm_fix_iOS_and_win10_compatibility_error_for_HID' into 'master'
...
Component/bt: fix iOS and win10 compatibility error for HID
See merge request idf/esp-idf!4396
2019-03-06 14:11:38 +08:00
XiaXiaotian
b9b401ee39
Decouple WiFi and BT with coexist to reduce bin size
...
1. Do not link WiFi code when only BT or BLE is used and WiFi is not
used.
2. Do not link coexist code when CONFIG_SW_COEXIST_ENABLE is disabled.
2019-03-05 10:38:14 +08:00
zhiweijian
d71df18d92
Component/bt: fix iOS and win10 compatibility error for HID
2019-02-28 20:39:12 +08:00
Jiang Jiang Jian
484d8ab7ed
Merge branch 'bugfix/btdm_fix_remove_bonded_device_warnning' into 'master'
...
Component/bt: fix remove bonded device warnning
See merge request idf/esp-idf!3704
2019-02-27 17:54:37 +08:00
Tian Hao
d877ca4438
component/bt : fix bug that there's low ratio crash when BLE do re-connect/re-scan/re-adv
...
fix 3 bugs:
1. do BLE connect (both of slave and master), it mgiht cause crash due to there's much interrupts happens effect ble code running, for example, wifi run on the same core as bluetooth controller and wifi run throughtput test.
2. do BLE scan stop or adv stop or connection stop, it might cause ASSERT or crash due to memory corrupted in controller memory poll.
3. minor bug fix, not really effect bluetooth.
2019-02-22 06:24:03 +00:00
zwj
faf9126ed4
component/bt: fix connection params update issues
2019-02-18 19:52:16 +08:00
Jiang Jiang Jian
2ce401c664
Merge branch 'bugfix/btdm_crash_when_inquiry_cancel' into 'master'
...
Bugfix/btdm crash when inquiry cancel
See merge request idf/esp-idf!4142
2019-02-16 16:27:49 +08:00
Angus Gratton
a2b47fd314
Merge branch 'bugfix/win_kconfig_backslash' into 'master'
...
tools: Fix Windows related Kconfig issues
See merge request idf/esp-idf!4206
2019-02-04 14:27:38 +08:00
Jiang Jiang Jian
d4d3ccf6d9
Merge branch 'bugfix/btdm_add_handle_in_gatts_conf_event_for_indication' into 'master'
...
Component/bt: add handle in gatts conf event for indication
See merge request idf/esp-idf!4024
2019-02-01 21:33:39 +08:00
Roland Dobai
80cb4a1a18
tools: Don't use backslashes in Kconfigs and ignore long lines to avoid errors
...
Closes https://github.com/espressif/esp-idf/issues/3012
2019-02-01 11:33:41 +01:00
zhiweijian
b51a0fcea5
Component/bt: fix write char crash after disconnection
2019-01-31 12:18:54 +00:00
baohongde
e87d05d81f
components/bt: Add precautions for esp_vhci_host_send_packet
2019-01-31 11:47:58 +08:00
baohongde
27235e023f
components/bt: Fix crash when inquiry stop
2019-01-31 11:47:41 +08:00
Roland Dobai
37126d3451
Correct Kconfigs according to the coding style
2019-01-29 13:37:01 +01:00
zhiweijian
b2a515c347
Component/bt: add handle in gatts conf event for indication
2019-01-28 07:12:22 +00:00
Jiang Jiang Jian
5c88c5996d
Merge branch 'bugfix/ble_active_scan_not_wait_scan_rsp' into 'master'
...
component/bt: add a option to make report adv data and scan response individually
See merge request idf/esp-idf!4131
2019-01-25 11:53:06 +08:00
Tian Hao
6c8a8664aa
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:30:02 +08:00
Michael Reutman
fdd865f22d
Fix typo in error message in esp_bluedroid_init
...
Closes https://github.com/espressif/esp-idf/pull/2835
2019-01-23 16:47:23 +05:30
MartinValik
e3428adf87
Added Cmake support for dhcp_state
2019-01-10 07:51:54 +00:00
Jiang Jiang Jian
c4963fc329
Merge branch 'bugfix/btdm_miscellaneous_modifications' into 'master'
...
component/bt: some miscellaneous modifications for BLE
See merge request idf/esp-idf!4032
2019-01-02 14:04:44 +08:00
Jiang Jiang Jian
1de94b7b45
Merge branch 'bugfix/btdm_debug_numeric_comparison_mode' into 'master'
...
component/bt: modify the BLE example to make it run with "numeric comparison" mode
See merge request idf/esp-idf!3500
2019-01-02 14:02:58 +08:00
Jiang Jiang Jian
9874bcc8e7
Merge branch 'bugfix/remove_gatts_warning' into 'master'
...
components/bt: Remove warnings in btc_gatts_arg_deep_copy() that are confusing
See merge request idf/esp-idf!4008
2019-01-02 12:00:10 +08:00
Tree
68626ed494
component/bt: some miscellaneous modifications for BLE
2018-12-26 20:36:33 +08:00
wangmengyang
74eae4b50e
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:30:20 +08:00
Hrishikesh Dhayagude
11a5fb8ab6
components/bt: Remove warnings in btc_gatts_arg_deep_copy() that are confusing
...
Fixes: https://github.com/espressif/esp-idf/issues/2811
The warning print "NULL value" is only kept for event
BTC_GATTS_ACT_SET_ATTR_VALUE as this can be useful in case user forgets
to set attribute value
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-12-20 14:20:56 +05:30
Jiang Jiang Jian
65142bc59e
Merge branch 'bugfix/btdm_configure_ssp_in_menuconfig' into 'master'
...
components/bt: Configure SSP in menuconfig and fix two bugs
See merge request idf/esp-idf!3892
2018-12-20 15:31:08 +08:00
Jiang Jiang Jian
f8910cecce
Merge branch 'bugfix/btdm_fix_crash_adv_scan_coex' into 'master'
...
component/bt: fix crash when adv and scan coex and optimize duplicate scan
See merge request idf/esp-idf!3975
2018-12-20 14:59:20 +08:00
baohongde
d601ed8023
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-20 11:10:52 +08:00
baohongde
9c48528fcc
components/bt: Configure SSP in menuconfig
2018-12-20 11:10:27 +08:00
Jiang Jiang Jian
1607812fef
Merge branch 'bugfix/btdm_fix_receive_adv_pkt_when_duplicate_scan_enabled' into 'master'
...
Component/bt: fix receive adv pkt when enable duplicate scan
See merge request idf/esp-idf!3783
2018-12-18 11:44:38 +08:00
wangmengyang
561021e7f7
component/bt: use a pm_lock to prevent light sleep when bluetooth is enabled due to current imcompatibility
2018-12-17 19:54:57 +08:00
zhiweijian
05e84cad1e
Component/bt: fix receive adv pkt when enable duplicate scan
2018-12-17 15:49:04 +08:00
zwj
90a451c181
fix crash when adv and scan coex and optimize duplicate scan
2018-12-17 11:40:50 +08:00
Tian Hao
1a4fa06125
fix bug that there's very low ratio to cause BLE assert(65536, 0) in rwble.c at line 222
2018-12-14 17:38:52 +08:00
Jiang Jiang Jian
6cb37ecc57
Merge branch 'bugfix/btdm_modem_sleep_cowork_with_DFS' into 'master'
...
bugfix/btdm_modem_sleep_cowork_with_DFS
See merge request idf/esp-idf!3797
2018-12-14 14:03:56 +08:00
wangmengyang
b4299433bd
component/bt: add DRAM_ATTR attribute to global variables(bss segment) in bt.c which can be accessed in ISR
2018-12-14 11:29:00 +08:00
Jiang Jiang Jian
bc30569842
Merge branch 'bufix/btdm_fix_save_key_when_auth_mode_without_bond' into 'master'
...
Component/bt: fix save keys when auth mode without bond
See merge request idf/esp-idf!3782
2018-12-14 10:35:14 +08:00
Jiang Jiang Jian
58a200e70c
Merge branch 'bugfix/btdm_fix_auth_mode_error_when_reconnection_in_smp' into 'master'
...
Component/bt: fix auth_mode error when reconnection in SMP
See merge request idf/esp-idf!3856
2018-12-13 17:04:12 +08:00
zhiweijian
7c6211fe45
Component/bt: fix save keys when auth mode without bond
2018-12-13 15:43:31 +08:00
Jiang Jiang Jian
bfd22a24da
Merge branch 'bugfix/btdm_fix_accept_specified_sec_auth' into 'master'
...
Component/bt: fix accept specified sec auth error
See merge request idf/esp-idf!3770
2018-12-13 11:19:53 +08:00
wangmengyang
59f34461d7
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-11 16:49:01 +08:00
Tian Hao
357f2264e6
fix bug that there's very low ratio to cause BLE assert(32768, 0) in rwble.c at line 222
2018-12-06 16:54:14 +08:00
zhiweijian
5c5799fa51
Component/bt: fix auth_mode error when reconnection in SMP
2018-12-04 18:05:25 +08:00
Tian Hao
a9429ee5da
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:41:43 +08:00
Jiang Jiang Jian
6bd497f9ed
Merge branch 'feature/btdm_ble_full_scan_support' into 'master'
...
component/bt: Added the ble full scan supported feature.
See merge request idf/esp-idf!3820
2018-11-30 21:53:21 +08:00
yulong
0f3eb977cd
component/bt: Added the ble full scan supported feature.
...
1. Add the full scan swith in the menuconfig;
2. Change the bt lib in order to support ble full scan
2018-11-30 20:48:42 +08:00
Angus Gratton
759185b16c
Merge branch 'bugfix/bt_ut_build_all' into 'master'
...
Fix unit test cmake build for BT
See merge request idf/esp-idf!3767
2018-11-29 09:52:55 +08:00
Jiang Jiang Jian
7312294648
Merge branch 'bugfix/btdm_rf_reg' into 'master'
...
fix bug to unsupport rf reg access from hci cmd
See merge request idf/esp-idf!3787
2018-11-28 21:21:20 +08:00
Anton Maklakov
87e8757569
bt: Fix unit tests build with CMake
2018-11-28 15:19:04 +08:00
Renz Christian Bagaporo
37d30c7a6e
cmake: separate app from idf lib project
...
mbedtls: import mbedtls using unmodified cmake file
2018-11-27 13:59:24 +08:00
Tian Hao
f3bfdeaeec
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-27 12:00:06 +08:00
zhiweijian
18a27b88c7
Component/bt: fix accept specified sec auth error
2018-11-23 20:14:03 +08:00
zhiweijian
dd3d89db49
Component/bt: add update duplicate scan exceptional list APIs
2018-11-23 16:46:17 +08:00
baohongde
7e142f9d22
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 15:59:53 +08:00
Jiang Jiang Jian
0d7f2d77c2
Merge branch 'feature/btdm_add_set_long_adv_data_api' into 'master'
...
Component/bt: add set long adv data api
See merge request idf/esp-idf!3722
2018-11-21 11:31:13 +08:00
Jiang Jiang Jian
69c9e050b0
Merge branch 'bugfix/btdm_add_check_peer_addr_type_in_set_adv_params' into 'master'
...
Component/bt: add check peer addr type in set adv params
See merge request idf/esp-idf!3732
2018-11-20 20:02:13 +08:00
zhiweijian
5e3d88ee64
Component/bt: fix remove bonded device warnning
2018-11-20 07:15:02 +00:00
Jiang Jiang Jian
ffda37dd16
Merge branch 'feature/btdm_BLE_Blocking_APIs' into 'master'
...
Component/bt: add BLE Blocking APIs
See merge request idf/esp-idf!3513
2018-11-20 14:40:50 +08:00
Jiang Jiang Jian
b422a42697
Merge branch 'bugfix/btdm_errors_in_comment' into 'master'
...
components/bt: Some errors in comment
See merge request idf/esp-idf!3703
2018-11-20 14:26:12 +08:00
zhiweijian
775c6e5ab7
Component/bt: add set long adv data api
2018-11-20 11:19:51 +08:00
zhiweijian
3c7819eaf2
Component/bt: add check peer addr type in set adv params
2018-11-19 17:04:48 +08:00
baohongde
ac5a3443a4
components/bt: Some errors in comment
2018-11-16 11:27:22 +08:00
Tian Hao
9c9aa4ea4c
Fix two bugs when disable bluetooth controller
...
1. Fix the bug that disable controller suddenly cause crash when ble is working. (585cfba1)
2. Fix the bug that when disable controller, it will cause wifi cannot RX, TX timeout, buffer lack and etc. (f8546145)
2018-11-16 02:42:38 +00:00
Jiang Jiang Jian
c7fb749b84
Merge branch 'bugfix/btdm_fix_memory_leak_in_v3.2' into 'master'
...
Component/bt: fix memory leak in service change char
See merge request idf/esp-idf!3631
2018-11-12 11:27:00 +08:00
Jiang Jiang Jian
ccb3841a9e
Merge branch 'feature/btdm_add_vendor_hci_cmd' into 'master'
...
component/bt: add vendor hci cmd
See merge request idf/esp-idf!3577
2018-11-12 11:26:35 +08:00
Angus Gratton
3685d325d8
Merge branch 'bugfix/multiple_github_pr' into 'master'
...
Multiple github PR's
See merge request idf/esp-idf!3665
2018-11-12 09:14:35 +08:00
Jiang Jiang Jian
9859428606
Merge branch 'bugfix/btdm_add_scan_window_interval_check' into 'master'
...
Component/bt: add scan window and interval check when set scan params
See merge request idf/esp-idf!3581
2018-11-09 19:32:11 +08:00
zwj
baf57b9702
component/bt: add vendor hci cmd
2018-11-09 14:39:04 +08:00
zhiweijian
fb3aa88565
Component/bt: add BLE Blocking APIs
2018-11-09 03:31:08 +00:00
Stephen Bird
b5c58557fc
bt: Fix bracket warning
...
Merges https://github.com/espressif/esp-idf/pull/2568
2018-11-08 15:57:12 +05:30
Jiang Jiang Jian
71f1a34540
Merge branch 'feature/btdm_support_oob_in_SMP' into 'master'
...
Component/bt: support OOB in SMP
See merge request idf/esp-idf!3496
2018-11-08 16:44:15 +08:00
Hrishikesh Dhayagude
2c353edbc4
components/bt: Fix btc_gatts_arg_deep_copy() and bta_gatts_indicate_handle()
2018-11-06 21:01:54 +08:00
Jiang Jiang Jian
888406231c
Merge branch 'bugfix/btdm_fuction_in_isr_is_not_in_iram' into 'master'
...
components/bt: Put function in isr into iram
See merge request idf/esp-idf!3619
2018-11-06 17:13:34 +08:00
zhiweijian
77668b3912
Component/bt: add scan window and interval check when set scan params
2018-11-06 08:45:25 +00:00
zhiweijian
2e139c7885
Component/bt: fix memory leak in service change char
2018-11-06 08:43:59 +00:00
Jiang Jiang Jian
ded53bd0ff
Merge branch 'bugfix/btdm_allow_a2dp_codec_dynamic_alloc' into 'master'
...
bugfix/btdm_allow_a2dp_codec_dynamic_allocated
See merge request idf/esp-idf!3598
2018-11-06 11:56:30 +08:00
baohongde
b33cdfc1f5
components/bt: Put function in isr into iram
2018-11-02 16:37:52 +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
wangmengyang
7bb83b0056
component/bt: allow dynamic allocation of SBC encoder/decoder buffer used in A2DP to save internal DRAM
2018-10-31 16:11:49 +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
4e81705ca2
Component/bt: support OOB in SMP
2018-10-25 07:09:59 +00: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
zhiweijian
44827bb681
Component/bt: add attr_handle for ESP_GATTS_CONF_EVT
2018-10-19 08:19:36 +00:00
Tian Hao
6934a739d7
coexist : fix coexist bugs related to coex hw blocking
...
1. fix some bugs by previous coex hw blocking bugfix,
such like, rwble.c (64, 0) line 222
2. fix bug that ble scan performance is very low when software coexist
is working.
3. update libcoexist version to v1.1.0
2018-10-18 11:49:10 +08:00
zhiweijian
30ea8c7048
Component/bt: read multiple return callback status: ESP_GATT_STACK_RSP
2018-10-17 12:34:34 +00:00
island
024f27f3d5
component/bt: modify the BLE example to make it run with "numeric comparison" mode
2018-10-17 16:55:11 +08:00
baohongde
a6d054b079
components/bt: Add sniff mode to SPP
...
In idle state for a while, SPP will enter sniff mode.
2018-10-12 11:22:28 +08:00
zhiweijian
fe7fd3bf4d
Component/bt: fix connection interval error in slave adv params
2018-09-30 11:14:27 +00:00
Jiang Jiang Jian
fda865b002
Merge branch 'bugfix/btdm_watchdog_timeout_after_pair_with_iphone' into 'master'
...
component/bt: Fix BTU task watchdog timeout after pair with iphone
See merge request idf/esp-idf!3366
2018-09-30 14:39:00 +08:00
Jiang Jiang Jian
42a9f99bc8
Merge branch 'bugfix/btdm_controller_stuck_on_waking_up' into 'master'
...
bugfix/btdm_controller_stuck_on_waking_up
See merge request idf/esp-idf!3395
2018-09-30 14:25:58 +08:00
Zhi Wei Jian
5d71940178
component/bt: add sequential check when add include service
2018-09-30 14:19:54 +08:00
Jiang Jiang Jian
d6bc6fad8b
Merge branch 'bugfix/btdm_add_ESP_BLE_SM_ONLY_ACCEPT_SPECIFIED_SEC_AUTH_in_set_security_param_API' into 'master'
...
Component/bt: add only accept sepecified authentication function for SMP
See merge request idf/esp-idf!3385
2018-09-30 14:18:23 +08:00
zhiweijian
3050e55801
Component/bt: add only accept sepecified Authentication
2018-09-29 21:23:55 +08:00
Jiang Jiang Jian
7014c14537
Merge branch 'bugfix/btdm_add_service_source_param_for_ESP_GATTC_SEARCH_CMPL_EVT' into 'master'
...
Component/bt: add “service from” param for ESP_GATTC_SEARCH_CMPL_EVT
See merge request idf/esp-idf!3399
2018-09-29 20:18:26 +08:00
zhiweijian
e6d737780a
Component/bt: add “service from” param for ESP_GATTC_SEARCH_CMPL_EVT
2018-09-28 12:59:01 +00:00
zhiweijian
54b841dc30
Component/bt: fix service change char can’t read and write and no descr
2018-09-28 19:57:25 +08:00
wangmengyang
334cb88256
component/bt: bugfix that hci down stream datapath is unblocked too early on waking up from sleep
...
This issue can cause the controller to stuck after sleep interrupt happens and clock interrupt enabled
2018-09-28 03:45:52 +00:00
Tian Hao
337960338d
component/bt : fix coexist hardware blocking bug
...
fix the bug following:
1. after disable bluetooth controller, wifi cannot TX/RX any packets.
2. when software coexist working, there's a little ratio cause wifi task watchdog timeout
3. when software coexist working, there's a little ratio cause bluetooth cannot receive anything.
feature:
1. add libbtdm_app.a git commit local and remote checking
Known issues:
1. there's still a bug occurs with a very very low ratio cause bluetooth
cannot receive anything. The reproduce interval may great than 3days ~ 1week via
7x24 hours heavy testing.
2018-09-26 21:24:46 +08:00
Jiang Jiang Jian
fa784476ba
Merge branch 'bugfix/btdm_fix_get_bond_list_error_sometimes' into 'master'
...
Component/bt: fix get bond list error sometimes
See merge request idf/esp-idf!3288
2018-09-26 18:06:23 +08:00
baohongde
15fae990c1
component/bt: Fix BTU task watchdog timeout after pair with iphone
...
Create a new pending queue, then re-submit pending requests in old pending queue,preventing new events being inserted into it.
Closes https://github.com/espressif/esp-idf/issues/2191
2018-09-26 11:59:54 +08:00
zhiweijian
9fb188a1d9
Component/bt: add gatts send service change indication API
2018-09-25 08:26:55 +00:00
zhiweijian
81e7689bf3
Component/bt: fix get bond list error sometimes
2018-09-21 02:44:16 +00:00
Anton Maklakov
0d1285ebcf
bluetooth: fix indentation warning
2018-09-20 18:53:15 +08:00
Anton Maklakov
d4cbfd34cc
cmake: silence some warnings in coap, bt, expat, libsodium, lwip and examples/bluetooth
2018-09-20 18:53:15 +08:00
Anton Maklakov
9a55557ad8
build system: Add a compatible old GCC flag
2018-09-20 18:53:14 +08:00
Ivan Grokhotkov
51c9b6b82d
bt: disable implicit fall through warnings
2018-09-20 18:53:14 +08:00
Ivan Grokhotkov
dd5d01a83e
bt: silence unused const variables warning
2018-09-20 18:53:14 +08:00
Jiang Jiang Jian
7657c1c7d4
Merge branch 'bugfix/btdm_fix_crash_when_test_multi_connect' into 'master'
...
Component/bt: fix crash when test multi_connect
See merge request idf/esp-idf!3274
2018-09-20 12:04:18 +08:00
Jiang Jiang Jian
ffbe5b7ae5
Merge branch 'bugfix/btdm_fix_iphoneX_error_when_get_wifi_list' into 'master'
...
Component/bt: fix iPhoneX error when getting wifi list
See merge request idf/esp-idf!3303
2018-09-20 10:54:43 +08:00
Jiang Jiang Jian
57573d0ed7
Merge branch 'feature/btdm_add_clear_rand_addr_API' into 'master'
...
component/bt: add clear rand address API
See merge request idf/esp-idf!3137
2018-09-20 10:47:37 +08:00
zhiweijian
fdc352d090
Component/bt: fix iPhoneX error when getting wifi list
2018-09-19 15:17:57 +08:00
Jiang Jiang Jian
72aaeb26ac
Merge branch 'bugfix/btdm_fix_save_error_key_in_smp_when_reconnect' into 'master'
...
Component/bt: fix save error key in smp when reconnect
See merge request idf/esp-idf!3251
2018-09-18 20:06:38 +08:00
zwj
fa00e6d4f7
component/bt: add clear rand address API
2018-09-17 20:09:03 +08:00
Jiang Jiang Jian
d41ee5c628
Merge branch 'bugfix/btdm_enable_modem_sleep_by_default' into 'master'
...
bugfix/btdm_enable_modem_sleep_by_default
See merge request idf/esp-idf!3284
2018-09-17 16:17:34 +08:00
wangmengyang
bca2e110fc
component/bt: enable bluetooth modem sleep as default setting
2018-09-17 10:38:13 +08:00
Jiang Jiang Jian
18a893bd35
Merge branch 'bugfix/btdm_unreserve_scn1_for_hfp' into 'master'
...
component/bt: Unlock reserve of SCN 1 for HFP
See merge request idf/esp-idf!3269
2018-09-14 19:49:47 +08:00
Jiang Jiang Jian
8001737d3e
Merge branch 'bugfix/ble_adv_data_tx_power' into 'master'
...
fix TX power value in ble adv data is incorrect
See merge request idf/esp-idf!3185
2018-09-14 19:46:16 +08:00
baohongde
738522f1a3
component/bt: Unlock reserve of SCN 1 for HFP
2018-09-14 06:22:58 +00:00
zhiweijian
d0721e8f6d
Component/bt: fix crash when test multi_connect
2018-09-14 11:18:44 +08:00
Renz Bagaporo
454d65bbab
bt: remove non-existing source file from cmakelists
2018-09-14 08:47:22 +08:00
Jiang Jiang Jian
e6e2d7ebee
Merge branch 'feature/btdm_add_adv_packet_duplicate_in_scan_duplicate' into 'master'
...
component/bt: add adv packet duplicate in scan duplicate
See merge request idf/esp-idf!2939
2018-09-13 18:16:22 +08:00
Jiang Jiang Jian
60a9462f6e
Merge branch 'bugfix/optimize_BLE_memory_debug' into 'master'
...
component/bt: optimize bluetooth memory debug
See merge request idf/esp-idf!3047
2018-09-13 10:49:26 +08:00
Tian Hao
b9382b29fa
fix TX power value in ble adv data is incorrect
...
refence to https://github.com/espressif/esp-idf/issues/2284
Before fixing, the tx power in adv data is always 0xeb(-21dbm).
restriction:
If change BLE advertising TX power, please call esp_ble_gap_config_adv_data()
after BLE adv TX power changed.
Later, will implement set BLE advertising TX power via HCI, then the
TX power value in adv data can be update automatically after BLE adv
TX power changed.
2018-09-12 20:23:45 +08:00
zhiweijian
c462a66726
Component/bt: fix save error key in smp when reconnect
2018-09-12 19:51:59 +08:00
Jiang Jiang Jian
36337da8b2
Merge branch 'bugfix/btdm_a2dp_role_mixed_up' into 'master'
...
component/bt: bugfix that A2DP sink device can be connected by another A2DP sink device
See merge request idf/esp-idf!3191
2018-09-12 16:44:53 +08:00
zhiweijian
9103a04793
component/bt: add adv packet duplicate in scan duplicate
2018-09-11 02:31:11 +00:00
Renz Christian Bagaporo
d9939cedd9
cmake: make main a component again
2018-09-11 09:44:12 +08:00
zhiweijian
469b8c7e8e
component/bt: optimize bluetooth memory debug
2018-09-10 09:19:19 +00:00
Jiang Jiang Jian
892fc4ac3f
Merge branch 'feature/btdm_add_set_default_passkey_function' into 'master'
...
Component/bt: add set/clear static passkey function
See merge request idf/esp-idf!3128
2018-09-10 16:08:05 +08:00
wangmengyang
36a8cd1bf5
component/bt: stop to inititate AVRC connection when A2DP connection fails to set up
...
AVRCP connection binds to A2DP in current implementation, despite the two profiles are\
independent according to specification. AVRCP connection is not necessary to set-up \
if A2DP connection fails to establish
2018-09-10 03:35:58 +00:00
wangmengyang
9621904cdc
component/bt: stop to initiate AVDTP connection on failure of A2DP service discovery
...
In opening state of AVDTP connection, if SDP client fails to get valid A2DP service record\
from peer SDP server, then do not initiate AVDTP connection request
2018-09-10 03:35:58 +00:00
wangmengyang
e9e3bc492b
component/bt: bugfix that A2DP sink device can be connected by another A2DP sink device
...
In pevious implementation, A2DP sink will register an A2DP source Stream End Point(SEP) although the SEP is not\
supposed to be used. Now remove the unused SEP for source so that only one role of A2DP can be supported at one
time. Service record in local SDP server only includes at most one service for A2DP sink role or source
2018-09-10 03:35:58 +00:00
Angus Gratton
4eeed31a04
Merge branch 'feature/cmake' into 'master'
...
Merge experimental CMake support to master
See merge request idf/esp-idf!3024
2018-09-07 13:44:17 +08:00
zhiweijian
d12982dc6e
Component/bt: add set default passkey function
2018-09-07 10:55:44 +08:00
Jiang Jiang Jian
8484b9cfd3
Merge branch 'feature/btdm_legacy_paring' into 'master'
...
component/bt: Add Legacy Pairing
See merge request idf/esp-idf!3057
2018-09-07 10:15:52 +08:00
Angus Gratton
cff2ef695a
Merge branch 'master' into feature/cmake
2018-09-06 20:23:04 +08:00
Jiang Jiang Jian
affe75a102
Merge branch 'bugfix/btdm_hfp_invalid_hci_sync_pkt_len' into 'master'
...
bugfix/btdm_hfp_invalid_hci_sync_pkt_len
See merge request idf/esp-idf!3186
2018-09-06 19:51:42 +08:00
Angus Gratton
b355854d4d
Merge branch 'master' into feature/cmake
2018-09-05 10:35:04 +08:00
baohongde
bd8b9960d5
component/bt: Add Legacy Pairing
2018-09-04 21:11:03 +08:00
wangmengyang
4e6b3936c0
component/bt: bugfix for incorrect length of HCI SCO packet size in HFP resulted from uninitialized data buffer length
2018-09-04 20:09:07 +08:00
Tian Hao
069f495006
component/bt : fix bug that set discovery mode will stop ble adv
...
As the bluedroid original implmentation of BR/EDR and BLE dual mode about discovery mode,
when set discovery mode for BR/EDR, it will stop ble advertising.
Reference to https://github.com/espressif/esp-idf/issues/2306
2018-09-04 17:07:10 +08:00
Hrishikesh Dhayagude
4abe47437f
components/bt: Fix broken API esp_bt_mem_release() for parameter ESP_BT_MODE_BTDM
...
Problem:
The new API esp_bt_mem_release() that was added freed BTDM data to heap from esp_bt_controller_mem_release().
Now with the BT memory optimization commit ee787085f9
,
the BTDM data is optimized and reduced to only 32 bytes which is not sufficient amount to be added to heap.
So, using the API leads to assert saying that the region is too small.
Solution:
Modify heap_caps_add_region_with_caps to return ESP_ERR_INVALID_SIZE in case the range is too small to create a new heap.
Do not assert if return value is ESP_ERR_INVALID_SIZE
This also fixes using API esp_bt_controller_mem_release() with ESP_BT_MODE_BTDM
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-08-31 14:28:23 +00:00
Jiang Jiang Jian
a557e8cc14
Merge branch 'bugfix/fix_bt_hdr_files' into 'master'
...
components/bt: Make a pass through Bluetooth header files
See merge request idf/esp-idf!3093
2018-08-31 22:04:39 +08:00
Jiang Jiang Jian
2d0124698e
Merge branch 'bugfix/btdm_update_private_address' into 'master'
...
component/bt: Update BLE private address after it's private address interval
See merge request idf/esp-idf!2987
2018-08-31 21:33:54 +08:00
Jiang Jiang Jian
4542bf19f7
Merge branch 'bugfix/btdm_rfcomm_test_command_cause_crash' into 'master'
...
component/bt: Fix bug rfcomm test command cause crash
See merge request idf/esp-idf!3080
2018-08-31 21:33:39 +08:00
Jiang Jiang Jian
e3778d7bd9
Merge branch 'bugfix/btdm_find_remote_service_by_uuid_always_return_success' into 'master'
...
component/bt: Fix bug of SDP find services by uuid always return success
See merge request idf/esp-idf!3036
2018-08-31 21:27:21 +08:00
Angus Gratton
a9c4ed7139
Merge branch 'master' into feature/cmake
2018-08-30 18:51:01 +08:00
Tian Hao
5a8917c337
fix bluetooth security vulnerability of ECDH publick key checking
2018-08-30 11:39:19 +08:00
Jiang Jiang Jian
9be09692b1
Merge branch 'bugfix/btdm_get_acl_num' into 'master'
...
component/bt : fix get acl number incorrect due to memory release
See merge request idf/esp-idf!3090
2018-08-30 11:12:46 +08:00
Angus Gratton
393c29b656
cmake: Fix bt component dependencies
2018-08-29 19:37:25 +08:00
Anton Maklakov
8c040e749f
bluetooth: fix format overflow warnings
2018-08-29 14:40:28 +08:00
Anton Maklakov
779bce7681
bluetooth: fix incorrect memset size
2018-08-29 14:40:28 +08:00
Anton Maklakov
e8eb8cb2a4
bluetooth: fix missing braces and indentation
2018-08-29 14:40:28 +08:00
Ivan Grokhotkov
033b694128
bt/a2dp: fix incorrect return type
...
res was declared as “bool” so expression
((count == 0) ? A2D_SET_ONE_BIT : A2D_SET_MULTL_BIT)
always evaluated to “true”, and was implicitly converted to
A2D_SET_ONE_BIT.
2018-08-29 14:40:28 +08:00
Ivan Grokhotkov
9fbe42c0f1
bt/bta: fix returning value from function returning void
2018-08-29 14:40:28 +08:00
Ivan Grokhotkov
536df958ad
bt/btm: fix misplaced debug statement
2018-08-29 14:40:28 +08:00
Tian Hao
eb3f280cd3
component/bt : fix get acl number incorrect due to memory release
...
1. after memory release MR merged, due to the get acl number condition is not completed, it will cause get acl number value incorrect
2. It may cause set Security Mode (BR/EDR) enable failed
2018-08-28 15:35:40 +08:00
Jiang Jiang Jian
26850880b2
Merge branch 'bugfix/btdm_fix_crash_when_BLE_do_SMP_con_discon_stress_test' into 'master'
...
component/bt: fix crash when BLE do SMP connect and disconnect stress test
See merge request idf/esp-idf!3077
2018-08-28 13:40:20 +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
Jiang Jiang Jian
6519f1833a
Merge branch 'bugfix/fix_probable_mem_leak' into 'master'
...
components/bt: Fix a probable memory leak for BTA_GATTS_CONF_EVT event
See merge request idf/esp-idf!2962
2018-08-27 14:10:22 +08:00
Jiang Jiang Jian
1c676300f0
Merge branch 'bugfix/btdm_fix_get_error_adv_sometimes' into 'master'
...
Component/bt: fix get error adv packet sometimes
See merge request idf/esp-idf!3035
2018-08-27 12:17:23 +08:00
zwj
430d3da089
component/bt: fix crash when BLE do SMP connect and disconnect stress test
2018-08-27 11:09:29 +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
Jiang Jiang Jian
df78612896
Merge branch 'bugfix/btdm_fix_memory_leak_in_security_server' into 'master'
...
component/bt: fix memory leak in security server
See merge request idf/esp-idf!3014
2018-08-27 10:19:27 +08:00
baohongde
588e006256
component/bt: Fix bug of SDP find services by uuid always return success
2018-08-27 02:14:45 +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
Hrishikesh Dhayagude
739b4aadf7
components/bt: Make a pass through Bluetooth header files
...
This is just a quick glance at all the header files exposed to the
users from cleanup point of view.
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-08-25 21:21:42 +05:30
zhiweijian
f74b041288
Component/bt: fix memory leak in security server
2018-08-25 15:47:47 +00:00
wangmengyang
6b0a1bd700
component/bt: check support of AFH in remote slave device's LM feature then determine whether to send LMP_set_AFH
2018-08-24 11:48:12 +00:00
zhiweijian
1ca5b70803
Component/bt: fix get error adv packet sometimes
2018-08-24 09:24:49 +00:00
baohongde
9eefd8c1aa
component/bt: Fix bug rfcomm test command cause crash
...
find when BQB
2018-08-24 14:49:33 +08:00
Jiang Jiang Jian
eb18122038
Merge branch 'bugfix/esp_bt_controller_mem_release' into 'master'
...
BT/BTDM memory release might fail if any of the memory regions is empty
See merge request idf/esp-idf!3031
2018-08-23 11:02:17 +08:00
Jiang Jiang Jian
33f0eadac9
Merge branch 'bugfix/timer_oneshot_timeout_twice' into 'master'
...
component/bt: Some timer oneshot will timeout twice
See merge request idf/esp-idf!2979
2018-08-23 10:41:53 +08:00
baohongde
4fe04ae14d
component/bt: Update BLE private address after it's private address interval
2018-08-21 11:01:44 +08:00
me-no-dev
afa091fe79
prevent heap_caps_add_region exception if region is empty
...
Calling `esp_bt_controller_mem_release` or `esp_bt_mem_release` might result in exception if any of the regions returned to heap are empty. This happens usually if BT/BLE is enabled, but not used/linked in the final firmware.
2018-08-17 08:49:48 +02:00
Jiang Jiang Jian
5ba0d6bde6
Merge branch 'bugfix/ut_bt_build_fix' into 'master'
...
bt: build unit tests only when CONFIG_BT_ENABLED=1
See merge request idf/esp-idf!3000
2018-08-16 19:49:14 +08:00
Angus Gratton
ff2404a272
Merge branch 'master' into feature/cmake
2018-08-16 17:14:17 +10:00
Tian Hao
ab73e0ff13
tools: fix ci example build report reassign warnning
2018-08-16 11:12:22 +08:00
Tian Hao
ee787085f9
component/bt : decrease memory consumption by conn number
...
1. BLE only with 9(max) connection will decrease 3K DRAM
2. BR/EDR only with 7(max) connection will decrease 16K DRAM
3. Any of BLE or BR/EDR connection number decrease will also decrease DRAM consumption
4. Decrease one BLE connection will save about 1KB DRAM
5. Decrease one BR/EDR ACL connection will save about 1.2KB DRAM
6. Decrease one BR/EDR SCO/eSCO will save 2KB DRAM.
7. fix some definition and kconfig
8. remove 1.2k of vhci tx cache and make .bss & .data to heap about 1.4K
9. modify BT Reserved Memory size and modify example to support new bt kconfig
2018-08-14 02:29:17 +00:00
Ivan Grokhotkov
7fca027355
bt: build unit tests only when CONFIG_BT_ENABLED=1
2018-08-13 17:38:37 +03:00
Jiang Jiang Jian
886bf4b88e
Merge branch 'bugfix/btdm_ecdh_public_key_not_check' into 'master'
...
component/bt: Fixed the vulnerability released by Bluetooth org when using…
See merge request idf/esp-idf!2933
2018-08-13 15:44:13 +08:00
yulong
72eaaff9fe
component/bt: Fixed the vulnerability released by Bluetooth org when using public key not check in the process of ECDH encryption.
...
1. Add the 100 times test when the private key is generated by the random number;
2. Add the bt components to the unit-test-app/config directory.
3. Added the bt unit test case to CI.
2018-08-13 14:08:11 +08:00
baohongde
31c66af560
component/bt: Some timer oneshot will timeout twice
...
Find when BQB
2018-08-13 06:00:11 +00:00
zhiweijian
57355d7154
Component/bt: fix get bond list error when connection with no bond
2018-08-08 14:44:22 +08:00
Jiang Jiang Jian
212e25760b
Merge branch 'bugfix/btdm_spp_crash_on_reset' into 'master'
...
component/bt: Fix bug of SPP crash on reset
See merge request idf/esp-idf!2801
2018-08-06 18:39:21 +08:00
Jiang Jiang Jian
744d703dba
Merge branch 'bugfix/btdm_hfp_invalid_sco_param' into 'master'
...
bugfix/btdm_hfp_invalid_sco_param
See merge request idf/esp-idf!2915
2018-08-06 15:35:27 +08:00
wangmengyang
d4cecc5a04
component/bt: modify the invalid retransmission setting for SCO link in HFP
2018-08-06 06:20:51 +00:00
Angus Gratton
a5ae5ac4b3
soc: Allow components to reserve fixed memory ranges that they need
...
No longer necessary to keep all reserved addresses in 'soc'.
Means 'soc' does not need to know about 'bt', for example.
Also means that Bluetooth can be enabled in config without any memory being reserved for BT
controller. Only if code calling the BT controller is linked in, will this memory be reserved...
2018-08-06 01:37:55 +00:00
baohongde
2cd9eaccc7
component/bt: Fix bug of SPP crash on reset
...
In response to: https://github.com/espressif/esp-idf/issues/1998
2018-08-05 00:36:51 +00:00
zhiweijian
163dbc3200
Component/bt: fix SC_MITM_BOND failed in smp for iphones
2018-08-04 16:52:53 +00:00
Jiang Jiang Jian
4f1e8df367
Merge branch 'bugfix/btdm_a2dp_disconnect_reason' into 'master'
...
bugfix/btdm_a2dp_disconnect_reason
See merge request idf/esp-idf!2914
2018-08-03 15:30:30 +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
wangmengyang
7f7f8a02d0
component/bt: retrieve disconnection reason in AVDT when ACL-U link is disconnected
2018-08-01 17:16:52 +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
Jiang Jiang Jian
fe09c1cb59
Merge branch 'bugfix/btdm_oob_included' into 'master'
...
Fix undefined reference error by changing BTM_OOB_INCLUDED
See merge request idf/esp-idf!2878
2018-08-01 14:53:37 +08:00
Jiang Jiang Jian
29d7382c2b
Merge branch 'bugfix/btdm_lmp_trans_coll_state_uncleared' into 'master'
...
component/bt: btdm_lmp_transcation_collision_state_uncleared
See merge request idf/esp-idf!2731
2018-08-01 14:47:29 +08:00
Angus Gratton
6851af3c4b
Merge branch 'bugfix/btdm_fix_gattc_count_invalid' into 'master'
...
Component/bt: fix gattc get count invalid and discover included service error
See merge request idf/esp-idf!2770
2018-08-01 14:06:38 +08:00
Angus Gratton
e6dc0c7bde
Merge branch 'bugfix/remove_bt_dependency_on_lwip_header' into 'master'
...
Bugfix/remove bt dependency on lwip header
See merge request idf/esp-idf!2882
2018-08-01 13:57:35 +08:00
wangmengyang
ae7bf1990e
component/bt: bugfix for uncleared LMP transaction collision state after rejecting sniff request from slave
2018-07-31 17:10:32 +08:00
zhiweijian
feef9b9387
Component/bt: fix gattc get count invalid
2018-07-31 02:36:46 +00:00
Noble-Mushtak
dbd429af1b
Changed value of BTM_OOB_INCLUDED to TRUE
...
Merges https://github.com/espressif/esp-idf/pull/2206
2018-07-30 08:53:01 +03:00
Mahavir Jain
b79fefa011
bluedroid: remove dependency on arpa/inet.h
include
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-07-30 11:16:38 +05:30
wangmengyang
a23f857452
component/bt: bugfix on the crash during end of sco link resulted from link supervision timeout
2018-07-26 14:41:25 +08:00
Jiang Jiang Jian
b3dd6ff9fc
Merge branch 'bugfix/btdm_controller_deinit' into 'master'
...
bt : fix bug that bluetooth controller init/disable/enable/disable may cause exception
See merge request idf/esp-idf!2800
2018-07-25 21:00:35 +08:00
Ivan Grokhotkov
caeab09f65
Merge branch 'bugfix/src_encoding' into 'master'
...
Correct source code encoding
See merge request idf/esp-idf!2820
2018-07-24 22:03:46 +08:00
Angus Gratton
cf614120a5
Merge branch 'bugfix/reclaim_bt_ble_bss' into 'master'
...
components/bt: Reclaim BT/BTDM BSS in bluetooth memory release function
See merge request idf/esp-idf!2750
2018-07-23 12:48:13 +08:00
Tian Hao
6e4342a877
bt : fix bug that bluetooth controller init/disable/enable/disable may cause exception
...
1. when one task do deinit/init/disable/enable, especially different cpu
core, it may cause controller crash in ISR handler
2. fix while BLE is scanning, bluetooth controller is disabled cause BLE
scan is not abort.
2018-07-20 14:10:55 +08:00
Hrishikesh Dhayagude
f610249bdd
Reclaim BT/BTDM BSS and Data in bluetooth memory release function
...
1. Modify esp_bt_controller_mem_release() to release BTDM BSS and Data to heap if
ESP_BT_MODE_BTDM mode is passed to it
2. Add a new API esp_bt_mem_release() which internally calls
esp_bt_controller_mem_release() with the provided mode and then if mode
is ESP_BT_MODE_BTDM, releases BT BSS and Data to heap.
Background:
For Wi-Fi and BT/BLE applications, for e.g. the usecase is like when
Bluetooth is used for provisioning and once the device is connected to the Wi-Fi
AP, we can turn off Bluetooth completely. In such scenarios, it should be possible to
reclaim all the memory of Bluetooth. Although, currently this does not
happen.
Experiment:
Made the following modifications to examples/bluetooth/gatt_server :
1. Added support of simple_wifi to it
2. Moved all the bluetooth related code under CONFIG_BT_ENABLED config
option
3. Calculated the free heap in 2 similar scenarios:
i. Disabled BT (CONFIG_BT_ENABLED undefined) and checked the free
heap after STA connected
ii. Kept BT enabled and disabled it after STA connected and checked
the free heap
Ideally, the numbers for i., ii. above should have been similar. But
there was a delta of almost 30-31K. (i. > ii.)
4. Through make size-components checked the common BSS for libbta.a and libbtdm_app.a
and found it to be almost 30K. Data is around 1K
Solution:
1. Modified the linker script to mark the BSS and Data for these libraries and
free it when ESP_BT_MODE_BTDM mode is passed to mem release APIs.
2. Verified that the free heap is comparable for i. and ii. above.
Note: It is known that once this is done, Bluetooth can only be used
again post reboot.
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-07-20 11:33:26 +05:30
Jiang Jiang Jian
e4fb359c34
Merge branch 'bugfix/btdm_bt_remove_device_fail_when_ble_connected' into 'master'
...
component/bt: Fix bug of remove bond device fail when BLE and BT are connectd at the same time
See merge request idf/esp-idf!2767
2018-07-20 10:46:31 +08:00
Roland Dobai
0efb4a11ec
Correct source code encoding
2018-07-19 14:00:44 +02: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
11ca056320
component/bt: Fix bug of remove bond device fail when BLE and BT are connectd at the same time
2018-07-16 15:46:27 +08:00
Jiang Jiang Jian
6554bdcbb6
Merge branch 'bugfix/btdm_add_profile_descriptor_list_for_spp' into 'master'
...
component/bt: Add profile descriptor list for SPP
See merge request idf/esp-idf!2691
2018-07-13 19:20:03 +08:00
Jiang Jiang Jian
8571170abe
Merge branch 'feature/btdm_bt_ssp' into 'master'
...
component/bt: Add Secure Simple Pairing
See merge request idf/esp-idf!2453
2018-07-13 19:19:53 +08:00
Ivan Grokhotkov
b354770f42
Merge branch 'bugfix/fixes_from_github' into 'master'
...
Fixes from Github
See merge request idf/esp-idf!2730
2018-07-13 15:03:50 +08:00
baohongde
47a164b3ac
component/bt: Using osi_malloc instead of malloc
2018-07-11 11:15:41 +00:00
baohongde
d7c4ec5235
component/bt: Add profile descriptor list for SPP
2018-07-11 11:14:41 +00:00
baohongde
21af1d7339
component/bt: Add Secure Simple Pairing
2018-07-10 11:18:52 +08:00
Le-Andrew
a8da9c1b96
Fixed typos on booleans.
...
Merges https://github.com/espressif/esp-idf/pull/2067
2018-07-09 14:36:06 +08:00
wangmengyang
1ade9a34d2
component/bt: bugfix for erroneous data reporting always enabled
2018-07-09 13:45:55 +08:00
wangmengyang
0ede362f84
component/bt: bugfix of invalid SCO handle in HCI number_of_completed_packets event
2018-07-05 12:00:41 +08:00
Mahavir Jain
bd177a34c6
bt: fix OS abstraction layer for correct critical section API usage
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-07-01 19:07:51 +05:30
Jiang Jiang Jian
abbccb7acd
Merge branch 'bugfix/coex_bug' into 'master'
...
esp32: fix coex bug
See merge request idf/esp-idf!2603
2018-06-30 22:29:18 +08:00
Jiang Jiang Jian
b1fa1ba617
Merge branch 'bugfix/btdm_fix_gattc_register_multi_srvc_chg' into 'master'
...
Component/bt: fix register multi service change when register multi gattc
See merge request idf/esp-idf!2625
2018-06-30 11:30:41 +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
Jiang Jiang Jian
fe0dc407da
Merge branch 'bugfix/btdm_bad_pointer_of_bt_gap' into 'master'
...
component/bt: Fix some bad point calculations of BT GAP
See merge request idf/esp-idf!2655
2018-06-29 19:25:13 +08:00
Tian Hao
e3df7d97a7
esp32: fix coex bug
...
1. fix BLE connection missing in coex mode
2. modify other parameters to make coex priority more reasonable
3. fix modem sleep procedure trap cause Wifi disable RF when BT is
working. Such cause that BR/EDR is difficult to be connected, BLE
connection stability decrease and so on.
4. modify BR/EDR coexist duration to imrove BR/EDR connect success
ratio.
5. Due to the hardware coexist bug, BLE scan interval/window should
be less than 0x100(about 160ms). Therefore, it will cause BLE cannot
scan any advertising packet while WiFi have higher priority
behaviour(such like RX beacon, scan, TX/RX VO packets and etc.).
2018-06-29 16:28:11 +08:00
Jiang Jiang Jian
0e4b28e893
Merge branch 'bugfix/btdm_fix_stop_adv_error_in_dual_core' into 'master'
...
component/bt: fix stop adv error in dual core
See merge request idf/esp-idf!2561
2018-06-29 15:06:49 +08:00
Jiang Jiang Jian
1124e073d7
Merge branch 'bugfix/btdm_fix_no_adv_packet' into 'master'
...
component/bt: fix no adv packets
See merge request idf/esp-idf!2647
2018-06-29 14:59:01 +08:00
zhiweijian
d1c3c8494b
Component/bt: fix register multi service change when register multi gattc
2018-06-29 06:54:16 +00:00
Jiang Jiang Jian
34797d8d52
Merge branch 'bugfix/btdm_respond_error_when_receives_unsupported_request' into 'master'
...
component/bt: Fix bug: Respond with the Error Response when receiving a request…
See merge request idf/esp-idf!2591
2018-06-29 14:47:12 +08:00
Jiang Jiang Jian
9510f77f7a
Merge branch 'bugfix/btdm_rm_assert_in_isr' into 'master'
...
bugfix/btdm_rm_assert_in_isr
See merge request idf/esp-idf!2633
2018-06-29 14:24:28 +08:00
Jiang Jiang Jian
a1a2a2009d
Merge branch 'bugfix/prevent_btsleep_dfs_coex' into 'master'
...
prevent Dynamic Frequency Scaling to be used together with bluetooth modem sleep
See merge request idf/esp-idf!2645
2018-06-29 14:23:40 +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
wangmengyang
04ea784011
prevent Dynamic Frequency Scaling when using bluetooth modem sleep
...
This constraint will be elimiated after the issue is fixed
2018-06-28 18:08:18 +08:00
zwj
077380a352
component/bt: fix no adv packets
2018-06-28 17:49:41 +08:00
wangmengyang
cfea04b6b3
component/bt: fix the cornered case caused by singular finetime correction value upon waking up from sleep
...
1. revert previous changes that adds 1-slot margin for first master Tx event, since this bugfix can handle that case
2018-06-27 20:21:39 +08:00
wangmengyang
02a620811d
component/bt: remove the call of assert in time conversion functions which can be caused in ISR
2018-06-27 17:23:23 +08:00
wangmengyang
e1bcd6ba0f
component/bt: add 1 slot margin to program the 1st master Tx event during BLE connection
...
this will resolve the issue of failure of BLE connection stress test with sleep enabled
2018-06-26 11:10:47 +08:00
Jiang Jiang Jian
aaf12390eb
Merge branch 'feature/btdm_controller_to_host_flow_control' into 'master'
...
component/bt: Add Controller to Host Flow Control
See merge request idf/esp-idf!2493
2018-06-25 20:33:21 +08:00
Jiang Jiang Jian
6dd786c74d
Merge branch 'bugfix/btdm_slave_can_not_receive_long_packets_in_smp' into 'master'
...
Component/bt: fix slave can not receive long packets in smp
See merge request idf/esp-idf!2586
2018-06-25 20:28:27 +08:00
zhiweijian
2469e90953
Component/bt: fix slave can not receive long packets in smp
2018-06-22 18:10:58 +08:00
Jiang Jiang Jian
8a7e112a72
Merge branch 'bugfix/read_rssi' into 'master'
...
bt : fix read rssi conflict when in dual mode
See merge request idf/esp-idf!2592
2018-06-22 17:19:23 +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
4aae691519
Component/bt: modify throughput demo default config
2018-06-21 20:48:20 +08:00
baohongde
012415c9f8
component/bt: Fix bug: Respond with the Error Response when receiving a request that it does not support
2018-06-21 20:20:21 +08:00
zhiweijian
41b57d35c8
Component/bt: delete deprecated files
2018-06-21 06:07:21 +00:00
baohongde
de8a735a7a
component/bt: Add Controller to Host Flow Control
2018-06-21 11:44:40 +08:00
yulong
225c4371c1
component/bt: Fix the bug of when operating the list on interrupt function, there is no lock protection.
2018-06-19 21:01:50 +08:00
zwj
c9aac643e3
component/bt: fix stop adv error in dual core
2018-06-15 20:43:10 +08:00
Angus Gratton
0e501e5edd
Merge branch 'bugfix/bt_rfcomm_pr1923' into 'master'
...
bt: PORT_WriteDataCO: fixed a bug, reduced heap memory allocation
See merge request idf/esp-idf!2511
2018-06-13 08:41:16 +08:00
Markus Becker
3a71ae8595
bt: PORT_WriteDataCO: fixed a bug, reduced heap memory allocation
...
* a missing pointer increment caused error, if available was > 0 after the first iteration of while(available) loop.
* changed memory allocation strategy from large fixed size (RFCOMM_DATA_BUF_SIZE) to just the needed
size, which will be below MTU
Cherry-picked from https://github.com/espressif/esp-idf/pull/1923/
2018-06-13 09:52:02 +10:00
Angus Gratton
e33ec5ccf4
Merge branch 'bugfix/btdm_tx_power_value' into 'master'
...
fix bluetooth(dual-mode) tx power value
See merge request idf/esp-idf!2503
2018-06-13 07:43:13 +08:00
Tian Hao
294a4bd1f4
fix bluetootm(dual-mode) tx power value
2018-06-12 19:18:47 +08:00
zhiweijian
85e88cd0eb
Component/bt: fix include service start handle error
2018-06-08 16:00:34 +08:00
Mahavir Jain
5a9fc19f38
bt: fix typo in documentation
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-06-06 18:22:32 +05:30
Jiang Jiang Jian
8955db6d29
Merge branch 'bugfix/btdm_fix_no_gatt_server_req_callback_warning' into 'master'
...
component/bt: fix the issue where no gatt server request callback warning caused…
See merge request idf/esp-idf!2502
2018-06-06 16:29:59 +08:00
zhiweijian
822dac5659
Component/bt: fix memory leak
2018-06-06 02:17:06 +00:00
island
f30410113b
component/bt: fix the issue where no gatt server request callback warning caused while acting as a GATTC
2018-06-05 02:41:34 +00:00
zhiweijian
ae6b47a60a
Component/bt: close BT sleep in default config
2018-06-04 11:17:27 +08: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
Jiang Jiang Jian
cb9483e844
Merge branch 'bugfix/btdm_a2dp_assert_warn_after_connected' into 'master'
...
component/bt: Fix bug a2dp assert warn after connected
See merge request idf/esp-idf!2470
2018-06-01 15:54:05 +08:00
baohongde
c04a4a8527
component/bt: Fix bug a2dp assert warn after connected
2018-06-01 10:57:22 +08:00
Jiang Jiang Jian
50252ca794
Merge branch 'bugfix/btdm_malloc_fail_lead_to_exception' into 'master'
...
component/bt: Fix malloc fail lead to crash
See merge request idf/esp-idf!2485
2018-06-01 10:36:36 +08:00
Jiang Jiang Jian
a3a0b01c1b
Merge branch 'bugfix/btdm_fix_ble_throughput_demo_fail' into 'master'
...
Component/bt: fix throughput_demo_fail
See merge request idf/esp-idf!2467
2018-05-31 18:53:01 +08:00
xiewenxiang
4467b34da2
component/bt: Fix malloc fail lead to crash
2018-05-31 13:31:27 +08:00
Angus Gratton
6b9784cc45
Merge branch 'master' into feature/cmake_update
2018-05-31 14:46:23 +10:00
zhiweijian
212b786119
Component/bt: fix throughput_demo_fail
2018-05-30 19:58:31 +08:00
Jiang Jiang Jian
fbbf4b0c03
Merge branch 'bugfix/btdm_fix_start_adv' into 'master'
...
Component/bt: fix start adv complete event state error in dual core
See merge request idf/esp-idf!2432
2018-05-30 19:41:39 +08:00
zhiweijian
c8e848b0ff
Component/bt: fix start adv
2018-05-30 17:10:51 +08:00
baohongde
4c8d9278b5
component/bt: Fix mem leak of esp_ble_gap_set_security_param
2018-05-28 17:43:53 +08:00
Tian Hao
5f39b58b83
component/bt : fix bug that assert rwbt.c 265 8192 error
2018-05-24 15:47:16 +08:00
zhiweijian
2e63a445d9
Component/bt: fix set scan params command completer error
2018-05-23 12:09:39 +00: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
wangmengyang
22e21b38f7
component/bt: implement bluetooth modem sleep mode, one mode for BLE only and another for dual mode bluetooth
...
1. provide options for bluetooth low power mode
2. provide two options for bluetooth low power clock: main XTAL and external 32kHz XTAL
3. provide function and callbacks to control bluetooth low power mode, including enable/disable sleep, software wakeup request, low power clock settings, check power state, etc
4. modify vhci API vhci_host_send_packet to use blocking mode
5. note that DFS and bluetooth modem sleep can not be used together currently.
2018-05-19 15:37:26 +08:00
Roland Dobai
2aa9c15906
VFS: allow to find free file descriptors & register them
2018-05-18 07:57:35 +02:00
Jiang Jiang Jian
993b8b7bf6
Merge branch 'bugfix/o3_fails' into 'master'
...
Fix compilation errors when -O3 is used
See merge request idf/esp-idf!2396
2018-05-17 16:48:13 +08: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
9e5318b584
Merge branch 'bugfix/btdm_reconnect_con_params_update_reject_in_smp' into 'master'
...
Component/bt: update con params is rejected in smp when reconnection
See merge request idf/esp-idf!2318
2018-05-14 20:19:29 +08:00
Roland Dobai
ca08397b6b
Fix compilation errors when -O3 is used
...
Closes https://github.com/espressif/esp-idf/issues/718
2018-05-14 12:29:57 +02: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