-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from supperthomas/newmaster
add the readme
- Loading branch information
Showing
3 changed files
with
39 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# RT-Thread_BTstack | ||
|
||
## 1. 介绍 | ||
## 介绍 | ||
|
||
BTstack 软件包是RT-Thread 基于 [btstack](https://github.com/bluekitchen/btstack) 开源蓝牙协议栈的适配,该协议栈支持多种蓝牙卡片,非常适合用于小型嵌入式蓝牙设备,支持几乎所有的主流的蓝牙卡片,支持无RTOS操作。 | ||
|
||
## 2. 主要支持的Profile和Protocol | ||
## 主要支持的Profile和Protocol | ||
|
||
**Protocols:** L2CAP (incl. LE Data Channels), RFCOMM, SDP, BNEP, AVDTP, AVCTP, ATT, SM (incl. LE Secure Connections). | ||
|
||
|
@@ -14,15 +14,15 @@ BTstack 软件包是RT-Thread 基于 [btstack](https://github.com/bluekitchen/bt | |
|
||
GATT Services are in general easy to implement and require short development time. For more GATT Services please contact us, or follow the [implementation guidelines](https://bluekitchen-gmbh.com/btstack/profiles/#gatt-generic-attribute-profile). | ||
|
||
### 3. 许可声明 | ||
### 许可声明 | ||
|
||
BTstack 非商业用途是免费的。但是,对于商业用途,<a href="mailto:[email protected]">请联系BTstack官方</a>关于你的项目以获得商业合作。 | ||
|
||
## 4. 注意事项 | ||
## 注意事项 | ||
|
||
BTstack支持很多蓝牙卡片,目前在RT-thread系统上,只支持AP6212卡片(基于ART-H750开发板),后续会支持更多蓝牙卡片。 | ||
|
||
## 5. 目录结构 | ||
## 目录结构 | ||
|
||
本目录基本参考 [btstack](https://github.com/bluekitchen/btstack)的目录创建,适配的代码放在rtt_adapter上面,其余代码基本和源BTstack代码一致,如需更新可以自行从github上更新 | ||
|
||
|
@@ -40,10 +40,43 @@ BTstack | |
└───src /* btstack source code */ | ||
``` | ||
|
||
## 6. 联系方式 & 感谢 | ||
## 联系方式 & 感谢 | ||
|
||
- 维护:supperthomas | ||
- 主页:https://github.com/supperthomas/RTT_PACKAGE_BTSTACK | ||
|
||
|
||
|
||
## 如何使用 | ||
|
||
目前版本只支持ART-PI,请先查看ART-PI的主页熟悉ART-PI的使用方法: | ||
|
||
官方主页 [ART-PI](https://art-pi.gitee.io/website) | ||
|
||
step1: 熟悉RT-STUDIO中的art_pi_factory使用方法: | ||
|
||
![image-20210327214910080](images/image-20210327214910080.png) | ||
|
||
step2: | ||
|
||
将btstack的软件包更新到本项目的最新代码 | ||
|
||
step3: | ||
|
||
在软件包目录btstack中选择想要运行的example | ||
|
||
![image-20210327215051440](images/image-20210327215051440.png) | ||
|
||
编译完成即可: | ||
|
||
目前支持的example: | ||
|
||
HFP、classic、mesh、ble | ||
|
||
``` | ||
如果发现蓝牙搜索不到,可以尝试将wifi_init();先注释掉 | ||
``` | ||
|
||
|
||
|
||
后续会持续支持中,如果有好的建议和需求,欢迎PR代码。 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.