-
Notifications
You must be signed in to change notification settings - Fork 804
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/add_ble_hci' into 'master'
feat(ble): support ble hci components See merge request ae_group/esp-iot-solution!1036
- Loading branch information
Showing
24 changed files
with
1,516 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ChangeLog | ||
|
||
## v1.0.0 - 2024-5-30 | ||
|
||
First release version. | ||
|
||
- Support ble hci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
idf_component_register(SRCS "bt_hci_common.c" "ble_hci.c" | ||
INCLUDE_DIRS "include" | ||
PRIV_INCLUDE_DIRS "priv_include" | ||
REQUIRES bt | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# BLE HCI Component | ||
[中文版](./README_CN.md) | ||
|
||
[![Component Registry](https://components.espressif.com/components/espressif/ble_hci/badge.svg)](https://components.espressif.com/components/espressif/ble_hci) | ||
|
||
- [User Guide](https://docs.espressif.com/projects/esp-iot-solution/en/latest/bluetooth/ble_hci.html) | ||
|
||
The ``ble_hci`` is used to operate the BLE Controller directly through the VHCI interface to realize broadcasting, scanning and other functions. | ||
|
||
Compared to initiating broadcasts and scans through the Nimble or Bluedroid stacks, using this component has the following advantages: | ||
- Smaller memory footprint | ||
- Smaller firmware size | ||
- Faster initialization process | ||
|
||
## List of supported commands | ||
|
||
- Send broadcast packets | ||
- Scan broadcast packets | ||
- Add/Remove whitelist | ||
- Set local address | ||
|
||
## Adding the component to your project | ||
|
||
To add the `ble_hci` to your project's dependencies, please use the command `idf.py add-dependency`. During the `CMake` step, the component will be downloaded automatically. | ||
|
||
``` | ||
idf.py add-dependency "espressif/ble_hci=*" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# BLE HCI 组件 | ||
|
||
[![Component Registry](https://components.espressif.com/components/espressif/ble_hci/badge.svg)](https://components.espressif.com/components/espressif/ble_hci) | ||
|
||
- [User Guide](https://docs.espressif.com/projects/esp-iot-solution/zh_CN/latest/bluetooth/ble_hci.html) | ||
|
||
BLE HCI 组件用于通过 VHCI 接口直接操作 BLE Controller 实现广播,扫描等功能。 | ||
相比于通过 Nimble 或 Bluedroid 协议栈发起广播和扫描,使用该组件有如下优点: | ||
- 更少的内存占用 | ||
- 更小的固件尺寸 | ||
- 更快的初始化流程 | ||
|
||
## 支持指令列表 | ||
- 发送广播包 | ||
- 扫描广播包 | ||
- 白名单 | ||
- 设置本地地址 |
Oops, something went wrong.