iPhone 外部配件帮助
我想构建一个可以与某些外部第三方硬件通信的应用程序。我知道外部附件框架可以帮助我解决这个问题,但我有一些困惑……
- 在开始之前我需要注册“Made For iPod”程序吗?
- 在开始之前我是否需要第三方硬件,或者我可以在没有硬件的情况下启动?
- 如果硬件当前不可用,是否有其他方法可以测试应用程序?
I want to build an app that can communicate to some external third party hardware. I come to know that External Accessory framework can help me out in that, but I have few confusions……
- Do I need to register ‘Made For iPod’ program before I start?
- Do I need the third party hardware before I start, or I can start without hardware?
- Is there any alternative to test the app, if the hardware is not currently available?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你可以这么做。但他们并不像iOS程序那样批准所有注册的人。 (根据我的经验)这需要很多时间,而且他们的要求并不是每个人都能满足。如果硬件已经准备好,则无需申请。 MFI 计划适用于硬件开发人员。如果你不生产硬件,我什至不会尝试进入 MFI。这是浪费时间和金钱。
如果您为配件编写官方应用程序,制造它的公司应该为您提供一个原型,以便您可以尽快开始。
我强烈建议购买硬件。如果这是您和公司的第一个附属项目,那么我会考虑去那里并开始在现场编写基本代码,在那里您可以接触到开发人员。
通信通过流进行。我从未尝试过,但我认为您可以使用网络连接编写整个协议特定的通信,然后在拥有硬件后用 EASession 替换网络内容。
如果您想测试外部附件框架,您应该看看 EADemo。我从未尝试过(而且我附近没有可供测试的配件),但我认为这应该适用于所有配件。但在我看来,与 EA 框架相关的一切都是整个过程中最简单的部分。
摘要: 获取硬件。如果您将在两周内获得硬件,请立即完成用户界面部分。如果您在两周内无法拿到配件,您应该索取原型。
关于您对另一个问题的评论:当您是 MfI 的成员时,可以使用测试设备。
You could do that. But they don't approve everyone who registers like in the iOS program. It takes (in my experience) a lot of time and they have requirements that not everybody can met. You don't need to apply if the hardware is ready. The MFI program is for hardware developers. If you don't make hardware I wouldn't even try to get into MFI. It's a waste of time and money.
If you write an official app for the accessory, the company that makes it should give you a prototype so you can get started ASAP.
I would highly suggest to get the hardware. And if this is the first accessory project for you and the company then I would consider to go there and start writing the basic code on site, where you can get your hands on the developer.
The communication works with streams. I never tried it but I think you could write the whole protocol specific communication with network connections and then replace the networking stuff with the EASession once you have the hardware.
If you want to test the External Accessory framework you should have a look at EADemo. I never tried (and I don't have a accessory near me to test) but I think this should work with all accessories. But in my opinion everything EA Framework related is the easy part of the whole process.
Summary: Get the hardware. If you'll get the hardware in two weeks do the User Interface part now. If you can't get your hands on the accessory within two weeks you should beg for a prototype.
Regarding your comment to the other question: Test equipment is available when you are a member of MfI.