gpt4 book ai didi

bluetooth - 是否可以在不配对的情况下通知 GATT 事件?

转载 作者:行者123 更新时间:2023-12-04 07:13:05 25 4
gpt4 key购买 nike

我一直在研究 BT 4.x (LE) 规范,试图弄清楚这是否可能(没有配对/预兆的事件)。
如果可能的话,有没有人有洞察力(最好链接到规范)?

最佳答案

正如 Mike Petrichenko 评论的那样,GATT 通信绝对可以在没有配对的情况下进行。事实上,大多数 GATT 服务器/客户端无需配对/绑定(bind)即可运行。唯一的异常(exception)是某些特征需要验证/授权才能读取某些数据(例如,具有心率特征的医疗设备)。
如果您想具体引用蓝牙规范中提到的位置,那么我建议您查看核心规范版本 5.2,第 3 卷,C 部分,第 10.2 节(LE 安全模式):-

The security requirements of a device, a service or a service requestare expressed in terms of a security mode and security level. Eachservice or service request may have its own security requirement. Thedevice may also have a security requirement. A physical connectionbetween two devices shall operate in only one security mode.


然后提到 LE 安全模式 1 有等级 没有安全 ,并且许多 GATT 服务器/客户端都在此级别工作。
如果您有两部手机可用,您可以自行测试。您可以使用 nRF Connect 应用程序运行 GATT server一个是 GATT 客户端,另一个是 GATT 客户端。您将看到无需配对即可浏览 GATT 表并读取数据。
以下是一些包含更多信息的链接:-
  • Is pairing/encryption mandatory to allow a peer to write in GATT
  • Bluetooth Low Energy GATT security levels
  • How GAP and GATT work
  • 关于bluetooth - 是否可以在不配对的情况下通知 GATT 事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68959377/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com