IOS connects / connects to a Bluetooth device when using external accessories and MFI

my question is for those who have experience with MFi and the infrastructure of external accessories.

If I work with an external Bluetooth accessory, is there a way to send a request to connect to a remote device? I mean programmatically, without user intervention. If there is a loss of Bluetooth connectivity, who initiates the reconnection - iOS device or external accessory?

The information I could get is this:

1) The first connection (together with pairing) is made by the iOS device from the Bluetooth settings screen. Atter these stepper devices will be paired and will remember each other.

2). This is an external accessory that should make connection requests. On the iOS side, the only way is to manually connect the device to the settings, there is no way to do this in the program. (Well, there is a showBluetoothAccessoryPickerWithNameFilter method in EAAccessoryManager, but it needs user participation, and AFAIK has some problems and does not work properly)

3) If a loss of Bluetooth connectivity occurs, it is an external accessory that should try to reconnect. iOS will not try to reconnect.

Do I understand correctly? Thanks in advance.

+6
source share
1 answer

Most of the information you request is available on the Apple MFi website. Most questions cannot be answered because we must sign the NDA.

However, I can tell you that after connecting your device with the Apple MFI Bluetooth module, the Bluetooth module must support a live connection, if you turn off the device and turn on the bluetooth module again, it initiates the connection.

If you lose the connection, the module will reconnect. Once connected, you can open an SSP connection from the EAAccessory Framework.

Jamie

+3
source

Source: https://habr.com/ru/post/951612/


All Articles