[英]iOS connect/reconnect to Bluetooth device when using external-accessory and MFi
my question is to those who has experience with MFi and external-accessory framework. 我的问题是那些有MFi和外部辅助框架经验的人。
If I work with external Bluetooth accessory, is there any way to issue connect request to a remote device? 如果我使用外部蓝牙配件,有没有办法向远程设备发出连接请求? I mean programmatically, without user involvement. 我的意思是编程,没有用户参与。 If Bluetooth link loss happens, who initiates reconnection - iOS device or external accessory? 如果发生蓝牙链路丢失,谁启动重新连接 - iOS设备或外部附件?
The info that I was able to get is that: 我能得到的信息是:
1) First connection (together with pairing) is made by iOS device from Bluetooth settings screen. 1)iOS设备从蓝牙设置屏幕进行第一次连接(连同配对)。 Atter this step devices will be paired and will remember each other. 在此步骤中,设备将配对并相互记忆。
2) Then it is external accessory who should make connection requests. 2)然后是外部配件谁应该发出连接请求。 From iOS side the only way is to manually connect device from Settings, there's no way to do it in program. 从iOS端,唯一的方法是从设置手动连接设备,没有办法在程序中执行。 (Well, there's showBluetoothAccessoryPickerWithNameFilter method in EAAccessoryManager, but it needs user involvement and AFAIK it has some issues and doesn't work as expected) (嗯,在EAAccessoryManager中有showBluetoothAccessoryPickerWithNameFilter方法,但它需要用户参与和AFAIK它有一些问题并且不能按预期工作)
3) If Bluetooth link loss happens, it is external accessory who should try to reconnect back. 3)如果发生蓝牙链路丢失,应该尝试重新连接回外部配件。 iOS will not attempt to reconnect back. iOS不会尝试重新连接。
Is my understanding correct? 我的理解是否正确? Thanks in advance. 提前致谢。
Most of the information you are asking for is available on the Apple MFi Website. 您要求的大部分信息都可以在Apple MFi网站上找到。 Most questions cannot be answered because we have to sign an NDA. 大多数问题无法回答,因为我们必须签署保密协议。
However i can tell you that once you pair your device with an Apple MFI Bluetooth module, it is up to the Bluetooth Module to keep the connection alive, if you switch your device off and back on the bluetooth module initialises the connection, 但是我可以告诉你,一旦你的设备与Apple MFI蓝牙模块配对,蓝牙模块就可以保持连接活着,如果关闭设备并重新启动蓝牙模块初始化连接,
If you have a loss of connection the module will reconnect. 如果连接丢失,模块将重新连接。 Once connected you can then open the SSP connection from the EAAccessory Framework. 连接后,您可以从EAAccessory Framework打开SSP连接。
Jamie 杰米
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.