Channel Sounding + AccessorySetupKit

Hello, I'm still investigating, so I could be mistaken. But as far as I can tell, if we create a CBCentralManager, and use it to scan for devices advertising Ranging Service, connect to them, and call the CoreBluetooth startChannelSounding() API, it does not work. I get a 'Operation not permitted' type of error. Instead, if I set up the device at least once using AccessorySetupKit, it does work. Will the need for AccessorySetupKit be removed?

The thing is, AccessorySetupKit is not easy to play with. It seems to require no other part of the app to have an existing initialised CBCentralManager for it to do any kind of work, as the Channel Sounding code sample you provided attests to.

Okay, my bad. I did not read properly the documentation where it states that AccessorySetupKit is required for ChannelSounding to work. This is fine, I don't mind going through that extra step. Unfortunately AccessorySetupKit is not compatible with a Bluetooth LE - scanner type app since it wants exclusive CBCentralManager access, and also, it will stop CBCentralManager from returning unpaired devices... :(

Channel Sounding + AccessorySetupKit
 
 
Q