Post

Replies

Boosts

Views

Activity

Peer removed pairing information - when using both Classic BT and BLE to communicate with same peripheral
Hello, Our IOS application communicates with some device (Intel NUC) over BLE, writing to some characteristics. We use encrypted characteristics which enforce system pairing at the moment we write to characteristic for the first time. Another piece of software on the same device is using classic BT to synchronize contacts (Phone Book Access Profile) and stream music from Iphone to Intel NUC. This also requires system pairing. Once we are paired both for BLE and classic BT profiles (two separate pairing processes) everything works fine. The problem arise when we disconnect from the peripheral either manually from system BT settings. It should not be a problem as we are paired for BLE communication so we should be able to connect with device that is currently disconnected. However, when trying to connect over BLE then we get the error: Domain=CBATTErrorDomain Code=14 "Peer removed pairing information" UserInfo={NSLocalizedDescription=Peer removed pairing information} Once we manually connect in system BT settings everything stars working again. We tried using CBConnectPeripheralOptionEnableTransportBridgingKey flag passed to CBCentralManager.connect() method, but it's getting even worse. There are problems in system pairing for classic BT profiles and even if we manage to do it somehow, connecting over BLE time outs. Any idea what might the reason of the problem?
1
1
1.7k
Sep ’20