Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Open Source
>
Industrial
>
Hardware
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
63
Star
230
Fork
122
珠海杰理科技
/
fw-AC63_BT_SDK
Code
Issues
104
Pull Requests
1
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
NOTE:蓝牙双模获取对方的 RSSI 信号强度说明
Backlog
#I5IQ1I
JL-MinXian
member
Opened this issue
2022-07-25 14:17
**一、经典蓝牙EDR** 1、作为主机搜索模式下,在搜索结果会有返回rssi值。 ```C u8 bt_emitter_search_result(char *name, u8 name_len, u8 *addr, u32 dev_class, char rssi) ``` 2、当 EDR连上后(无论是做主机或者从机模式),可通过对方地址来获取rssi值,提供接口如下。 ```C s8 bredr_get_rssi_for_address(u8 *address); ``` **二、低功耗蓝牙BLE** 1、作为主机scan模式下,在scan结果会有返回;adv_report_t 结构体带有rssi值。 ```C static bool __resolve_adv_report(adv_report_t *report_pt, u16 len) typedef struct { u8 event_type; //对方广播包类型: 0--ADV_IND,1--ADV_DIRECT_IND,2--ADV_SCAN_IND,3--ADV_NONCONN_IND,4--SCAN_RSP u8 address_type; //对方地址类型:0--public address,1--random address u8 address[6]; //peer_address s8 rssi; //range:-127 ~128 dbm u8 length; //广播包长度 u8 data[0]; //广播包内容 } adv_report_t; ``` 2、当 BLE连上后(无论是做主机或者从机模式),可通过链路conn_handle获取rssi值,提供接口如下。 ```C s8 ble_vendor_get_peer_rssi(u16 conn_handle); ```
**一、经典蓝牙EDR** 1、作为主机搜索模式下,在搜索结果会有返回rssi值。 ```C u8 bt_emitter_search_result(char *name, u8 name_len, u8 *addr, u32 dev_class, char rssi) ``` 2、当 EDR连上后(无论是做主机或者从机模式),可通过对方地址来获取rssi值,提供接口如下。 ```C s8 bredr_get_rssi_for_address(u8 *address); ``` **二、低功耗蓝牙BLE** 1、作为主机scan模式下,在scan结果会有返回;adv_report_t 结构体带有rssi值。 ```C static bool __resolve_adv_report(adv_report_t *report_pt, u16 len) typedef struct { u8 event_type; //对方广播包类型: 0--ADV_IND,1--ADV_DIRECT_IND,2--ADV_SCAN_IND,3--ADV_NONCONN_IND,4--SCAN_RSP u8 address_type; //对方地址类型:0--public address,1--random address u8 address[6]; //peer_address s8 rssi; //range:-127 ~128 dbm u8 length; //广播包长度 u8 data[0]; //广播包内容 } adv_report_t; ``` 2、当 BLE连上后(无论是做主机或者从机模式),可通过链路conn_handle获取rssi值,提供接口如下。 ```C s8 ble_vendor_get_peer_rssi(u16 conn_handle); ```
Comments (
0
)
Sign in
to comment
Status
Backlog
Backlog
Doing
Done
Closed
Assignees
Not set
Labels
蓝牙相关
Not set
Label settings
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
参与者(1)
C
1
https://gitee.com/Jieli-Tech/fw-AC63_BT_SDK.git
git@gitee.com:Jieli-Tech/fw-AC63_BT_SDK.git
Jieli-Tech
fw-AC63_BT_SDK
fw-AC63_BT_SDK
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register