简体   繁体   English

使用外部附件和MFi时,iOS连接/重新连接到蓝牙设备

[英]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.

相关问题 如何使用 MFi 和外部附件框架以编程方式重新连接 IOS 上的 Classic Bluetooh - How reconnect programatically Classic Bluetooh on IOS with MFi and external-accessory framework UIBackgroundModes外部配件 - UIBackgroundModes external-accessory iOS示例将蓝牙与MFI连接起来 - iOS sample to connect a Bluetooth with MFI iOS 11.2.1的EAAccessory问题外部附件无法通过Lightning连接器将数据写入MFi设备 - EAAccessory issue at iOS 11.2.1 External accessory not writing data to MFi device via Lightning connector iOS外部附件框架:如何获取某些MFI设备的协议字符串 - iOS External Accessory Framework: how to get a protocol string for certain MFI device iOS上经过MFi认证的蓝牙设备的已确认行为 - Confirmed behavior for a MFi certified bluetooth device on iOS 从iOS连接到蓝牙设备,没有MFi - Connecting to a Bluetooth device from iOS, no MFi IOS11 中的外部附件蓝牙问题 - External Accessory bluetooth issue in IOS11 Apple Store应用程序拒绝 - 支持UIBackgroundModes中的外部附件 - Apple Store App Rejection - Support for external-accessory in the UIBackgroundModes SPP使用核心蓝牙框架创建的BTLE设备是否仍需要MFi芯片通过蓝牙ios进行通信? - Do BTLE device created by SPP using core bluetooth framework still need MFi chip to communicate over bluetooth ios?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM