我遇到了一个非常奇怪的问题。 我在iPhone上安装的IOS应用程序连接到蓝牙设备。我可以发现/连接/获取特征。我也可以发送和获取数据。 当苹果手表与iPhone配对时,我们发现了一个问题。蓝牙设备连接,发现特性,但随后立即(无延迟)通过didDisconnectPeripheral回调断开连接,原因是:"连接意外超时"。如果我取消苹果手表的配对,一切都恢复正常。
我试图自动重新连接蓝牙设备,但没有运气。 我用其他蓝牙设备尝试了Apple手表,并成功连接。 我一起尝试了蓝牙设备,它也有效。 然后我尝试停用一些苹果手表功能并将其置于睡眠模式(这似乎关闭蓝牙连接),也没有工作。 我在stackoverflow上尝试了一些答案,如:Bluetooth BLE Device disconnects as soon as connected?
我对我使用的蓝牙设备硬件一无所知:
<CBCharacteristic: 0x15453b1d0, UUID = Manufacturer Name String, properties = 0x2, value = (null), notifying = NO>
<CBCharacteristic: 0x154576cb0, UUID = Model Number String, properties = 0x2, value = (null), notifying = NO>
<CBCharacteristic: 0x15453b850, UUID = Serial Number String, properties = 0x2, value = (null), notifying = NO>
<CBCharacteristic: 0x154572690, UUID = Hardware Revision String, properties = 0x2, value = (null), notifying = NO>
<CBCharacteristic: 0x15456c8b0, UUID = Firmware Revision String, properties = 0x2, value = (null), notifying = NO>
<CBCharacteristic: 0x15456edc0, UUID = Software Revision String, properties = 0x2, value = (null), notifying = NO>
<CBCharacteristic: 0x15456fda0, UUID = System ID, properties = 0x2, value = (null), notifying = NO>
<CBCharacteristic: 0x1545824f0, UUID = IEEE Regulatory Certification, properties = 0x2, value = (null), notifying = NO>
问题出现在iPhone 6S上,带有IOS 9.2 apple watch 2.0。 我不知道如何面对这个问题。 有人有这种问题吗?
谢谢,