简体   繁体   English

iOS应用程序与硬件集成

[英]iOS app with hardware integration

I want to develop an iOS app that uses an external hardware plug-in, kind of like Square https://squareup.com . 我想开发一个使用外部硬件插件的iOS应用程序,有点像Square https://squareup.com However I was unable to find any references in Apple's documentation. 但是我无法在Apple的文档中找到任何引用。 Can someone point me to the right direction? 有人能指出我正确的方向吗?

If you want to use the iPod connector to connect to your hardware, the only option is the External Accessory framework. 如果要使用iPod连接器连接到硬件,唯一的选择是外部附件框架。 Be advised that you must be a registered accessory developer (more expensive than the standard developer license). 请注意,您必须是注册的附件开发人员(比标准开发人员许可证更昂贵)。

I believe Square uses the audio input (others may correct me), an ingenious hack that doesn't require use of the iPod connector. 我相信Square使用音频输入(其他人可能会纠正我),这是一个不需要使用iPod连接器的巧妙黑客。 If your hardware can operate over (analog) audio in/out, that might be an option to consider. 如果您的硬件可以通过(模拟)音频输入/输出操作,那么可能需要考虑这一点。

In order to develop hardware accessories, you must be a member of Apple's MFi program. 为了开发硬件配件,您必须是Apple的MFi计划的成员。 Despite what the user above stated, it doesn't cost anything. 尽管用户如上所述,但它不需要任何费用。 But it does require a lot more work than becoming an app developer. 但它确实需要比成为应用程序开发人员更多的工作。

Accessories don't necessarily need to go through the MFi process if they are NOT over 30pin connector OR bluetooth (ie, the Square connecter goes through the headphone port, or any WiFi accessories). 如果配件不超过30针连接器或蓝牙(即,方形连接器通过耳机端口或任何WiFi配件),则配件不一定需要通过MFi过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM