Jiang Jiang Jian
3452845063
Merge branch 'bugfix/btdm_avrc_connect_state_evt' into 'master'
...
Bugfix/btdm avrc connect state evt
See merge request !1717
2018-01-09 19:33:06 +08:00
wangmengyang
e07b43e924
component/bt: add AVRC event for remote features indication
...
1. remove the feature mask parameter from AVRC connection state event, as the AVCTP connection can be initiated by remote device before service discovery to remote device is performed. \
In this case, AVRCP connection state event may not be reported after connection initated by remote device is established.
2. remove ESP_AVRC_CT_MAX_EVT
3. add more documentations to AVRC APIs
2018-01-09 16:33:48 +08:00
Jiang Jiang Jian
c147d7b03e
Merge branch 'feature/btdm_bt_spp' into 'master'
...
component/bt: Add bt spp profile
See merge request !1593
2018-01-09 10:44:46 +08:00
Jiang Jiang Jian
a1b59679f9
Merge branch 'bugfix/btdm_standardize_code' into 'master'
...
component/bt: Standardize code
See merge request !1696
2018-01-05 18:56:08 +08:00
baohongde
d2663c866e
component/bt: Add SPP profile
2018-01-05 16:48:29 +08:00
baohongde
2530e0aeb9
component/bt: Standardize code
...
Reported from github:
https://github.com/espressif/esp-idf/issues/1402
https://github.com/espressif/esp-idf/issues/1403
2018-01-03 10:31:30 +08:00
Jiang Jiang Jian
7d0d2854d3
Merge branch 'bugfix/btdm_error_when_white_list_is_full' into 'master'
...
component/bt: Fix bug of adding device to white list has no callback when while list is full
See merge request !1689
2017-12-27 18:03:38 +08:00
Jiang Jiang Jian
d31b654f3f
Merge branch 'bugfix/btdm_fix_memory_leak_for_SMP' into 'master'
...
component/bt: fix memory leak in SMP
See merge request !1690
2017-12-27 11:43:18 +08:00
baohongde
f5f8dda8a2
component/bt: Fix bug of adding device to white list has no callback when while list is full
2017-12-25 17:45:12 +08:00
Jiang Jiang Jian
a567de1576
Merge branch 'feature/btdm_classic_discovery' into 'master'
...
component/bt: implement Classic Bluetooth GAP APIs for device and service discovery
See merge request !1576
2017-12-20 13:30:31 +08:00
zhiweijian
763406b4cc
Component/bt: fix memory leak in SMP
2017-12-20 10:30:31 +08:00
Yulong
967ff895e7
component/bt: Optimized broadcast callback function, send the callback function to the application after the controller confirms receipt of the broadcast start.
...
1. optimiz the ble stop adv callback function.
2. added the osi_mutex_unlock in the bta_gattc_wait4_service_change_ccc_cback function when the p_timer_param == NULL || p_conn == NULL.
2017-12-15 18:16:23 +08:00
wangmengyang
c23af0b5bb
component/bt: implement Classic Bluetooth GAP APIs for device and service discovery
2017-12-06 10:52:06 +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
Yulong
b07a5f03cf
component/bt: Change the gattc prepare write callback params.
2017-11-14 07:00:45 -05:00
Yulong
1d13b58c62
component/bt: Added the queue event when the gattc command is full.
2017-11-13 22:44:27 -05:00
Yulong
e6b2c19eea
component/bt: Fix the write value not store in the queue command bug.
2017-11-09 14:47:11 +08: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
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
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
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
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
zhiweijian
c75da555af
Component/bt: fix set scan params and start scan action
2017-09-30 17:01:57 +08: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
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
baohongde
b59708ca87
component/bt: Fix bug of function btc_ble_set_rand_addr
2017-09-29 11:46:08 +08: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
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
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
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
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
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
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
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
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
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
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
zhiweijian
fc05851b05
Component/bt: add set local privacy func callback
2017-07-26 17:29:10 +08:00
zhiweijian
ad8cce3053
Component/bt: fix bug for error length unit
2017-07-04 10:57:36 +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
zhiweijian
eec989f026
Component /bt: modify some log infor
2017-06-21 10:54:51 +08: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
Yulong
6ffa30a408
component/bt: Change the return position in the btc_gatts_inter_cb function.
2017-06-14 23:40:25 -04:00
Tian Hao
7cf5eea36f
component/bt : fix blufi second init fail bug
2017-06-15 11:05:21 +08: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
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
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
Tian Hao
063dccd6c0
component/bt : fix uuid convert warning
2017-06-13 20:21:59 +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
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
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
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
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
Yulong
a42bf640bc
component/bt: Change the duration type from UINT8 to UINT32
2017-06-03 01:00:10 -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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Tian Hao
2c334b46e0
component/bt : fix BLUFI bug with small MTU size
2017-02-10 11:20:34 +08: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
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
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
fec2f534d5
component/bt : gatt server table fix uuid discovery bug
2017-01-12 16:25:09 +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
wangmengyang
0c31bdf643
component/bt: check for registration status of callback function before using it
2017-01-11 11:31:35 +08:00
wangmengyang
59540eeae1
component/bt: bug fix of lack of checking bluetooth stack status inside API functions
2017-01-11 11:04:41 +08:00
Tian Hao
e4b9563dac
component/bt : blufi add version
2017-01-06 17:40:46 +08:00
Tian Hao
24af07fd13
component/bt : new blufi
...
1. new blufi protocol
2. new blufi demo
3. support security
4. support sta/ap/sta_ap
5. support wpa-enterprise
2017-01-05 20:22:35 +08:00
Tian Hao
daf58e3852
component/bt : fix advertising bug
...
1. adv data flag
2. default adv data not BR/EDR in demo
2017-01-05 17:53:33 +08:00
Tian Hao
ee318d42ae
Merge branch 'master' into feature/btdm_gatt_api
2017-01-05 15:25:03 +08:00
Angus Gratton
06e03ff52e
Replace backwards-compatible portTICK_RATE_MS with FreeRTOS v8+ portTICK_PERIOD_MS
...
Closes github #51 https://github.com/espressif/esp-idf/issues/51
2016-12-28 10:23:13 +11:00
wangmengyang
c94e0177c2
component/bt: Merge branch 'master' into feature/btdm_a2dp
2016-12-26 20:35:28 +08:00
wangmengyang
6163d214b3
component/bt: API clean up for the A2DP example
2016-12-26 17:26:54 +08:00
Tian Hao
65fe6ab320
component/bt : modify demo for new api
...
1. modify GATT Client demo
2. modify GATT Server demo
3. fix a register notify bug
2016-12-19 17:15:41 +08:00
Tian Hao
c01dedcb06
component/bt : change api for V2.0
...
1. change all gatt cb function to 3 args and function type. add gattc_if/gatts_if as second argument
2. delete gatt_if of "gatt cb param"
3. separate conn_id and gatt_if from conn_id
4. change the demo code as the gatt changed
2016-12-19 17:15:41 +08:00
Tian Hao
d242251295
component/bt : fix advertising bug
...
1. low duty can not be set bug
2. adv type can not be effective bug
2016-12-15 14:33:09 +08:00
Tian Hao
8185b0f806
component/bt : fix bug of bdaddr point to resolve gattc recv notify
2016-12-09 14:38:21 +08:00
Tian Hao
5933ebc6b6
component/bt : cleanup all the "-W-no-xx" and all the warnings
...
1. cleanup the warnings.
2. fix the some function called in gap
3. fix some code in btc_main
2016-12-07 13:49:53 -08:00
wangmengyang
11ddfbba4e
Merge branch 'feature/btdm_bluedroid' into feature/btdm_a2dp
...
# Conflicts:
# examples/13_bt_sdp/components/bluedroid_demos/btif/btif_core.c
# examples/13_bt_sdp/components/bluedroid_demos/include/btif_util.h
2016-12-02 22:33:09 +08:00
Tian Hao
954ffa102f
component/bt : add ble event type
2016-12-01 20:16:09 +08:00
Tian Hao
758a9e5f06
component/bt : fix compile error
2016-11-29 19:45:10 +08:00
Tian Hao
9f33d8f5c0
component/bt : add write type
2016-11-29 17:27:12 +08:00
Tian Hao
06e2a1d4e1
component/bt : cleanup a macro
2016-11-29 14:38:58 +08:00
Tian Hao
9d9e758756
component/bt : add comment for doxygen
...
1. use doxygen check api comment
2016-11-28 21:59:04 +08:00
wangmengyang
50227f12fd
Merge branch 'feature/btdm_bluedroid' into feature/btdm_a2dp
...
# Conflicts:
# components/bt/bluedroid/bta/include/bta_api.h
# components/bt/bluedroid/bta/include/bta_gattc_int.h
# components/bt/bluedroid/hci/hci_hal_h4.c
# components/bt/bluedroid/hci/hci_layer.c
# components/bt/bluedroid/include/bt_target.h
# components/bt/bluedroid/stack/btu/btu_init.c
2016-11-28 18:06:24 +08:00
Tian Hao
ff8ce12787
component/bt : cleanup the spell && redundant
2016-11-28 14:58:30 +08:00
Tian Hao
1173106a20
component/bt : change task to decease dram(heap)
...
1. decrease the task size(HCI cannot < 1024, btu cannot < 4096)
2. btc task can config by menuconfig(default 2048)
2016-11-25 23:37:46 +08:00
wangmengyang
73f00732cf
Merge branch 'feature/btdm_bluedroid' into feature/btdm_a2dp
...
# Conflicts:
# components/bt/bluedroid/bta/sys/bta_sys_main.c
# components/bt/bluedroid/btc/profile/std/avrc/avrc_api.c
# components/bt/bluedroid/btc/profile/std/avrc/avrc_bld_ct.c
# components/bt/bluedroid/btc/profile/std/avrc/avrc_bld_tg.c
# components/bt/bluedroid/btc/profile/std/avrc/avrc_opt.c
# components/bt/bluedroid/btc/profile/std/avrc/avrc_pars_ct.c
# components/bt/bluedroid/btc/profile/std/avrc/avrc_pars_tg.c
# components/bt/bluedroid/btc/profile/std/avrc/avrc_sdp.c
# components/bt/bluedroid/btc/profile/std/avrc/avrc_utils.c
# components/bt/bluedroid/btc/profile/std/avrc/include/avrc_int.h
# components/bt/bluedroid/btc/profile/std/include/avct_api.h
# components/bt/bluedroid/btc/profile/std/include/avdt_api.h
# components/bt/bluedroid/btc/profile/std/include/avdt_defs.h
# components/bt/bluedroid/btc/profile/std/include/avdtc_api.h
# components/bt/bluedroid/btc/profile/std/include/avrc_api.h
# components/bt/bluedroid/btc/profile/std/include/avrc_defs.h
# components/bt/bluedroid/gki/gki_buffer.c
# components/bt/bluedroid/hci/hci_hal_h4.c
# components/bt/bluedroid/hci/hci_layer.c
# components/bt/bluedroid/hci/packet_fragmenter.c
# components/bt/bluedroid/include/bt_trace.h
# components/bt/bluedroid/osi/alarm.c
# components/bt/bluedroid/profiles/std/avrc/avrc_api.c
# components/bt/bluedroid/profiles/std/avrc/avrc_bld_ct.c
# components/bt/bluedroid/profiles/std/avrc/avrc_bld_tg.c
# components/bt/bluedroid/profiles/std/avrc/avrc_opt.c
# components/bt/bluedroid/profiles/std/avrc/avrc_pars_ct.c
# components/bt/bluedroid/profiles/std/avrc/avrc_pars_tg.c
# components/bt/bluedroid/profiles/std/avrc/avrc_sdp.c
# components/bt/bluedroid/profiles/std/avrc/avrc_utils.c
# components/bt/bluedroid/profiles/std/avrc/include/avrc_int.h
# components/bt/bluedroid/profiles/std/include/avct_api.h
# components/bt/bluedroid/profiles/std/include/avdt_api.h
# components/bt/bluedroid/profiles/std/include/avdt_defs.h
# components/bt/bluedroid/profiles/std/include/avdtc_api.h
# components/bt/bluedroid/profiles/std/include/avrc_api.h
# components/bt/bluedroid/profiles/std/include/avrc_defs.h
# components/bt/bluedroid/stack/avdt/include/avdt_defs.h
# components/bt/bluedroid/stack/avrc/avrc_api.c
# components/bt/bluedroid/stack/avrc/avrc_bld_ct.c
# components/bt/bluedroid/stack/avrc/avrc_bld_tg.c
# components/bt/bluedroid/stack/avrc/avrc_opt.c
# components/bt/bluedroid/stack/avrc/avrc_pars_ct.c
# components/bt/bluedroid/stack/avrc/avrc_pars_tg.c
# components/bt/bluedroid/stack/avrc/avrc_sdp.c
# components/bt/bluedroid/stack/avrc/avrc_utils.c
# components/bt/bluedroid/stack/avrc/include/avrc_int.h
# components/bt/bluedroid/stack/btu/btu_task.c
# components/bt/bluedroid/stack/include/avct_api.h
# components/bt/bluedroid/stack/include/avdt_api.h
# components/bt/bluedroid/stack/include/avdtc_api.h
# components/bt/bluedroid/stack/include/avrc_api.h
# components/bt/bluedroid/stack/include/avrc_defs.h
# components/bt/bluedroid/stack/include/gatt_api.h
# components/bt/bluedroid/stack/l2cap/l2c_main.c
# components/bt/component.mk
# examples/06_bluedroid_demos/components/bluedroid_demos/app_core/bt_app_core.c
2016-11-25 19:45:29 +08:00
Tian Hao
19273c7b2d
component/bt : run astyle handle the code files
2016-11-25 02:10:15 +08:00
Tian Hao
d7eb709a9c
component/bt : add license header
2016-11-25 01:58:26 +08:00
Tian Hao
e5ceddabac
component/bt : change gatt client callback param
...
1. change the array to point to decrease the memory occupy
2. change the sendindconfirm position
3. fix union lost
2016-11-24 15:17:49 +08:00
Tian Hao
225e31b6de
component/bt : change gatt client arg to union
...
1. decrease the args memory occupy
2. change some macro name
2016-11-23 21:27:05 +08:00
Tian Hao
85aac3afa6
component/bt : decrease callback cb param size
...
1. decrease callback cb param size
2. add write in gatt server demo
2016-11-23 15:34:21 +08:00
Tian Hao
9ec0fea8e1
component/bt : gatt arg use union
...
1. union is 28 bytes for each btc task msg arg
2. as gap, individual arg(not use union) is the best mem occupy.
2016-11-23 13:45:21 +08:00
Tian Hao
6cae05d058
component/bt : change gap btc args to union
...
1. change gap btc args to union to decrease the dram occupied by btc args
2. actually use individual args for every action is the best way(decrease the dram occupy), but for writing code easily and the style, use union
3. gatt server/client should do the same work
2016-11-22 21:50:26 +08:00
Tian Hao
db007fbb2e
component/bt : clean up the demos
...
1. cleanup gatt client demo
2. cleanup gatt server demo
3. cleanup blufi demo
4. use correct log level
2016-11-22 20:32:45 +08:00
Tian Hao
595bd2e3c4
component/bt : gatt client fix search service bug
...
1. fix search service bug
2. delete some print
2016-11-22 17:26:30 +08:00
Tian Hao
3b432735c6
component/bt : fix advertising data and refer bug
2016-11-21 22:38:00 +08:00
Tian Hao
4ed6404e9f
Merge remote-tracking branch 'remotes/origin/feature/btdm_arch_debug1' into feature/btdm_arch
...
# Conflicts:
# components/bt/bluedroid/api/include/esp_gatt_defs.h
# components/bt/bluedroid/btc/profile/std/gap/btc_gap_ble.c
2016-11-21 14:50:51 +08:00
Tian Hao
bf20b958a9
component/bt : fix rsp convert
2016-11-21 12:11:47 +08:00
Yulong
1561c02ba9
component bt:Add stop scan API to the esp_gap_ble API module
2016-11-19 09:56:36 -05:00
Yulong
a76b65ed95
compnent bt:debug the btc_gattc received data error issues.
2016-11-19 08:00:08 -05:00
Tian Hao
0245a2028c
component/bt : gatts fix
...
1. gatt server demo
2. gatt server fix bug(bta btc covert bug)
3. fix print lost
2016-11-18 22:10:35 +08:00
Yulong
3edcd29a83
compoent bt:debug the btc_gap_ble module, fix the adv len not long fix
2016-11-18 05:00:47 -05:00
Yulong
2f7288ff03
component bt:debug the scan result and add the resove adv data method to the gapapi
2016-11-18 03:43:51 -05:00
Tian Hao
37365cef95
component/bt : gatt server
...
1.add gatt server demo for user
2. some function didn't be tested
2016-11-18 00:30:35 +08:00