是否可以开发具有蓝牙功能的 iOS 应用程序?

发布于 2024-10-14 05:03:54 字数 105 浏览 2 评论 0原文

以下情况可能吗?

假设我有一个具有蓝牙功能的秤,当我打开它时,它会通过 BT 发送重量。

从技术上讲是否可以开发一款与体重秤配对并从中接收数据的 iOS 应用程序?

Would the following be possible?

Let's say I have a scale with Bluetooth capabilities, when I turn it on, it sends the weight via BT.

Is it technically possible to develop an iOS app which pairs with the scale and receives the data from it?

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

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

发布评论

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

评论(3

℉絮湮 2024-10-21 05:03:54

据苹果公司称:

技术问答 QA1657:使用外部
带蓝牙的配件框架
设备。

问:据我所知,iOS 3.0 及更高版本中的外部附件框架将允许我的应用程序与蓝牙设备进行通信。那么为什么我的应用程序看不到 iPhone 旁边的蓝牙配件呢?

答:外部配件框架旨在允许 iOS 应用程序仅与根据 Apple MFi 授权计划开发的硬件配件进行通信。符合 MFi 标准的配件可以作为有线设备实现,这意味着它们可以插入 Apple 设备的 30 针或 Lightning 连接器,也可以作为无线设备实现,即使用蓝牙作为通信通道。无论哪种方式,使用外部附件框架的应用程序都不会收到有关附件存在的通知,除非该附件将自身标识为符合 MFi 标准,即它是专门设计用于与 iOS 应用程序交互的。

According to Apple:

Technical Q&A QA1657: Using External
Accessory framework with Bluetooth
devices.

Q: I understand that the External Accessory framework in iOS 3.0 and later will allow my application to communicate with Bluetooth devices. So why doesn't my application see the Bluetooth accessory sitting next to my iPhone?

A: The External Accessory framework is designed to allow iOS applications to communicate only with hardware accessories that are developed under Apple's MFi licensee program. MFi compliant accessories can be implemented as wired devices, meaning they plug in to the Apple device's 30-pin or Lightning connector, or as wireless devices, whereby they use Bluetooth as the communication channel. Either way, an application that uses the External Accessory framework will not be notified of an accessory's presence unless the accessory identifies itself as being MFi compliant, i.e., it was specifically designed to interface with an iOS application.

浅沫记忆 2024-10-21 05:03:54

是的,我们可以通过Core蓝牙框架将蓝牙设备与iOS应用程序连接起来。该框架支持 iPhone 4s、iPhone5、iPhone 5S、iPad3。我们可以使用 BLE 4.0 来进行秤和 iOS 应用程序之间的通信。在这里,iOS 应用程序成为客户端,规模成为外围设备。您可以设置秤以及从秤获取数据。

Yes, we can connect Bluetooth devices with iOS application through Core bluetooth framework. This framework is supported on the iPhone 4s, iPhone5,iPhone 5S ,iPad3. We can use BLE 4.0 for the communication between scale and iOS application. Here, iOS application become the client and scale become the peripheral. You Can set as well as get data from the weighing scale.

清醇 2024-10-21 05:03:54

虽然带有蓝牙的外部配件框架是可能的解决方案之一,但它还有根据 Apple 构建的附加要求MFi,此处蓝牙参考的是经典蓝牙(版本 3.x 及以下)。

针对您定义的用例的最佳解决方案是使用蓝牙低功耗 (LE)(又名蓝牙智能)技术(蓝牙4.0),并且它可以作为 核心蓝牙框架
以下是核心蓝牙 API应用程序可以使用。

目前,最新的 iPhone 4S、New Mac Mini 和 Mac Mini 都支持低功耗蓝牙。 Macbook Air - 预计最新的苹果和蓝牙设备其他硬件将具有此标准

While the External Accessory Framework with Bluetooth is one of the possible solutions, it has additional requirements to be built as per Apple MFi, here Bluetooth reference is to the Classic Bluetooth (Version 3.x and below)

The best solution for the use case you have defined is to use the Bluetooth Low Energy (LE) (aka Bluetooth Smart) technology (Bluetooth 4.0) and it is available to applications as part of the Core Bluetooth Frameworks
Here are the APIs for Core Bluetooth that applications can use.

While currently Bluetooth Low Energy is supported on the latest iPhone 4S, New Mac Mini & Macbook Air - its expected most new Apple & Others hardware will have this standard.

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