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
Tian Hao
bd309731da
component/bt : fix bug of task schedule delayed.
...
1. BLE RX test mode require quick task reaction, so allow higher priority task schedule from ISR.
2. Maybe other scenario also require this.
2017-06-07 14:58:17 +08:00
Jiang Jiang Jian
99d5959d8a
Merge branch 'bugfix/btdm_library' into 'master'
...
component/bt : revert the bluetooth library
See merge request !827
2017-06-07 14:17:33 +08:00
Tian Hao
460c37ddf6
component/bt : revert the bluetooth library
...
bluetooth library use a old one, so update to the newest.
2017-06-07 13:52:28 +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
wangmengyang
25b07ed79a
component/bt: bugfix for handling HCI_Host_Number_Of_Completed_Packets in BT controller
2017-05-19 17:36:02 +08:00
wangmengyang
df3164bd58
component/bt: disable information loggings from bt controller
2017-05-18 21:44:06 +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
Jiang Jiang Jian
46519a019c
Merge branch 'bugfix/btdm_switch_gatts_error_#12659' into 'master'
...
component/bt:fix the bug of uild error if switch off BLE GATTS. Bug number is #12659 .
switch off BLE GATTS and build.
See merge request !766
2017-05-18 14:58:24 +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
Tian Hao
3d22f1ee2f
component/esp32 : fix library sport access protections.
...
1. add esp32 library access DPORT register protections.
2. add bluetooth library access DPORT register protections.
3. change register operation(suffix/prefix) to new style.
2017-05-13 19:55:11 +08:00
wangmengyang
23965694b1
components/bt: update libbtdm.a with a bugfix for an assertion failure when ACL-U transmission is resumed
2017-05-12 17:53:25 +08: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
Jiang Jiang Jian
a7847dbec9
Merge branch 'bugfix/bt_sniff_mode' into 'master'
...
component/bt: fix some bugs related to bluetooth sniff mode in controller
1. fix some bugs in bluetooth sniff mode in controller
2. export some symbols to esp32.rom.ld including functions and global variables in ROM code
3. update libbtdm.a which includes "IRAM_ATTR" addition or removal for some functions
See merge request !729
2017-05-05 16:27:37 +08:00
zhiweijian
fb45ee7a4c
Component/bt: add new cmd for blufi ,ESP32 close a gatt connection
2017-05-04 20:31:58 +08:00
wangmengyang
244fbf1e84
component/bt: fix some bugs related to bluetooth sniff mode in controller
...
1. fix some bugs in bluetooth sniff mode in controller
2. export some symbols to esp32.rom.ld including functions and global variables in ROM code
3. update libbtdm.a which includes "IRAM_ATTR" addition or removal for some functions
2017-05-04 15:08:07 +08:00
Jiang Jiang Jian
8f9707fd07
Merge branch 'feature/btdm_vhci_intnum' into 'master'
...
change VHCI interrupt type to software interrupt
component/bt : change VHCI interrupt type to software interrupt(int no 7)
See merge request !717
2017-05-04 14:58:32 +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
Tian Hao
5c0d0d4854
component/bt : change VHCI interrupt type to software interrupt(int no 7)
2017-04-28 17:20:06 +08: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
54aaeacb32
component/bt:Change the bt Kconfig BT_ACL_CONNECTIONS type from choice to int(range).
2017-04-26 05:27:21 -04: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
891257b4dd
component/bt:Change the bt Kconfig BT_ACL_CONNECTIONS from int to choice.
2017-04-26 02:28:34 -04: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
Ivan Grokhotkov
42d819e796
Merge branch 'feature/btdm_uart_hci' into 'master'
...
Feature/btdm uart hci
1. support UART HCI, devolper need not to make a bridge between VHCI and UART.
2. fix bug of rand/srand called in ISR.
3. fix bug of BLE rx packets may cause assert.
See merge request !626
2017-04-07 12:13:42 +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
d90a35af19
component/bt : modify bluetooth config style
2017-04-06 11:35:53 +08:00
Tian Hao
95d691afdb
component/bt : support UART HCI and fix some bugs
...
1. support UART HCI, devolper need not to make a bridge between VHCI and UART.
2. fix bug of rand/srand called in ISR.
3. fix bug of BLE rx packets may cause assert.
2017-04-05 21:23:43 +08:00
Tian Hao
f5ebeb4c4d
component/bt : add uart(1/2) as HCI IO directly
2017-04-05 21:23:42 +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