相关疑难解决方法(0)

从 Bluez 5.48 开始,iPhone 在连接 BLE GAP 外设时需要配对,为什么?

我有一个使用 Bluez 5.X 和 DBus 在嵌入式设备上运行的应用程序。

\n\n
    \n
  • 我的应用程序将具有“NoInputNoOutput”功能的代理和适配器设置为不可配对(我不想配对)。

  • \n
  • 我的嵌入式设备不发起连接(GAP 外围设备)和广播广告(GATT 服务器)。

  • \n
\n\n

使用 BlueZ 5.48(和 5.52),当我尝试从 Android 设备连接到我的嵌入式设备时,一切正常,但当我尝试使用 iOS 时,连接在一段时间后丢失,并且在 btmon 工具中存在以下日志:

\n\n
> ACL Data RX: Handle 68 flags 0x02 dlen 9              #1050 [hci0] 398.940027\n  ATT: Error Response (0x01) len 4\n    Read Request (0x0a)\n    Handle: 0x0016\n    Error: Insufficient Authentication (0x05)\n< ACL Data TX: Handle 68 flags 0x00 dlen 7              #1051 [hci0] 398.940268\n      ATT: Read Request (0x0a) len 2\n        Handle: 0x0016\n> ACL Data RX: Handle …
Run Code Online (Sandbox Code Playgroud)

iphone ios bluetooth-lowenergy bluez pairing

1
推荐指数
1
解决办法
1692
查看次数

标签 统计

bluetooth-lowenergy ×1

bluez ×1

ios ×1

iphone ×1

pairing ×1