iOS外部附件框架:如何获取某些MFI设备的协议字符串 [英] iOS External Accessory Framework: how to get a protocol string for certain MFI device

查看:284
本文介绍了iOS外部附件框架:如何获取某些MFI设备的协议字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个iOS应用程序,用于与小型mPlay Drumi MP18B(小型蓝牙扬声器)进行通信.据我所知,showBluetoothAccessoryPickerWithNameFilter仅显示将协议字符串添加到Info.plist的支持的外部附件协议"键中的设备.因此,我需要将此协议字符串添加到列表中.

I'm writing an iOS application for communicating with mini mPlay Drumi MP18B (a small Bluetooth loudspeaker). As far as I know, showBluetoothAccessoryPickerWithNameFilter displays only devices with protocol strings added to Supported External Accessory Protocols key of Info.plist. So I need to add this protocol string to a list.

在哪里可以获取该特定设备的协议字符串?互联网上任何地方都有设备支持的协议列表吗?大多数制造商并未在其技术规格中提及此信息.

Where can I get a protocol string for this certain device? Is there a list of device supported protocols anywhere in an internet? Most of manufactures doesn't mention this information in their technical specifications.

Apple在文档中引用此协议字符串(或ID):

Apple refer this protocol string (or ID) in a documentation:

选择器仅显示在扩展查询响应中包括通过蓝牙唯一ID的iAP的蓝牙设备.

The picker displays only Bluetooth devices that include an iAP over Bluetooth unique ID in their extended inquiry response.

推荐答案

showBluetoothAccessoryPickerWithNameFilter仅显示符合MFi("Made for iPhone/iPod/iPad")的设备.这意味着设备制造商必须加入MFi程序并认证设备. 如果该设备未经MFi认证,则唯一的连接方法是通过Apple蓝牙菜单.

The showBluetoothAccessoryPickerWithNameFilter only displays devices that are MFi ("Made for iPhone/iPod/iPad") compliant. This means the manufacturer of the device has to join the the MFi program and certify the device. If the device is not MFi certified, the only way to connect is through the Apple Bluetooth menu.

如果设备已通过MFi认证,并且您正在为应用商店创建应用,则需要向制造商注册才能获得PPId(产品计划ID).没有PPId,您的应用将不会被Apple批准.

If the device is MFi certified, and you are creating an app for the app store, you need to register with the manufacturer to receive a PPId (Product Plan Id). Without the PPId your app will not be approved by Apple.

另请参阅: https://stackoverflow.com/a/15146309/4467787

这篇关于iOS外部附件框架:如何获取某些MFI设备的协议字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆