我有一个使用 Bluez 5.X 和 DBus 在嵌入式设备上运行的应用程序。
\n\n我的应用程序将具有“NoInputNoOutput”功能的代理和适配器设置为不可配对(我不想配对)。
我的嵌入式设备不发起连接(GAP 外围设备)和广播广告(GATT 服务器)。
使用 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)