如何将 iOS 设备连接到自定义 USB 设备?

发布于 2025-01-03 11:22:28 字数 243 浏览 4 评论 0原文

我正在开发一种定制电子设备 - 将其视为一种特殊的数据记录器,我需要将计算机连接到它来配置它并提取数据。

我知道我可以在 PC 上轻松完成此操作,但我想使用 iOS 设备来执行此操作。

有两个问题:

我可以使用常规底座连接器/USB 电缆来完成此操作吗? EA 框架会让我完成所有通信吗?

提取数据后,从 iPad 中提取数据的最佳方法是什么?用它写一封电子邮件,保存到保管箱之类的?

谢谢!

I'm developing a custom electronic device - think of it as a special kind of data logger, and I need to connect a computer to it to configure it and to extract the data.

I know I can do this without too much trouble on a PC, but I'd like to use an iOS device to do this.

Two questions:

Can I do this with a regular dock connector / USB cable? Will the EA framework let me do all the communicating?

Once I have extracted the data, what's the best way to get that out of the iPad? Make an email with it, save to a dropbox or something?

Thanks!

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

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

发布评论

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

评论(4

鸠书 2025-01-10 11:22:28

Afaik,您需要加入 MFi 计划才能为 iPad/iPhone 制作 USB 配件。这将为您提供所需的所有技术资源。

至于数据传输只有“意见”,我说发送的选项越多越好。只是不要强迫用户多次选择,然后在设置中更改它。

Afaik, you need to join the MFi program to make USB accessories for iPad/iPhone. That will give you all the technical resources needed.

As for data transfer there are only "opinions", I say the more options of sending, the better. Just don't force the user to choose more than once, then make it changeable in settings.

浮光之海 2025-01-10 11:22:28

如果您进行的通信非常简单,您可能可以摆脱 使用耳机插孔

应用程序通过 iOS 上的各种音频框架与耳机端口进行通信。 AVFoundation 是一个执行各种音频操作的高级抽象框架,但为了通过此接口微调与设备的通信,您可能会使用基于 C 语言回调的音频队列服务框架来执行音频 I/O .

这很好,因为你的设备只要编写相应的软件就可以跨平台(iOS、Android、Mac/PC),而且不需要经过苹果的 MFi 审批程序。像 Square 信用卡扫描仪一样思考。

If you're doing very light communication, you might be able to get away with using the headphone jack.

Apps communicate to the headphone port through the various audio frameworks on iOS. AVFoundation is a high-level abstract framework to do various audio operations, but for fine-tuning the communication to a device over this interface, you will likely be using the C-language callback-based Audio Queue Services framework to do audio I/O.

This is nice because your device can be cross-platform (iOS, Android, Mac/PC) as long as you write the corresponding software, and because you don't need to go through Apple's MFi approval program. Think like the Square credit card scanner.

何时共饮酒 2025-01-10 11:22:28

您必须编写设备和 iOS 设备之间的通信堆栈,但是您可以。

关于使用 EA.framework 的文档很少。所有有趣的部分都在 Mfi 计划中,但苹果对访问它的要求非常严格。

因此,如果您成功,共享教程将使您成为 EA 英雄;)

关于共享您的数据,恕我直言,电子邮件 + CSV 是一个成功的组合。

You will have to write the communication stack between the device and your iOS device but yes, you can.

there's very few docs about using the EA.framework. All the juicy parts are in the Mfi program but Apple is very strict about giving access to it.

So if you succeed, sharing a tuto will make you a EA hero ;)

About sharing your data, imho, email + CSV is a winning combo.

暮色兮凉城 2025-01-10 11:22:28

如果您想将某些东西插入坞站连接器,您需要查看 https://developer。 apple.com/programs/mfi/

If you want to plug something into the dock connector, you want to have a look at https://developer.apple.com/programs/mfi/

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