Jiang Jiang Jian
7702e0f45b
Merge branch 'bugfix/btdm_con_discon_test_crash_#16055' into 'master'
...
component/bt: Fix the bug when write ccc sometimes will lead to repeatedly release the memory.
See merge request !1599
2017-12-01 19:32:39 +08:00
pufstudio
86fa1820b7
component/bt: Add AVRCP medadata attribute support so A2DP can show track title, album, etc.
...
Merges https://github.com/espressif/esp-idf/pull/1078
2017-12-01 19:28:52 +08:00
Jiang Jiang Jian
015233d2dc
Merge branch 'bugfix/btdm_mem_leak_lead_to_WDT_#16592' into 'master'
...
compoent/bt: Fix the bug when do the BLE pressure test will lead to memory leak will appear WDT.
See merge request !1610
2017-12-01 12:24:04 +08:00
yulong
a0992ad442
component/bt: Remove the p_tle->param reset to 0 when free the p_timer_param pointer.
2017-11-30 16:15:22 +08:00
Yulong
5b243b1d01
component/bt: Added the mutex lock protect the ccc free when disconnect.
2017-11-30 02:45:26 -05:00
yulong
7353307ca5
component/bt: reset the p_cmd_list pointer after release the mem.
2017-11-29 10:50:03 +08:00
yulong
5b9131cc60
compoent/bt: Fix the bug when do the BLE pressure test will lead to memory leak will appear WDT.
2017-11-28 15:43:33 +08:00
Yulong
c71318ce88
component/bt: Fix the bug when write ccc sometimes will lead to repeatedly release the memory.
2017-11-25 05:06:14 -05:00
Yulong
177c92f15e
component/bt: Change the code format.
2017-11-23 06:42:04 -05:00
Yulong
2458d15d2d
component/bt: recovery the scan parameter to the controller before start scan.
2017-11-23 06:36:00 -05:00
Yulong
f14699068d
component/bt: Fixed the bug when stop scan if not set back the scan params will lead to connection request sent the empty packet to the peer device.
2017-11-23 03:54:29 -05:00
island
7bd8133639
component/bt: delete api bta_gattc_cache_write
2017-11-16 16:40:18 +08:00
island
5789a8a6e9
component/bt: delete gattc cache write operation
2017-11-16 11:18:17 +08:00
Jiang Jiang Jian
ec9d93f4fc
Merge branch 'bugfix/btdm_gattc_command_queue_fix' into 'master'
...
Bugfix/btdm gattc command queue fix
See merge request !1317
2017-11-15 10:54:02 +08:00
Jiang Jiang Jian
41272c5b94
Merge branch 'bugfix/btdm_modify_logs' into 'master'
...
component/bt: modify some log
See merge request !1485
2017-11-14 21:13:00 +08:00
Jiang Jiang Jian
a2194ec665
Merge branch 'bugfix/btdm_remove_redundant_open_evt_for_same_app' into 'master'
...
component/bt: remove redundant open evt while calling gattc_open twice in the same app_id
See merge request !1526
2017-11-14 21:12:05 +08:00
Yulong
b07a5f03cf
component/bt: Change the gattc prepare write callback params.
2017-11-14 07:00:45 -05:00
island
2a4af8b83c
component/bt: remove redundant open evt while calling gattc_open twice in the same app_id
2017-11-14 17:11:34 +08:00
Yulong
1d13b58c62
component/bt: Added the queue event when the gattc command is full.
2017-11-13 22:44:27 -05:00
island
38b287593c
component/bt: fix not send indication confirm in case of server only
2017-11-14 11:43:57 +08:00
Yulong
2be5e73090
rebase the origin to the local
2017-11-13 02:20:02 -05:00
Yulong
8352eb6fa2
component/bt: Added the prepare write check.
2017-11-13 02:12:33 -05:00
wangmengyang
53273172fe
component/bt: modify the implementation and interface of osi_alarm module
...
1. use esp_timer instead of FreeRTOS timer to implement osi_alarm in bluedroid
2. Remove two APIs: osi_alarm_now() and osi_alarm_time_diff() and modify the hci layer logic that use them
3. Implement osi_alarm_get_remaining_ms()
4. Move the definition of struct alarm_t in source file "alarm.c"
5. Add definition of module error code
2017-11-10 11:53:55 +08:00
Yulong
ee43527108
compoent/bt: Modify bta_gattc_utils.c The value pointer copy is overwritten when a write event occurs.
2017-11-09 14:47:11 +08:00
Yulong
e6b2c19eea
component/bt: Fix the write value not store in the queue command bug.
2017-11-09 14:47:11 +08:00
Yulong
68833fe94c
component/bt: Change the bta_gattc_pop_command_to_send function to static.
2017-11-09 14:47:11 +08:00
Yulong
0ae5320f50
component/bt: Added the gattc command queue support.
2017-11-09 14:47:11 +08:00
Yulong
7a27e3c74d
component/bt: added the queue to store the gattc commands.
2017-11-09 14:47:11 +08:00
Yulong
1ceef12238
compoent/bt: Modify bta_gattc_utils.c The value pointer copy is overwritten when a write event occurs.
2017-11-09 01:44:16 -05:00
Yulong
8ca40818eb
component/bt: Fix the write value not store in the queue command bug.
2017-11-08 04:23:12 -05:00
Jiang Jiang Jian
b13cd4adf8
Merge branch 'feature/btdm_add_value_callback_when_send_notification_or_indicate_failed' into 'master'
...
component/bt: add value callback when send notification or indicate failed
See merge request !1457
2017-11-03 10:05:29 +08:00
zhiweijian
9a96187655
Component/bt: modify some log
2017-11-02 19:45:13 +08:00
Jiang Jiang Jian
1de3fc4a2c
Merge branch 'bugfix/btdm_master_dont_send_pair_req_#13686' into 'master'
...
component/bt: Fix the bug of master don't send pair request to the slave when the sec_act set to the value of ESP_BLE_SEC_ENCRYPT.
See merge request !1376
2017-11-02 15:49:27 +08:00
zhiweijian
e7020460c6
Component/bt: add value callback when send notification or indicate failed
2017-11-01 11:00:08 +08:00
zhiweijian
481e436587
Component/bt: modify close event and disconnection event params
...
- modify close event params
- modify disconnection event params
- modify connect event params
2017-11-01 10:40:03 +08:00
Jiang Jiang Jian
939b46596f
Merge branch 'bugfix/btdm_unable_use_esp_ble_gatts_get_attr_value_after_long_write' into 'master'
...
component/bt: Fix the bug cann't use esp_ble_gatts_get_attr_value to get the att…
See merge request !1381
2017-10-31 14:45:17 +08:00
Jiang Jiang Jian
07f92f0bd1
Merge branch 'bugfix/btdm_smp_decide_association_model' into 'master'
...
component/bt: Fix bug of function smp_decide_association_model
See merge request !1377
2017-10-31 14:34:41 +08:00
Jiang Jiang Jian
c4bb378e4c
Merge branch 'bugfix/btdm_set_MAX_L2CAP_CHANNELS_error' into 'master'
...
component/bt: Fix bug of set MAX_L2CAP_CHANNELS error
See merge request !1448
2017-10-31 14:32:53 +08:00
Jiang Jiang Jian
97dffbfc47
Merge branch 'bugfix/btdm_disable_role_switch' into 'master'
...
component/bt: disable the use of ROLE_SWITCH feature for classic BT as workaround
See merge request !1446
2017-10-31 11:31:15 +08:00
Jiang Jiang Jian
182cd1ce4d
Merge branch 'bugfix/btdm_fix_crash_when_set_device_name_null' into 'master'
...
component/bt: fix crash when set device name NULL
See merge request !1462
2017-10-31 11:17:49 +08:00
Jiang Jiang Jian
a9b63b796e
Merge branch 'bugfix/btdm_cpu_core' into 'master'
...
component/bt : fix bug of sw interrupt cause to run btdm to different cpu core.
See merge request !1434
2017-10-27 18:36:59 +08:00
zhiweijian
15c75974de
component/bt: fix crash when set device name NULL
2017-10-27 15:21:00 +08:00
baohongde
3dab0fd340
component/bt: Fix bug of set MAX_L2CAP_CHANNELS error
2017-10-25 12:02:41 +08:00
island
4e7de126dc
component/bt: Fix scan problem of bonded device using public address
2017-10-25 11:52:03 +08:00
Tian Hao
85eb5d4374
component/bt : fix bug of sw interrupt cause to run btdm to different cpu core.
...
1. add sw interrupt cause osi to controller.
2. modify the kconfig to improve the option view.
3. add option of the cpu core which bluedroid run.
4. add option of the cpu core which bluetooth controller run.
2017-10-24 16:13:58 +08:00
wangmengyang
837678e4f3
component/bt: disable the use of ROLE_SWITCH feature for classic BT as workaround
2017-10-24 14:44:53 +08:00
baohongde
84a55f9ee4
component/bt: Fix bug of function smp_decide_association_model
2017-10-23 15:34:02 +08:00
yulong
a9a423a025
component/bt: Added the sec_act != BTM_BLE_SEC_ENCRYPT check in the btm_ble_set_encryption function when the sec_act is BTM_BLE_SEC_ENCRYPT_NO_MITM or BTM_BLE_SEC_ENCRYPT_MITM.
2017-10-23 15:12:36 +08:00
Yulong
da32fbce7a
component/bt: Fix the bug of can't pair if master send pair req but slave don't send sec req.
2017-10-23 15:12:36 +08:00
Yulong
4b1968f315
component/bt: Change the queue_data->p_attr->p_value->attr_val.attr_len += queue_data->len code to the if case.
2017-10-16 03:42:49 -04:00
Jiang Jiang Jian
a0ad3ff008
Merge branch 'bugfix/btdm_fix_set_attr_value_crash_when_length_is_0' into 'master'
...
component/bt: fix crash when the length of attr value set zero
See merge request !1397
2017-10-13 16:00:15 +08:00
Jiang Jiang Jian
90be957af1
Merge branch 'bugfix/btdm_fix_register_app_id_failed_when_more_than_3' into 'master'
...
component/bt: fix register more than three app_ids failed
See merge request !1389
2017-10-13 15:57:00 +08:00
zhiweijian
520b3340f6
Component/bt: fix crash when set attr value 0
2017-10-13 15:06:08 +08:00
zhiweijian
49ad8bf6c3
Component/bt: fix register more than 3 app_id failed
2017-10-12 21:07:40 +08:00
Jiang Jiang Jian
244e947beb
Merge branch 'bugfix/btdm_fix_add_whitelist_failed' into 'master'
...
Component/bt: fix add whitelist failed
See merge request !1326
2017-10-12 19:01:01 +08:00
Jiang Jiang Jian
f8caa403db
Merge branch 'bugfix/btdm_remove_bond_device_not_return_error' into 'master'
...
component/bt: Fixed the bug when remove the bonded device with not exist address…
See merge request !1370
2017-10-12 18:59:09 +08:00
Jiang Jiang Jian
73462c052e
Merge branch 'bugfix/btdm_fix_set_scan_params_not_work' into 'master'
...
component/bt: fix scan params not work when start scan
See merge request !1307
2017-10-12 18:57:36 +08:00
Jiang Jiang Jian
a4e4322f6c
Merge branch 'bugfix/btdm_set_sec_properity_error' into 'master'
...
component/bt: Fix bug of set sec properity error
See merge request !1336
2017-10-12 17:45:32 +08:00
Yulong
7617a3c434
component/bt: Fix the bug cann't use esp_ble_gatts_get_attr_value to get the attribute value after long write.
2017-10-11 07:47:12 -04:00
zhiweijian
cd3d9715bb
Component/bt: fix add whitelist failed
...
- fix add whitelist failed
- add add whitelist callback func
2017-10-11 15:30:09 +08:00
Yulong
fc359e4491
component/bt: Change the _btc_storage_remove_ble_bonding_keys function ret default vaule from 1 to 0.
2017-10-10 04:19:11 -04:00
Yulong
25e8c09b6d
component/bt: Change the param.remove_bond_dev_cmpl.status value.
2017-10-10 04:02:05 -04:00
Yulong
e02ff1ed89
component/bt: Change the bta_gattc_pop_command_to_send function to static.
2017-10-10 03:12:00 -04:00
Yulong
8e08097151
component/bt: Fixed the bug when remove the bonded device with not exist address will not return error.
2017-10-10 02:29:54 -04:00
zhiweijian
c75da555af
Component/bt: fix set scan params and start scan action
2017-09-30 17:01:57 +08:00
zhiweijian
4720196015
Component/bt: fix multi-connection failed
...
- modify some comments
2017-09-30 16:30:43 +08:00
Yulong
1a07a13727
component/bt: Change the 0x04 to Macro BTA_LE_AUTH_REQ_MITM.
2017-09-30 04:05:21 -04:00
Jiang Jiang Jian
c2a4713958
Merge branch 'bugfix/btdm_btc_ble_set_rand_addr' into 'master'
...
component/bt: Fix bug of function btc_ble_set_rand_addr
See merge request !1297
2017-09-30 15:49:53 +08:00
Jiang Jiang Jian
b420c62602
Merge branch 'bugfix/btdm_mem_leak_of_gattc_open_and_close' into 'master'
...
component/bt: Fix bug of memory leak of gatt open and close
See merge request !1325
2017-09-30 15:48:57 +08:00
Jiang Jiang Jian
a8dab7680a
Merge branch 'bugfix/btdm_gattc_mutiple_read_bug' into 'master'
...
component/bt: Fixed the bug of mutiple read can not callback.
See merge request !1286
2017-09-30 15:45:56 +08:00
Jiang Jiang Jian
816fe6cf1f
Merge branch 'bugfix/btdm_gattc_get_db_prop_bug' into 'master'
...
component/bt: Fiexd the bug of the gattc cannot get the db properties.
See merge request !1284
2017-09-30 15:42:45 +08:00
Yulong
3d3bcd6275
component/bt: Added the gattc command queue support.
2017-09-30 13:59:14 +08:00
Yulong
fb93a59619
component/bt: added the queue to store the gattc commands.
2017-09-30 13:59:14 +08:00
baohongde
b78da3b715
component/bt: Fix bug of set sec properity error
2017-09-29 18:46:28 +08:00
baohongde
b59708ca87
component/bt: Fix bug of function btc_ble_set_rand_addr
2017-09-29 11:46:08 +08:00
baohongde
27e1db508d
component/bt: Fix bug of function btc_ble_set_rand_addr
2017-09-28 14:41:31 +08:00
baohongde
68958a2485
component/bt: Fix bug of memory leak of gatt open and close
2017-09-28 14:34:57 +08:00
Yulong
f7a2cc37b3
component/bt: Fix the bug of total attr didn't reset when init the gattc cache.
2017-09-28 02:09:02 -04:00
Angus Gratton
c9241b4310
bluedroid: Add continuation offset check to SDP server
...
Fix for CVE-2017-0785
https://android.googlesource.com/platform/system/bt/+/818cf6f%5E%21/#F0
2017-09-27 09:49:04 +10:00
Yulong
f325ba3942
component/bt: Change the cmpl_evt command in the bta_gattc_read_cmpl function.
2017-09-20 04:28:52 -04:00
Yulong
e815660824
component/bt: Fixed the bug of mutiple read can not callback.
2017-09-19 04:50:26 -04:00
Yulong
7827bc486d
component/bt: Fiexd the bug of the gattc cannot get the db properties.
2017-09-18 23:15:32 -04:00
Yulong
388bf8d579
componnent/bt: remove the <<<<<<< HEAD in the code.
2017-09-18 05:44:50 -04:00
Yulong
8925a90d40
squash again
...
squash the commit.
component/bt:Added the update_white_list & set_prefer_conn_params API to the bt project.
component/bt: Added the get white list size API & delete the read adv tx power API.
component/bt: Change the esp_gap_ble_api.h esp_ble_gap_set_prefer_conn_params API docs.
changed btm_find_dev to btm_find_or_alloc_dev
component/bt: Change the rssi API deep copy method.
component/bt: Change the code as comment in the gitlab.
squash the commit.
component/bt:Added the update_white_list & set_prefer_conn_params API to the bt project.
component/bt: Added the get white list size API & delete the read adv tx power API.
component/bt: Change the esp_gap_ble_api.h esp_ble_gap_set_prefer_conn_params API docs.
changed btm_find_dev to btm_find_or_alloc_dev
component/bt: Change the rssi API deep copy method.
component/bt: Change the code as comment in the gitlab.
component/bt: change the ESP_BLE_CONN_PARAM_UNDEF redefinition error.
component/bt: Change the ESP_BLE_IS_VALID_PARAM function with the compile error.
2017-09-18 05:39:26 -04:00
Jiang Jiang Jian
3d7ec475d1
Merge branch 'feature/btdm_cherry_pick_change_gattc_api' into 'master'
...
component/bt: Change all the gattc API && bta gattc layer.
See merge request !1147
2017-09-15 19:39:29 +08:00
Jiang Jiang Jian
18f2a29a99
Merge branch 'bugfix/btdm_smp_close_compile_error' into 'master'
...
component/bt: fix the bug when close the SMP module in the menuconfig will lead to compile error.
See merge request !1265
2017-09-15 19:36:30 +08:00
Tian Hao
dff95aed65
component/bt : fix a malloc bzero of blufi
2017-09-15 11:08:42 +08:00
Yulong
875ba996d5
component/bt: fix the bug when close the SMP module in the menuconfig will lead to compile error.
2017-09-15 10:32:28 +08:00
yulong
09a3e4fd58
squesh the commit.
...
component/bt: Change the idf test KnownIssues file.
component/bt: Fixed the bug of gattc mutilple read.
2017-09-14 09:35:36 -04:00
Jiang Jiang Jian
fff90da8d6
Merge branch 'bugfix/btdm_gatt_read_by_type_bug' into 'master'
...
component/bt: Fix gatt read by type response bug
See merge request !1102
2017-09-14 17:24:02 +08:00
Jiang Jiang Jian
574daad1c4
Merge branch 'feature/btdm_update_to_bluedroid7.1_l2cap' into 'master'
...
component/bt: Added the new feature of the l2cap layer from the bluedroid new version 7.1.1
See merge request !1087
2017-09-13 20:39:38 +08:00
Jiang Jiang Jian
b70329040d
Merge branch 'bugfix/btdm_gatts_notify_stress_test_crash' into 'master'
...
component/bt: fix bug for gatts notify stress test crash
See merge request !1245
2017-09-13 20:27:17 +08:00
Jiang Jiang Jian
f1e3b0df02
Merge branch 'feature/adv_scan_simultaneously' into 'master'
...
component/bt : support adv & scan simultaneously
See merge request !1209
2017-09-13 11:50:57 +08:00
Jiang Jiang Jian
ea7a09c3e4
Merge branch 'bugfix/btdm_sec_config' into 'master'
...
component/bt : fix btc security storage bug
See merge request !1161
2017-09-13 11:46:34 +08:00
zhiweijian
8921a36828
Component/bt: fix bug for gatts notify stress test crash
2017-09-13 11:19:58 +08:00
Yulong
1759a47060
This is a combination of 4 commits.
...
squash again all the commit.
component/bt: Change all the gattc API && bta gattc layer.
component/bt: Debug the code and change the btc_ble_gattc_get_db method.
component/bt: Change the gatt read API interface.
component/bt: Reconstruction the BTA_gattc_cache code.
component/bt: Change back the bluedroid_get_status to marco.
component/bt: Added the serch service res start_handle & end_handle to the result.
component/bt: Change the gattc docs format.
component/bt: Change the docs format.
component/bt: fix the read char value bug.
component/bt: change the gattc_get_attr_count method.
component/bt: Change back the bta_gattc write ccc code.
component/bt: Change the gattc api docs format
component/bt: Change the gattc API docs.
component/bt: Change the prepare write descriptor method to avoid the exection.
Component/bt: modify gatt clinet demo with new API
component/bt: Change the p_src_data->read.p_value to avoid exection.
compoent/bt: Change the bugfix of gattc unreg for the notify.
Modify gattc security demo
component/bt: Change the log error.
Component/bt: modify gattc_multi_connect demo
componnet/bt: Change the bta_gattc_cache sdp include.
component/bt: Change the start_handle & end_handle not from the service.
component/bt: Change the gattc API docs.
component/bt: Change the return issues.
component/bt: Fixed the include service bug.
component/bt: Modify gattc_multi_connect demo , add scan log
component/bt: Fixed the BTA_GATTC_GetIncludeService start handle & end handle error bug.
component/bt: Fix the invalid handle of the get all char issues.
component/bt: Fix the bug with get_db_size_with_type of the start handle & end_handle not correted issue.
component/bt: Fixed the get secondly service num not correct issue.
component/bt: Fixed the last service handle not correted issue.
2017-09-12 07:36:02 -04:00
Tian Hao
00a7cdbb0b
component/bt : support adv & scan simultaneously
...
1. Occupy conn[9] for adv. The max connection number of bluetooth controller decrease to 9. (Previously, it is 10)
2. modify the enum of setting BLE TX power corresponding to connection's.
3. fix libbtdm_app.a cwitch jump table
2017-09-12 16:10:30 +08:00
Ivan Grokhotkov
868b0ce228
Merge branch 'bugfix/list_node_naming' into 'master'
...
Fix "list_node" name conflict in bluedroid & dhcp_server
See merge request !1216
2017-09-12 12:10:54 +08:00
wangmengyang
21586063de
component/bt: fix build error when GATTS is disabled in menuconfig
2017-09-08 11:34:59 +08:00
Tian Hao
38102f4148
component/bt : fix btc security storage bug
...
1. Remove the bond_device global variable.
2. Fix bond_device add cause memory exception
3. Modify the code location.
4. modify thread security
5. remove esp_ble_clear_bond_device_list() API
6. modify esp_ble_get_gond_device_list() to return list immediately, rather than wait event.
7. modify the gatt_security_server demo to show how to remove all the bonded devices.
8. fix some code bugs may cause something error.
2017-09-07 19:37:49 +08:00
Yulong
371c55138e
component/bt: Added the new feature of the l2cap layer from the bluedroid new version 7.1.1
2017-09-06 04:25:57 -04:00
Angus Gratton
48333aea48
bluedroid: Move fixed_queue.h to implementation of hci_layer.c
...
Avoids pulling types like list_node into the public interface.
Closes https://github.com/espressif/esp-idf/issues/948
2017-09-05 17:14:40 +10:00
zhiweijian
f1c4eda373
Component/bt: add set local MTU API
...
- add esp_ble_gatt_set_local_mtu( ) API
- modify esp_ble_gattc_config_mtu(esp_gatt_if_t gattc_if, uint16_t conn_id)
- modify gattc demo
2017-09-01 21:55:28 +08:00
Jiang Jiang Jian
3a1de7dba3
Merge branch 'bugfix/btdm_fix_connection_parameters_update' into 'master'
...
component/bt: fix connection parameters update
See merge request !1099
2017-09-01 20:15:30 +08:00
Deomid Ryabkov
3e6c515d5b
Using a 128-bit UUID is not an error
...
Merges https://github.com/espressif/esp-idf/pull/713
2017-08-30 17:55:00 +10:00
phuzi
762d5fcb4c
Update documentation for esp_avrc_api
...
Updated documentation for esp_err_t esp_avrc_ct_send_passthrough_cmd to show both pressed and released key states
Merges https://github.com/espressif/esp-idf/pull/846
2017-08-30 17:55:00 +10:00
zhiweijian
1a9b02ccbc
component/bt: fix connection parameters update
...
- update connection parameters timeout due to master update illegal connection parameters
- slave returns error status when slave check the connection parameters
- slave connection parameters update callback get that interval_max is equal to interval_min
2017-08-30 11:29:25 +08:00
Jiang Jiang Jian
258480822b
Merge branch 'bugfix/btdm_config_local_privacy_func' into 'master'
...
component/bt: bugfix config local privacy
See merge request !1137
2017-08-24 10:48:57 +08:00
Jiang Jiang Jian
8b4229fcd6
Merge branch 'bugfix/btdm_fix_set_rand_addr_func' into 'master'
...
component/bt: fixbug_set_rand_addr()
See merge request !1123
2017-08-24 10:48:20 +08:00
Ivan Grokhotkov
de10032717
Merge branch 'feature/btdm_remove_gki' into 'master'
...
component/bt : remove all GKI reference
See merge request !1122
2017-08-23 18:01:54 +08:00
zhiweijian
19bf8cef1f
Component/bt: bugifx config local privacy
2017-08-23 17:42:38 +08:00
Tian Hao
e4f63819a1
component/bt : remove all GKI reference
...
1. remove GKI(not use osi_free_and_reset)
2. modify mutex/semaphore to individual directory
3. set osi_malloc as malloc(previously use calloc)
4. change osi allocator debug osi_free
5. fix rebase of remove GKI
2017-08-23 15:29:30 +08:00
baohongde
593fbe6d8d
updata gatt read by type response bug
2017-08-22 18:11:01 +08:00
zhiweijian
974cff4773
Component/bt: fixbug_set_rand_addr()
...
- The two most significant bits of the address shall be equal to 1
- All bits of the random part of the address shall not be equal to 1
- All bits of the random part of the address shall not be equal to 0
2017-08-22 14:25:10 +08:00
Jiang Jiang Jian
9f24f06a65
Merge branch 'bugfix/btdm_security_section_remove_bug' into 'master'
...
component/bt: Change the remove section error && SMP_INCLUDE marco
See merge request !1133
2017-08-22 14:13:29 +08:00
Jiang Jiang Jian
b0188b3f29
Merge branch 'bugfix/btdm_add_check_value_length_for_gatts_get_attribute_value' into 'master'
...
component/bt: add check value and length for esp_ble_gatts_get_attr_value(uint16…
See merge request !1110
2017-08-22 11:37:56 +08:00
Yulong
71d35c7770
component/bt: Change the remove section error.
2017-08-21 23:28:45 -04:00
Jiang Jiang Jian
5c9d9ae696
Merge branch 'bugfix/btdm_smp_invalid_key_size' into 'master'
...
component/bt: Change the SMP key size analyzing conditions.
See merge request !958
2017-08-21 19:38:15 +08:00
Yulong
202c5783db
component/bt:squash the 2 commits.
...
component/bt: cherry-pick the bugfix/btdm_api_manage_pair_info_#13119 to this branch.
component/bt: Change the ble gap API code format & added the status judgment in the btc_storage_load_bonded_ble_devices function.
2017-08-21 06:17:21 -04:00
Yulong
c5ea00c727
component/bt: Change the debug info.
2017-08-21 17:49:05 +08:00
Yulong
eebc2e2df1
component/bt: Change the btm ble security key size range.
2017-08-21 17:49:05 +08:00
Yulong
677f58577f
component/bt: Change the SMP key size analyzing conditions.
2017-08-21 17:49:05 +08:00
Jiang Jiang Jian
363f201603
Merge branch 'bugfix/exection_not_init_bt_use_smp_api_#13691' into 'master'
...
component/bt: Added the bluedorid status checkout for the BLE security API.
See merge request !1045
2017-08-21 14:51:17 +08:00
zhiweijian
6276e71fc1
Component/bt: add check value and length for esp_ble_gatts_get_attr_value(uint16_t attr_handle, uint16_t *length, const uint8_t **value);
2017-08-20 19:12:57 +08:00
baohongde
b041c042bb
component/bt: Fix gatt read by type response bug
2017-08-10 20:05:10 +08:00
Yulong
4efc97efc1
component/bt: All esp_bluedroid_get_status check-return could be used as MACRO ESP_BLUEDROID_STATUS_CHECK(ESP_BLUEDROID_STATUS_ENABLED);
2017-08-08 05:28:19 -04:00
Jiang Jiang Jian
886ea722ec
Merge branch 'bugfix/btdm_add_set_local_privacy_callback' into 'master'
...
component/bt: add set local privacy func callback
See merge request !1026
2017-08-04 14:52:02 +08:00
Jiang Jiang Jian
ea3b3046c2
Merge branch 'bugfix/btdm_fix_esp_ble_gatts_set_attr_value_memory_leak' into 'master'
...
component/bt: fix esp_ble_gatts_set_attr_value() memory leak
See merge request !1068
2017-08-04 14:40:54 +08:00
Jiang Jiang Jian
e165336428
Merge branch 'bugfix/btdm_Wrong_return_code_type_for_esp_ble_gattc_register_for_notify_and_unregister_for_notify_func' into 'master'
...
component/bt: fix wrong return code type for notify functions
See merge request !1070
2017-08-03 10:49:47 +08:00
Tian Hao
d2872cbf2e
component/bt : remove fixed queue from btu
2017-08-01 11:35:22 +08:00
zhiweijian
6ff53d1967
Component/bt: wrong return code type for notify func
...
- fix esp_ble_gattc_register_for_notify() returen wrong code type
- fix esp_ble_gattc_unregister_for_notify() returen wrong code type
2017-07-31 18:02:15 +08:00
zhiweijian
87d58b9ddb
Component/bt: fix esp_ble_gatts_set_attr_value( ) memory leak
2017-07-31 17:24:07 +08:00
zhiweijian
fc05851b05
Component/bt: add set local privacy func callback
2017-07-26 17:29:10 +08:00
Yulong
9d9280a8ea
component/bt: Added the bluedorid status checkout for the BLE security API.
2017-07-24 02:50:23 -04:00
Ivan Grokhotkov
292c2abd3b
Merge branch 'bugfix/init_nvs_in_bluetooth' into 'master'
...
bt: call nvs_flash_init in examples, show error if NVS is not initialized
See merge request !1003
2017-07-20 14:25:49 +08:00
Ivan Grokhotkov
979fce0df5
bt: call nvs_flash_init in examples, show error if NVS is not initialized
...
NVS is used to store PHY calibration data, WiFi configuration, and BT
configuration. Previously BT examples did not call nvs_flash_init,
relying on the fact that it is called during PHY init. However PHY init
did not handle possible NVS initialization errors.
This change moves PHY init procedure into the application, and adds
diagnostic messages to BT config management routines if NVS is not
initialized.
2017-07-17 21:29:50 +08:00
Jiang Jiang Jian
5ac0503ce7
Merge branch 'bugfix/btdm_modify_BTA_GATTC_KNOWN_SR_MAX_for_Multi-connection' into 'master'
...
component/bt: modify BTA_GATTC_KNOWN_SR_MAX for Multi-connection bug
See merge request !992
2017-07-13 21:55:24 +08:00
zhiweijian
ca3bf570cd
Component/bt: modify BTA_GATTC_KNOWN_SR_MAX for Multi-connection bug
2017-07-13 16:22:44 +08:00
zhiweijian
8460f1a972
Component/bt: bugfix update connect params for gattc
2017-07-11 11:27:36 +08:00
zhiweijian
ad8cce3053
Component/bt: fix bug for error length unit
2017-07-04 10:57:36 +08:00
Jiang Jiang Jian
55b3ea9ccc
Merge branch 'bugfix/btdm_cherry-pick_ble_smp_bonding_issues' into 'master'
...
component/bt: Fixed the bug crash of disconnet BLE when close the SMP module in the menuconfig.
See merge request !941
2017-07-03 19:41:56 +08:00
wangmengyang
8959c7de20
component/bt: bugfix for AVDTP state machine during disconnection in failure to handle NULL parameter
2017-07-03 17:25:44 +08:00
Yulong
5b9a89f04d
component/bt: squech the commit
...
component/bt: Fixed the bug crash of disconnet BLE when close the SMP module in the menuconfig.
component/bt: Removed the Excess #endid ///SMP_INCLUDED == TRUE in the l2cu_no_dynamic_ccbs function.
2017-07-03 03:07:23 -04:00
Ivan Grokhotkov
fff0a001d3
Merge branch 'bugfix/btdm_ble_smp_bonding_issues' into 'master'
...
component/bt: Fix bugs of the SMP security module
See merge request !923
2017-06-27 23:49:00 +08:00
Yulong
b60b58a333
component/bt: Added the bta gattc write ccc judgment.
2017-06-26 05:39:14 -04:00
Yulong
574d0cf846
component/bt: Fixed a very important bug of the SMP security module when use SMP to connected after bonding.
2017-06-26 05:02:57 -04:00
wangmengyang
6da84eff76
component/bt: fix a bug for L2CAP state machine to access lcb after it is released
2017-06-23 17:26:43 +08:00
Jiang Jiang Jian
3dd2861e2a
Merge branch 'bugfix/btdm_ble_update_conn_params_issues' into 'master'
...
component/bt: Modifed the update connection method to fixed the bug of connectio…
See merge request !889
2017-06-22 20:50:37 +08:00
Yulong
d79aeab3aa
component/bt: Added the error log to the l2cble_start_conn_update func.
2017-06-22 03:53:27 -04:00
Yulong
328e93ddc4
component/bt: Change the l2cble_start_conn_update return value to BOOLEAN.
2017-06-21 02:39:36 -04:00
zhiweijian
eec989f026
Component /bt: modify some log infor
2017-06-21 10:54:51 +08:00
Yulong
01705166bc
component/bt: Modifed the update connection method to fixed the bug of connection parameters not correct.
2017-06-19 03:22:25 -04:00
Jiang Jiang Jian
c8201275f7
Merge branch 'bugfix/btdm_ble_client_muti_conn_issue' into 'master'
...
component/bt: change the MAX_L2CAP_CHANNELS macro from 2 to MAX_ACL_CONNECTIONS …
See merge request !882
2017-06-16 16:52:38 +08:00
Yulong
0d318ea2da
component/bt: change the MAX_L2CAP_CHANNELS macro from 2 to MAX_ACL_CONNECTIONS when in the BLE only mode.
2017-06-16 03:46:46 -04:00
Jiang Jiang Jian
e045253883
Merge branch 'bugfix/btdm_conn_enhanecd_issue' into 'master'
...
component/bt: added the temp enhanced to solve the conn_interval not collect issues.
See merge request !881
2017-06-16 13:18:41 +08:00
Yulong
1739216787
component/bt: added the temp enhanced to solve the conn_interval not collect issues.
2017-06-15 10:15:49 -04:00
Jiang Jiang Jian
fd12a6c706
Merge branch 'bugfix/btdm_add_set_pkt_data_length_evt_cback' into 'master'
...
component / bt: add set pkt data length event callback
See merge request !869
2017-06-15 19:51:22 +08:00
zhiweijian
58b65291d9
component / bt: add set pkt data length event callback
2017-06-15 16:02:03 +08:00
Jiang Jiang Jian
491932b80c
Merge branch 'bugfix/btdm_cherry_pick_hit_limit_github_#12259' into 'master'
...
component/bt: cherry-pick the btdm_hit_limit_github_#12259 branch to this branch.
See merge request !867
2017-06-15 15:14:10 +08:00
Jiang Jiang Jian
ac5040a7c2
Merge branch 'bugfix/btdm_ll_get_remote_feature' into 'master'
...
component/bt: Fix can't get remote's feature bug
See merge request !871
2017-06-15 15:10:52 +08:00
Yulong
83b7144207
component/bt: Added the lmp_verion default value to 4.0.
2017-06-15 02:13:31 -04:00
Jiang Jiang Jian
5f24dcdf4e
Merge branch 'bugfix/btdm_blufi' into 'master'
...
component/bt : fix blufi second init fail bug
See merge request !866
2017-06-15 13:37:31 +08:00
Yulong
6ffa30a408
component/bt: Change the return position in the btc_gatts_inter_cb function.
2017-06-14 23:40:25 -04:00
Jiang Jiang Jian
113c21a481
Merge branch 'bugfix/fail_to_disconn_after_pair_#13172' into 'master'
...
component/bt: Added the judgment to check the address is public or not.
See merge request !868
2017-06-15 11:20:12 +08:00
Tian Hao
7cf5eea36f
component/bt : fix blufi second init fail bug
2017-06-15 11:05:21 +08:00
Jiang Jiang Jian
a18032fe80
Merge branch 'bugfix/btdm_gattc_refresh_cache_does_not_work_properly' into 'master'
...
component /bt: using esp_ble_gattc_cache_refresh() does not work when open event callback
See merge request !864
2017-06-15 11:02:35 +08:00
island
e2e5f4caae
component/bt: Fix can't get remote's feature bug
...
- Slave send version_ind cause some Android 7.0 devices can't encrypt correctly
2017-06-14 21:56:59 +08:00
Yulong
a03e5f95be
component/bt: Added the judgment to check the address is public or not.
2017-06-14 09:01:29 -04:00
Yulong
00bcee2df2
component/bt: cherry-pick the btdm_hit_limit_github_#12259 branch to this branch.
2017-06-14 07:14:23 -04:00
zhiweijian
60d5b677e7
Component /bt: using esp_ble_gattc_cache_refresh() does not work when open event callback.
2017-06-14 16:45:17 +08:00
Jiang Jiang Jian
ae7269d39d
Merge branch 'bugfix/btdm_smp_auth_complete_error' into 'master'
...
component/bt: Change the btc layer data copy method.
See merge request !844
2017-06-14 15:16:38 +08:00
Jiang Jiang Jian
6b3a559ee7
Merge branch 'bugfix/btdm_master_write_service_change_ccc' into 'master'
...
component/bt: Fix slave initiate service change ccc discovery procedure bug
See merge request !847
2017-06-14 15:12:45 +08:00
island
c5debed621
component/bt: Fix bug while writing slave's service change characteristic
...
- Fix slave initiate service discovery procedure
- Fix master re-discovery every time connection established
- Optimize service discovery char ccc write procedure
- Optimize esp_log_buffer function
- Modify default supervision timeout from 20s to 2s
2017-06-14 13:12:38 +08:00
Jiang Jiang Jian
06fa08b022
Merge branch 'bugfix/btdm_config_bluedroid_mem_debug_github_#12631' into 'master'
...
component/bt: Change the osi_mem_dbg_init to the esp_bluedroid_init function.
See merge request !860
2017-06-14 11:18:34 +08:00
Jiang Jiang Jian
243bc97119
Merge branch 'bugfix/btdm_task_post' into 'master'
...
component/bt : fix task post bug && fix controller init protection
See merge request !856
2017-06-14 10:52:56 +08:00
Yulong
3f997d3e8c
component/bt: Added the unhandle log to the btc dm case.
2017-06-13 22:37:44 -04:00
Jiang Jiang Jian
12c1238730
Merge branch 'bugfix/btdm_uuid_convert' into 'master'
...
component/bt : fix uuid convert warning
See merge request !857
2017-06-13 21:03:55 +08:00
Yulong
2a759a9864
component/bt: Change the osi_mem_dbg_init to the esp_bluedroid_init function.
2017-06-13 08:52:26 -04:00
Tian Hao
063dccd6c0
component/bt : fix uuid convert warning
2017-06-13 20:21:59 +08:00
Jiang Jiang Jian
57d27faee8
Merge branch 'bugfix/btdm_write_API_to_write_char_get_wrong_status_when_server_response_NULL' into 'master'
...
component /bt: write_API_to_write_char_get_wrong_status_when_server_response_NULL
See merge request !842
2017-06-13 18:18:30 +08:00
Jiang Jiang Jian
be680a0ef3
Merge branch 'bugfix/btdm_auth_val_error_#12962' into 'master'
...
component/bt: correct the security demo pair status code.
See merge request !841
2017-06-13 18:14:39 +08:00
Tian Hao
808b07799c
component/bt : fix task post bug && fix controller init protection
...
1. fix bluedroid task post to blocking.
2. use semphore protect btdm controller task when be called from higher priority task
2017-06-13 17:14:50 +08:00
zhiweijian
352cc0c7fe
Component /bt: write_API_to_write_char_get_wrong_status_when_server_response_NULL
2017-06-12 15:02:21 +08:00
Yulong
411b5ecc43
component/bt: delete the bd_addr to avoid the warning.
2017-06-09 05:07:26 -04:00
Yulong
e07482504a
component/bt: Change the btc ESP_BLE_SM_SET_RSP_KEK to ESP_BLE_SM_SET_RSP_KEY
2017-06-09 04:54:56 -04:00
Yulong
4734ba40b0
component/bt: Change the btc layer data copy method.
2017-06-09 04:32:01 -04:00
Yulong
e5adfb8119
component/bt: correct the security demo pair status code.
2017-06-09 02:37:28 -04:00
island
30783d481d
component/bt: Fix crash problem while using invalid control parameter
...
- Fix crash problem while using invalid control parameter to set gatt characteristic or descriptor
2017-06-07 20:18:36 +08:00
Jiang Jiang Jian
7da4b42ed1
Merge branch 'feature/btdm_add_connect_event_and_disconnect_event_for_gattc' into 'master'
...
component/bt: Add disconnect & connect func and event
See merge request !806
2017-06-07 13:45:43 +08:00
Jiang Jiang Jian
82b8b1db1f
Merge branch 'bugfix/bt_ble_separation' into 'master'
...
component/bt: fix the build error when using classic BT, with GATTC, GATTS and SMP disabled
See merge request !822
2017-06-06 20:56:05 +08:00
Jiang Jiang Jian
b78242da58
Merge branch 'bugfix/btdm_rebase_update_param_#9626' into 'master'
...
component/bt: rebase the btdm_updata_param_bug_#9626 to the new master.
See merge request !808
2017-06-06 20:55:23 +08:00
Yulong
e6acc32df6
component/bt: rebase the btdm_updata_param_bug_#9626 to the new master.
...
- Added the error code for the time out status.
2017-06-06 05:51:31 -04:00
Yulong
531f751fd3
component/bt: Cherry-pick the btdm_no_doc_for_value_type_github_#118659 to this branch to avoid conflict.
2017-06-06 05:22:17 -04:00
zhiweijian
db96edc5d9
component/bt: Add disconnect & connect func and event
...
- Add disconnect func for gap
- Add connect event and disconnect event for gattc
2017-06-06 16:53:37 +08:00
Jiang Jiang Jian
b0d93fccce
Merge branch 'bugfix/btdm_ble_scan_5min_stop_github_#12723' into 'master'
...
component/bt: Change the duration type from UINT8 to UINT32
See merge request !815
2017-06-06 14:11:05 +08:00
wangmengyang
ca4506fba9
component/bt: fix the build error when using classic BT, with GATTC, GATTS and SMP disabled
2017-06-05 21:01:58 +08:00
Yulong
a42bf640bc
component/bt: Change the duration type from UINT8 to UINT32
2017-06-03 01:00:10 -04:00
Jiang Jiang Jian
0a66f0db4c
Merge branch 'bugfix/btdm_bit_against_enums_github_#12289' into 'master'
...
component/bt: Change the esp_gatt_perm_t & esp_gatt_char_prop_t type from enum t…
See merge request !809
2017-06-02 15:41:01 +08:00
Yulong
be3eda0044
component/bt: Change the esp_gatt_perm_t & esp_gatt_char_prop_t type from enum to uint16_t & uint8_t.
2017-06-02 01:48:56 -04:00
zhiweijian
f5a59f4f78
component/bt: add open and close event for gatts
...
1.added open event and close event for gatts.
2.used esp_log_buffer_char/hex for gattc scan result.
2017-06-01 15:01:54 +08:00
jack
fc130fba86
fix bug that files missing commit in MR 773
2017-05-31 19:37:39 +08:00
Jiang Jiang Jian
636d2b384e
Merge branch 'bugfix/ble_comfirm_reply_not_work_#12881' into 'master'
...
component/bt: Added the esp_ble_passkey_reply BTC_GAP_BLE_PASSKEY_REPLY_EVT &BTC…
See merge request !793
2017-05-27 14:40:26 +08:00
Yulong
e9fae704e3
component/bt: Merge the new master to avoid conflict.
2017-05-26 22:47:56 -04:00
Yulong
9679c238aa
component/bt: Added the esp_ble_passkey_reply BTC_GAP_BLE_PASSKEY_REPLY_EVT &BTC_GAP_BLE_CONFIRM_REPLY_EVT
...
event.
2017-05-26 05:26:15 -04:00
Jiang Jiang Jian
826e96248d
Merge branch 'bugfix/btdm_ble_crash_read_long_char_#12338' into 'master'
...
component/bt: Change the fragement method to avoid crash when the data transmit should fragement.
See merge request !789
2017-05-26 14:40:47 +08:00
Yulong
e40810adbb
compoennt/bt: change the remaining_length compare with the max_packet_size value when the data packet should fragment and dispatch.
2017-05-25 23:09:50 -04:00
Yulong
81ff34742b
component/bt: Change the fragement method to avoid crash when the data transmit should fragement.
2017-05-25 09:59:03 -04:00
Tian Hao
0c6d966bff
component/bt : fix bugs of some constant value not equal internal define but quotes internal define
2017-05-25 16:12:48 +08:00
Yulong
66bb6a2f2b
component/bt: squash the branch of the early commit
...
component/bt: squash the branch of the early commit
component/bt: Added the set static random address callback to the bt project.
component/bt: fixed the set static random address error.
component/bt: fixed the set static random address error.
2017-05-25 02:13:27 -04:00
wangmengyang
cdea87168c
component/bt: bugfix for A2DP in dropping of media packet when data buffer size goes beyond threshold
2017-05-24 15:08:46 +08:00
Jiang Jiang Jian
d8c0b505f6
Merge branch 'bugfix/btdm_gattc_discover_refresh_cache_#11077' into 'master'
...
component/bt: fixed the discover primary service not correct if server changes s…
…ervice during disconnect period.
See merge request !761
2017-05-18 15:04:36 +08:00
Jiang Jiang Jian
b5e2bcbb2c
Merge branch 'bugfix/ble_add_adv_state_bug_#12301' into 'master'
...
component/bt: Fix the bug that sometimes received a ble connection & the adv wil…
…l stop, can not send adv again.
See merge request !759
2017-05-18 15:03:41 +08:00
Yulong
b401bbc4d6
component/bt: change the esp_ble_gattc_cache_refresh API return value from esp_gatt_status_t to esp_err_t.
2017-05-18 02:11:42 -04:00
Yulong
8f1a6989ee
component/bt: Added the declaration for esp_ble_gattc_cache_refresh in the gattc api header file.
2017-05-18 02:07:16 -04:00
Yulong
d13c083397
component/bt:fix the bug of uild error if switch off BLE GATTS. Bug number is #12659 .
2017-05-17 07:17:22 -04:00
Yulong
00cdf62ce7
component/bt: fixed the discover primary service not correct if server changes service during disconnect period.
2017-05-16 09:10:37 -04:00
Yulong
e797cd03f0
component/bt: Fix the bug that sometimes received a ble connection & the adv will stop, can not send adv again.
2017-05-16 03:10:16 -04:00
Jiang Jiang Jian
9a64744850
Merge branch 'bugfix/ble_fix_exception_build_sr_msg_#12124' into 'master'
...
component/bt: fix the exception in attp_buil_sr_msg when handling gatt write bug. bug number #12124 .
fix the exception in attp_buil_sr_msg when handling gatt write bug.
See merge request !743
2017-05-12 15:24:58 +08:00
island
e9dc0115fc
component/bt: Add parameter check for attp_build_sr_msg function
2017-05-12 14:30:33 +08:00
Yulong
84aeb2823a
component/bt: fix the exception in attp_buil_sr_msg when handling gatt write bug. bug number #12124 .
2017-05-09 03:06:29 -04:00
island
da67773b02
component/bt: fix adv stop event bug and add attribute table create
...
error
- Fix bug that advertising stop event produced while calling start_adv function
- Modify gatt server adv data and scan rsp data raw setting
- add create attribute table error msg
- Delete redundant printf in previous commits
2017-05-08 15:44:36 +08:00
Jiang Jiang Jian
65acd99cce
Merge branch 'feature/btdm_gattc_add_API_prepare_write_char_desrc' into 'master'
...
Component/bt:add API to prepare write descriptor for gattc
See merge request !734
2017-05-05 20:34:41 +08:00
zhiweijian
71401bc9b3
Component/bt:add API to prepare write descriptor for gattc
2017-05-05 18:08:47 +08:00
Jiang Jiang Jian
fd079a8bd6
Merge branch 'bugfix/set_scan_bug_rebase_#10399' into 'master'
...
component/bt: component/bt: Check own address and filter policy for validity.
rebase the invalid scan params not report error.
See merge request !736
2017-05-05 17:47:27 +08:00
Yulong
3453824bf2
component/bt: component/bt: Check own address and filter policy for validity.
2017-05-05 04:31:24 -04:00
zhiweijian
fb45ee7a4c
Component/bt: add new cmd for blufi ,ESP32 close a gatt connection
2017-05-04 20:31:58 +08:00
Jiang Jiang Jian
79d9d35414
Merge branch 'bugfix/gattc_not_pro_svc_chg_evt_#12079' into 'master'
...
component/bt:fix the bug with gatt client cant not receive the gatt server service change event.
fix the bug with gatt client cant not receive the gatt server service change event.
See merge request !726
2017-05-04 14:51:42 +08:00
Tian Hao
d648835def
component/bt : fix the comment
2017-05-03 11:58:52 +08:00
Yulong
c0825b35c1
component/bt:fix the bug with gatt client cant not receive the gatt server service change event.
2017-05-02 22:53:48 -04:00
Jiang Jiang Jian
1cef8d8ac1
Merge branch 'bugfix/ble_fix_bluedroid6.0_bug_from_7.1' into 'master'
...
compoent/bt:Fixed the BT/BLE statck bug from bluedroid7.1.1
The bluedroid 7.1.1 has fixed some bug, synchronize to our SDK now.
See merge request !719
2017-05-02 19:38:50 +08:00
Yulong
e8a3f87e4f
component/bt:Fixed the bug for #11754:GATT service should provide command to set char/descriptor read value.
2017-04-28 07:23:52 -04:00
Yulong
834d980e39
compoent/bt:Fixed the BT/BLE statck bug from bluedroid7.1.1
2017-04-28 05:31:57 -04:00
Jiang Jiang Jian
0759897bfb
Merge branch 'bugfix/btdm_gattc_adv_bug' into 'master'
...
component/bt: Fix memory leakage, connection fail bugs
- Fix memory leakage while deregisting gatt app
- Fix Android connection failed problem
- Fix service_uuid_len error in adv data
See merge request !706
2017-04-27 21:13:16 +08:00
Yulong
c31953a005
component/bt:Fixted the bug of HCI comment timeout error.
...
1. remove the SMP_INCLUDED == TRUE insite the btm_find_dev_by_handle function.
2. change the Kconfig with BT_ACL_CONNECTIONS
2017-04-26 04:23:45 -04:00
island
a3717515a2
component/bt: Fix memory leakage, connection fail bugs
...
- Fix memory leakage while deregisting gatt app
- Fix Android connection failed problem
- Fix service_uuid_len error in adv data
2017-04-26 16:07:56 +08:00
Yulong
572e320795
component/bt:change the kconfig.
...
1.change the rowdata to rodata;
2.change BT_ACL_CONNECTIONS to Maximum BT/BLE connection count.
3. change the comments of bt_target.h:505 from 40 to 5.
2017-04-25 22:47:16 -04:00
Yulong
a4d9aadeca
component/bt:Merge the new master to this branch
2017-04-25 08:14:54 -04:00
Yulong
09f69fe9ea
Merge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf
2017-04-25 07:58:24 -04:00
Yulong
5544f98add
component/bt:separate the SMP, GATT module set the macro output the function.
...
1. close classic bt, can save 233k code size;
2. close smp module, can save 136k code size;
3. close gattc module, can save 24k code size;
4. close gatts module, can save 16k code size;
4. close the bluedroid stack log, can save 120k code size.
2017-04-25 04:55:29 -04:00
Yulong
45999b69d6
component/bt: Set the style to the same, output the macro in the function.
...
1.After the separate, can save 15k~25k ram & 240k~460k code size(depending on the menuconfig).
2017-04-24 23:46:37 -04:00
Yulong
2cfde4dfd9
compoent/bt:change the code style
2017-04-23 05:52:18 -04:00
Yulong
1016ab1c2a
component/bt:separate the smp_br_connect_callback from the BLE only mode
2017-04-23 00:48:23 -04:00
Yulong
b5989a6b26
component/bt:Recovery the btm_establish_continue when created the acl connection
2017-04-21 02:43:35 -04:00
Angus Gratton
52c378b447
bluedroid: Fix compilation warnings related to aliasing
...
Merges PR #518 https://github.com/espressif/esp-idf/pull/518
2017-04-21 11:31:40 +10:00
Yulong
bc807a18d1
component/bt:Finish all the separate code from BT & BLE
2017-04-20 07:18:05 -04:00
Yulong
2723504473
add the GATTC_INCLUDED marco to close the bta_gattc module when not used the GATTC
2017-04-19 05:16:24 -04:00
Yulong
0ddadc98a3
separate the btm layer from SMP security
2017-04-19 03:44:01 -04:00
Yulong
65ff8bd160
l2cap can send data to low layer when close the classic bt.
2017-04-18 05:42:55 -04:00
Yulong
22ccf6c368
component/bt:rebase the BT_BLE_separate to the new master
2017-04-17 22:53:43 -04:00
wangmengyang
4f3b391674
component/bt: transfer bluedroid timer events to be handled by BTC task
2017-04-14 18:49:30 +08:00
Yulong
4715fa16ae
change the make error in bta_dm_ble_set_rand_address func
2017-04-14 02:52:43 -04:00
Yulong
cb5c296829
component/bt:move the bugfix/ble_set_rand_addr_bug here for fix the conflict with the master
2017-04-14 02:45:07 -04:00
Yulong
f6f094213e
compoment/bt:Change the tabs to space in btc_ble_storage.c & btc_gap_ble.c file
2017-04-13 23:50:14 -04:00
Yulong
aff8758fe4
delete the debug log in the btc_ble_storage file
2017-04-13 22:40:37 -04:00
Yulong
c6a516f122
component/bt:move the btdm_rebase_ssp_api branch to this branch
2017-04-13 10:14:28 -04:00
Jiang Jiang Jian
6ace4f6fa4
Merge branch 'feature/btdm_avrc' into 'master'
...
Feature/btdm avrc
The source branch "feature/btdm_avrc" includes classic Bluetooth profiles A2DP(sink role) and AVRCP(controller role);
Menuconfig options to control whether to enable classic BT is added.
See merge request !591
2017-04-13 14:36:58 +08:00
wangmengyang
b503d68045
component/bt: implement classic Bluetooth profiles A2DP(sink) and AVRCP(controller)
2017-04-12 16:42:14 +08:00
Jiang Jiang Jian
79173c0f2a
Merge branch 'bugfix/btdm_gatt_memory_leak' into 'master'
...
bt component: Fix memory leak while using gatt server
- fix memory leak while creating attribute table
- fix memory leak while deleting service
See merge request !656
2017-04-12 15:43:32 +08:00
island
f688309b3a
bt component: Fix memory leak while using gatt server
...
- fix memory leak while creating attribute table
- fix memory leak while deleting service
2017-04-12 14:58:45 +08:00
island
941a12cb4e
bt component: Add stop adv/scan completed event
2017-04-12 14:19:16 +08:00
island
a4f3312d9d
bt component: optimize scan feature
...
1. Add advertising data length and scan response length in scan result
2. Add scan continuously feature
3. Fix non connectable adv topology error
4. Increase BTC queue size
2017-04-11 14:20:20 +08:00
wangmengyang
ccfe4fefeb
component/bt: implement classic Bluetooth profiles A2DP(sink) and AVRCP(controller)
2017-04-10 16:12:21 +08:00
Ivan Grokhotkov
85e709705b
Merge branch 'bugfix/btdm_task_priority' into 'master'
...
component/bt : modify bluetooth task priority
modify bluetooth task priority to lower than IPC task priority.
See merge request !631
2017-04-07 14:56:31 +08:00
wangmengyang
b5ea92a26e
component/bt: implement classic Bluetooth profiles A2DP(sink) and AVRCP(controller)
2017-04-06 16:56:18 +08:00
wangmengyang
dbd4e0522e
Merge branch 'master' into feature/btdm_avrc
2017-04-06 14:59:58 +08:00
Tian Hao
e384c7c014
component/bt : modify alarm APIs to be safely accessible from multiple tasks
2017-04-05 17:34:26 +08:00
Tian Hao
ecb75b69fd
component/bt : modify bluetooth task priority
2017-04-01 17:17:57 +08:00
wangmengyang
9d745be3f7
Merge branch 'master' into feature/btdm_avrc
2017-03-31 12:51:45 +08:00
Tian Hao
13f0737883
component/bt : fix blufi bug of sec_mode reset
2017-03-21 17:17:07 +08:00
wangmengyang
2a5d01a930
component/bt: clean up the A2DP sink example
2017-03-18 16:02:54 +08:00
wangmengyang
8ec94418de
component/bt: clean up the API header and generate documentation files
2017-03-18 14:55:31 +08:00
wangmengyang
e132e95476
component/bt: format the new source files
2017-03-17 22:46:49 +08:00
wangmengyang
1cf5a56896
component/bt: move API to set device name that can be used by both bt and ble applications
2017-03-17 19:16:52 +08:00
wangmengyang
66fd3b9768
component/bt: add conditional compilation direvatives to control the source code building of SBC codec
2017-03-17 15:57:30 +08:00
wangmengyang
fda2e89a1e
component/bt: add conditional compilation direvatives to control the source code building of classic bluetooth
2017-03-17 15:08:47 +08:00
wangmengyang
b2f52dd22e
component/bt: add Kconfig option "CLASSIC_BT_ENABLED"
2017-03-16 22:32:27 +08:00
wangmengyang
aaf0cc00c4
component/bt: minor issue fixes for pre-merge
...
1. arrange the order of profile ID enums
2. add directory "external" and move SBC codec source into it
2017-03-16 16:48:39 +08:00
wangmengyang
a96df34d9b
component/bt: recover the BLE buffer size macros
2017-03-14 21:00:58 +08:00
wangmengyang
6cb9985e5d
component/bt: merge the HCI packet reassemble logic modification
2017-03-14 15:34:56 +08:00
wangmengyang
17696bc679
component/bt: resolve the differences with ESP-IDF master branch
2017-03-13 21:28:53 +08:00
wangmengyang
383db0dc81
Merge branch 'master' into feature/btdm_avrc
2017-03-13 16:21:41 +08:00
wangmengyang
d101f2113b
component/bt: code clean up for btc_media_task
...
1. remove unused macros variables and functions
2. modify the implementation of API "esp_a2d_register_data_callback" to post messages to BTC task.
2017-03-13 14:54:02 +08:00
wangmengyang
878b85c421
component/bt: update with bugfix that media task failed.
2017-03-09 20:16:10 +08:00
wangmengyang
5b7b704365
component/bt: format the API headers
2017-03-09 19:03:34 +08:00
island
123b6f88dc
component/bt: modify BLE advertising type error
2017-03-09 15:36:22 +08:00
Ivan Grokhotkov
045aa45731
Merge branch 'bugfix/btdm_gatt_attribute_table_debug' into 'master'
...
bt component: fix bluetooth gatt packets process bugs
1. Add process of prepare write request packets
2. Add process of execute write request packets
3. Add process of reliable write request packets
4. Fix bug of processing read blob request packets
5. Fix bug of processing write request packets
6. Optimize error check and process in stack
See merge request !558
2017-03-09 13:28:11 +08:00
wangmengyang
18814c03d4
component/bt: clean up profile call/callback handlers
...
1. remove the empty function btc_gap_bt_cb_handler();
2. separate the a2dp profile call/callback handers
2017-03-08 21:08:11 +08:00
wangmengyang
07548918df
component/bt: clean up AVRC logic and the header file
2017-03-08 19:25:58 +08:00
island
a74f3f9fd7
bt component: code style update
2017-03-08 17:09:05 +08:00
island
3543d8170c
bt component: update if…else code style
2017-03-08 17:00:56 +08:00
wangmengyang
e6f36f2dc5
component/bt: modify AVRCP APIs to post events and arguments to be handled by BTC task
2017-03-08 13:48:56 +08:00
wangmengyang
af13acdc29
component/bt: modify a2dp APIs to post event to BTC task
2017-03-07 21:15:54 +08:00
island
5ffe5474ac
bt component: optimize gatt debug information
2017-03-07 19:55:21 +08:00
wangmengyang
cfb18ba537
component/bt: fix some typos and comments
2017-03-07 15:33:05 +08:00
wangmengyang
3acd445f94
component/bt: transport the following modules: btif_config, btif_storage, btif_util
2017-03-07 15:09:52 +08:00
wangmengyang
c23b66b1de
component/bt: transport bta_av_co.c
2017-03-07 14:21:26 +08:00
Ivan Grokhotkov
32d5985ad2
Merge branch 'bugfix/btdm_host_init_flow' into 'master'
...
add extra check before bluedroid init and disable
add extra check before bluedroid init and disable to avoid the mixed call cause unexpected errors.
See merge request !553
2017-03-07 14:17:05 +08:00
wangmengyang
870389b3ba
component/bt: optimize stack size of Bluetooth Tasks and make them be configurable according to the CONFIG_NEWLIB_NANO_FORMAT option
2017-03-06 23:09:42 +08:00
island
2955b20f2e
bt component: fix bluetooth gatt packets process bugs
...
1. Add process of prepare write request packets
2. Add process of execute write request packets
3. Add process of reliable write request packets
4. Fix bug of processing read blob request packets
5. Fix bug of processing write request packets
6. Optimize error check and process in stack
2017-03-06 17:20:45 +08:00
Tian Hao
bc020da4f5
add extra check before bluedroid init and disable
2017-03-03 18:42:27 +08:00
Derek Gregory
a4a790030d
component/bt: fix bug where uuid was not reset in btc_gatts_act_create_attr_tab.
...
Merges #307 https://github.com/espressif/esp-idf/pull/307
2017-03-03 14:59:15 +11:00
lucashutchinson
8ce94d5bd3
ble: Fix ble_adv data truncation
...
Fixed issue with ble_adv data being truncated after the 31st octet due to an incorrect length passed in a memcpy.
Merges #389 https://github.com/espressif/esp-idf/pull/389
2017-03-03 14:59:15 +11:00
wangmengyang
b0e99a56cb
component/bt: modify headers btif_av_api.h, btif_av_co.h
2017-03-02 16:08:24 +08:00
wangmengyang
8c84bcba72
component/bt: transport btif_media_task, btif_avrc
2017-03-02 11:47:59 +08:00
wangmengyang
e8464e0f61
component/bt: transport btif_sm module
2017-03-01 17:37:39 +08:00
wangmengyang
79ed36495b
component/bt: transplant btif_rc module and program works.
2017-03-01 16:18:08 +08:00
wangmengyang
b74eb56710
component/bt: transport btif_avk module
2017-03-01 13:49:26 +08:00
wangmengyang
a25cb988bb
component/bt: transport btif_profile_queue.c/h to btc_profile_queue.c/h
2017-02-28 17:06:11 +08:00
wangmengyang
acab9e7ae4
fix btc_dm.c/h and replace the functions which are originally in btif_core.c and btif_dm.c
2017-02-28 15:43:02 +08:00
wangmengyang
8f65322a84
component/bt: modify the enable/disable function
2017-02-28 11:47:04 +08:00
wangmengyang
667ac172df
component/bt: modify the init/deinit function
2017-02-24 20:39:41 +08:00
wangmengyang
c7dac035ae
component/bt: add module btc_gap_bt and port function esp_bt_gap_set_scan_mode
2017-02-24 17:28:33 +08:00
Jiang Jiang Jian
63e0140ae6
Merge branch 'bugfix/btdm_adv_scan_enable_report' into 'master'
...
component/bt : add adv/scan start complete event
1. indicate adv/scan start complete success or failed
2. controller do limit of adv/scan concurrence, so add some codes to report adv/scan start failed or not.
See merge request !524
2017-02-24 16:24:22 +08:00
Ivan Grokhotkov
708539c559
Merge branch 'bugfix/btdm_gatts_write_desc_error' into 'master'
...
component/bt:fixed the write ccc crash bug error
fix the gatt server write ccc lead to the system crash if not initialize the ccc value.
See merge request !515
2017-02-24 15:11:18 +08:00
Tian Hao
b582697889
component/bt : add adv/scan start complete event
...
1. indicate adv/scan start complete success or failed
2. controller do limit of adv/scan concurrence, so add some codes to report adv/scan start failed or not.
2017-02-23 17:54:22 +08:00
wangmengyang
41070f6768
Merge branch 'master' into feature/btdm_avrc
...
1. merge master into feature/btdm_avrc
2. add call of esp_bt_controller_enable() in app_main
2017-02-23 15:10:25 +08:00
wangmengyang
118131109e
component/bt: modification to a2dp API to support reconnection
...
1. add API esp_a2d_sink_connect() to initiate connection to other devices;
2. modify lower layers to transfer the disconnection reason upwards
2017-02-23 14:30:08 +08:00
wangmengyang
80cdfc9e0a
componentbt: work around the crashing issue after a2dp is connected to Android Phone but before audio stream starts to play
...
The root cause is the bug in bluetooth controller, in which the HCI_SNIFF_MODE command is sent to controller and at the same time the controller has received same request from remote device.
For now change the time-out period of local device to enter the SNIFF mode.
2017-02-23 11:59:47 +08:00
wangmengyang
1d98c9849e
component/bt: remove the A2DP decoding timer and instead trigger decoding directly upon data arrival
2017-02-23 11:56:38 +08:00
Tian Hao
12a7293b31
component/bt : add bluetooth status check
...
1. add bluetooth controller/host initialize status check
2. separate bluetooth controller task schedule loop from controller init
2017-02-21 01:05:37 +08:00
Yulong
abf87b000d
component/bt:fixed the write ccc crash bug error
2017-02-20 08:50:02 -05:00
Tian Hao
4bd5b0c91a
component/bt : add bt enable/disable for power save
...
1. add new APIs bt controller enable/disab/deinit
2. make bt controller work need to call two APIs of esp_bt_controller_init and enable
3. modify phy init to make mac reset once
2017-02-17 19:24:58 +08:00
XiaXiaotian
cd13c9e95d
disable phy and rf
...
1. add a macro in menuconfig for users to choose whether store phy calibration data into NVS or not.
2. rename some disable phy and rf APIs so that existing code which calls old APIS will fail to compile.
2017-02-17 10:24:55 +08:00
XiaXiaotian
eb14284c92
disable PHY and RF when stop WiFi and disable BT
...
1. Add disable PHY and RF when WiFi and BT are both disabled(including call sniffer disable API).
2. Do not init PHY and RF when cpu start. Init PHY and RF when call Wifi or BT start APIs(including sniffer enable API).
3. Add a temporary lib: librtc_clk.a and will delete it when CPU frequency switching function is done.
4. Add an function to get OS tick rate.
5. Do not put the whole pp.a in iram0, only put lmac.o, ieee80211_misc.o, ets_time.o and wdev.o in iram0.
2017-02-17 10:24:54 +08:00
Jiang Jiang Jian
61c7bd3c3a
Merge branch 'bugfix/btdm_gatt' into 'master'
...
component/bt : fix gatt write memory leak
fix bug of GATT write cause memory leak
See merge request !506
2017-02-16 15:13:05 +08:00
Tian Hao
6648ff427c
component/bt : fix connection bug of Iphone7 10.0.2
...
This connection error caused by iPhone, it think that TX data length must large than 27 when slave support EXTEND_DATA_LENGTH. But this should be allow. Besides, the problem cannot be found on higher version of Iphone7, apple seemed to have fixed it.
Actually maybe other BLE device have the same problem.
2017-02-16 14:15:46 +08:00
Tian Hao
5023e30a33
component/bt : fix gatt write memory leak
2017-02-15 20:08:39 +08:00
Jiang Jiang Jian
2664291ba5
Merge branch 'bugfix/btdm_blufi' into 'master'
...
fix BLUFI bug
fix BLUFI bug with small MTU size
See merge request !493
2017-02-13 14:52:46 +08:00
Tian Hao
5fd7bd14db
component/bt : fix GATT disconnect memory leak bug
2017-02-13 14:00:26 +08:00
Tian Hao
2c334b46e0
component/bt : fix BLUFI bug with small MTU size
2017-02-10 11:20:34 +08:00
Ivan Grokhotkov
8e467801bc
Merge branch 'bugfix/btdm_debug_gatt_attr_table' into 'master'
...
component/bt: Fix Gatt table read_req bug and advertising channel 39 not available bug
1. Fix Gatt table read request bug
2. Fix advertising channel 39 not available bug
See merge request !463
2017-01-25 11:48:09 +08:00
Island
c6bb239f0c
component/bt: Fix Gatt table read_req bug and advertising channel 39 not available bug
2017-01-25 11:18:26 +08:00
wangmengyang
2c87e84b0a
component/bt: bluetooth storage module clean up and bug fix.
...
1. clean up bluetooth storage log prints;
2. reduce maximum link key storage size
3. modify so that the link key information of the latest connected device is stored at first
2017-01-20 16:46:10 +08:00
Angus Gratton
0b257cfcef
bt: esp_ble_gatts_send_indicate: Fix description
2017-01-20 14:56:54 +11:00
Tian Hao
0073ff3acd
component/bt : add api to set raw adv_data/scan_rsp_data
...
1. add api to set raw scan response data
2. add api to set raw scan response data
3. update doxygen
4. add menuconfig to config gatt server demo
2017-01-19 17:36:40 +08:00
wangmengyang
0f711963d7
component/bt: implement non-volatile memory access module for link key storage
...
1. btif_storage module is ported
2. update controller library that moves functions called in ISRs to IRAM
2017-01-19 17:11:01 +08:00
wangmengyang
36a74daa0a
component/bt: clean up AVRCP API and example code
2017-01-19 15:23:46 +08:00
Tian Hao
5508826509
component/bt : fix gatts demo mistakes & unpeg notify bug
2017-01-17 20:13:25 +08:00
Tian Hao
799be9fa3a
component/bt : fix gatt server table bugs
...
1. fix gatt server table bugs
2. fix blufi a minor bug
2017-01-17 18:42:11 +08:00
wangmengyang
49b68c38fa
Merge branch 'master' into feature/btdm_avrc
...
# Conflicts:
# components/bt/bluedroid/hci/packet_fragmenter.c
# components/bt/bluedroid/stack/include/gatt_api.h
2017-01-17 10:36:26 +08:00
Wu Jian Gang
9052c6e9ee
Merge branch 'bugfix/btdm_adv_stop' into 'master'
...
component/bt : fix adv stop bug
fix advertising cannot stop bug.
See merge request !412
2017-01-12 17:32:09 +08:00
Wu Jian Gang
ad1790fe3e
Merge branch 'feature/btdm_attr_table' into 'master'
...
component bt:Added the create attribute table method to the new API
GATT Server service table APIs.
Have already modify the style and other things as @jeroen suggestion in other MR(the MR have been closed)
See merge request !399
2017-01-12 17:31:39 +08:00
Tian Hao
1895460406
component/bt : fix adv stop bug
2017-01-12 16:29:07 +08:00
Tian Hao
fec2f534d5
component/bt : gatt server table fix uuid discovery bug
2017-01-12 16:25:09 +08:00
Tian Hao
142756615b
component/bt : mv demo name
...
1. mv demo name
2. fix a docs
2017-01-12 14:44:26 +08:00
Island
9f151d745e
component/bt : Optimize Gatt attr table and fix some bugs
...
1. Optimize GATT attribute table structure
2. fix read/write bugs
3. add docs
2017-01-12 11:49:15 +08:00
Tian Hao
1eed54c7cd
component/bt : modify bluedroid task to core0
2017-01-11 17:19:25 +08:00
Yulong
d512d6100c
component bt:Added the create attribute table method to the new API
2017-01-11 16:57:19 +08:00
Jiang Jiang Jian
0c01ef68f1
Merge branch 'bugfix/id9562_unregistered_callback' into 'master'
...
component/bt: check for registration status of callback function before using it
Add checking of NULL function pointers when calling bluetooth callbacks, especially before the callback functions are registered
See merge request !406
2017-01-11 15:57:03 +08:00
wangmengyang
babeed4170
component/bt: change MACRO to inline function when invoking callbacks
2017-01-11 14:08:16 +08:00