在设备和 iOS 之间建立通信链接

发布于 2024-12-20 08:59:21 字数 221 浏览 1 评论 0原文

我正在开发一个 iPhone/iPad 应用程序,需要它与其他设备进行通信。实际上,我更感兴趣的是从 iPhone 通过 USB 连接的另一台设备接收输入。该解决方案需要与任何 iOS 设备配合使用,并且不能要求其越狱。

我听说过一些应用程序可以与可以插入 iOS 串行连接的硬件进行通信,这与我要开发的类似,只是我要连接的另一个设备是独立的音乐设备键盘。

最好的问候,

fbr

I'm developing an iPhone/iPad app that requires it communicate with another device. I'm actually more interested in receiving input from another device that the iPhone is connected to through USB. The solution needs to work with any iOS device and cannot require it to be jailbroken.

I've heard of apps that communicate with a piece of hardware that can be plugged to the iOS' serial connection, which is similar to what I'm going to develop except that the other device I'll be connecting to is a standalone music keyboard.

best regards,

fbr

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

听风吹 2024-12-27 08:59:21

如果您正在开发需要连接 iOS 设备的配件并希望使用自己的通信机制,那么您需要加入 Apple MFi 计划

If you are developing accessories that need to connect to iOS devices and want to use your own communication mechanism then you need to join the Apple MFi program.

呆° 2024-12-27 08:59:21

几种选择:

忘记 MFi,除非您有数千美元支持您的产品开发。苹果甚至不会和你说话。我试过了。

查看 Redpark 的串行电缆 (http://redpark.com/c2db9.html)
我有其中之一,它非常适合您可以自行交付的应用程序,但您也许也可以将它们放入应用程序商店。

另一种选择是使用 Wifi,另一端配有 Wifi 转串口适配器。我已成功使用 Roving Networks 的 RN-174 和 RN-134。

然而,这些解决方案只能为您提供串行连接,但速度可能相当快,尤其是使用 RN 模块时。您还可以在设备端使用串行至 USB 转换器,但这通常需要设备作为 USB 主机工作。如果您有一个 USB 设备想要充当客户端,那么这些常见的适配器将无法实现这一目的。

因此,除非您确实负担得起 MFi 程序,并且如果您确实需要 USB 连接,否则您必须让某人创建一个小盒子,其中包含带有 Wifi 芯片的 USB 主机适配器。我还不知道有现成的解决方案,尽管我已经看到很多领域的人们希望拥有这样的单元。

Several options:

Forget MFi unless you have 1000s of $ backing up your product development. Apple won't even talk to you. I've tried.

Take a look at the Serial Cable from Redpark (http://redpark.com/c2db9.html)
I've got one of those and it's ideal for apps that you can deliver on your own, but you might also be able to get them into the App Store.

Another option is to use Wifi with a Wifi-to-Serial adapter on the other end. I've used the RN-174 and RN-134 from Roving Networks successfully.

However, these solutions only get you Serial connections, but can be quite fast, especially with the RN modules. There are also Serial-to-USB converters you can use on the device's end, but that would require the device to work as a USB host, usually. If you have a USB device that wants to act as a client, these common adapters won't do the trick.

So, unless you can actually afford the MFi program, and if you really need USB connectivity, you'll have to let someone create a small box containing a USB host adapter with a Wifi chip. I don't know of a ready-made solution for this yet, although I've seen quite a few area where people would like to have such a unit.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文