iOS 设备与非 iOS 设备通信

发布于 2025-01-05 03:43:02 字数 325 浏览 5 评论 0原文

如 Apple 文档所示,可以通过 EAAccessory Framework 与经过认证的配件(由 Apple 认证)进行通信。但我有点困惑,因为有些帖子告诉我它也可以通过 CoreBluetooth 制作。

我还了解到 CoreBlueTooth 仅受 iOS 5 支持,iPhone 4S 可以与外部配件通信。

问题是“我应该使用CoreBluetooth 和 EAAccessory Framework(我认为在这种情况下,我必须结合设备型号和 iOS 版本进行测试)还是 EAAccessory Framework够了吗?”。

As shown in the Apple documentation, communication with a certfied accessory (certified by apple) can be made through te EAAccessory Framework. But I am getting a little bit confused because some posts tell me that it can also be made through CoreBluetooth.

I also read that CoreBlueTooth is only supported by iOS 5 and iPhone 4S may communicate with an external accessory.

The question is "Should I use both CoreBluetooth and EAAccessory Framework (I think in this case I will have to test on a combination of the device model and iOS version) or will the EAAccessory Framework be enough?".

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

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

发布评论

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

评论(1

べ繥欢鉨o。 2025-01-12 03:43:02

CoreBluetooth 框架仅用于与支持低功耗蓝牙的设备进行通信。 EAAccessory 框架用于标准蓝牙连接。截至撰写本文时,一个框架要求您成为 Apple 认证的 MFI 开发人员,并且需要特殊的硬件 (EAAccessory)。另一种则不需要,但需要支持低功耗蓝牙的设备 (iPhone 4S) 和 iOS 5.0+

至于是否应该同时支持两者,这完全取决于配件的使用。每个规格都有其优点和缺点,由您决定最适合的规格。

希望这有帮助!

The CoreBluetooth Framework is only used for communication with Bluetooth Low Energy enabled devices. The EAAccessory Framework is used for standard Bluetooth connections. One framework, as of this writing, requires you to be a certified MFI developer with Apple and requires special hardware (EAAccessory). The other does not, but requires Bluetooth Low Energy enabled devices (iPhone 4S) and iOS 5.0+

As to wether you should support both, that depends entirely on the use of the accessory. Each spec has its benefits and draw-backs, it is up to you to determine which best fits.

Hope this helps!

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