ios、android、windows mobile 平台上的蓝牙 sdk

发布于 2024-11-14 18:28:49 字数 136 浏览 4 评论 0原文

作为移动设备开发的新人,我有一个问题:能否开发一款可以通过蓝牙在ios设备之间通信(发送数据等)的应用程序?我已经阅读过有关私有 api 内容的文章,因此我只需要知道可以放在应用程序商店中的内容即可。我似乎无法在苹果网站上找到任何适用于 ios 的蓝牙类库。

As a new entry into mobile devices development, I have a question: Can one develop an app that can communicate (sending data etc.) amongst ios devices via bluetooth? I have already read articles on private api stuff, so I only need to know things that can be put on app store. I can't seem to find any bluetooth class library on apple site for ios.

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

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

发布评论

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

评论(2

缺⑴份安定 2024-11-21 18:28:49

有两种方式:

  1. 使用游戏套件 API 进行点对点 - 用于在 2 个 iOS 设备之间进行通信。对于游戏和其他点对点应用程序

  2. 如果您正在构建蓝牙配件设备,您可以加入 Apple MFi 计划并访问 API 和机制以与您的配件进行通信。
    请参阅此处

There are 2 ways:

  1. Peer to Peer using the Game kit APIs - for use of communication between 2 iOS devices. For gaming and other peer to peer applications

  2. If you are building a bluetooth accessory device you can join the apple MFi program and get access to APIs and mechanism to communicate with you accessory.
    See here

断爱 2024-11-21 18:28:49

我知道您具体谈论的是我一无所知的 iOS,但由于您也标记了 Android 和 Windows 移动设备,所以我假设您对所有平台都感兴趣。

就个人使用过的Android来说,是的,你可以通过蓝牙与其他设备交换数据。 Android 上的一个很好的起点是使用蓝牙聊天示例,该示例演示了如何使用蓝牙 API 通过 RFCOMM 层(串行端口配置文件)发送任意 ASCII 数据。使用此示例应用程序,您可以在几分钟内拥有两部 Android 手机,或者一部 Android 手机和一些其他支持 SPP 通话的蓝牙设备。

我首先特地选择了 Android 手机,因为我的第一个主要应用程序涉及与第三方硬件设备进行蓝牙连接。我的理解是,iOS API 对于通过蓝牙可以执行的操作有更多限制;事实上,我的理解是,iOS 不允许您打开与任何支持该配置文件的设备的 SPP 连接。就我的应用程序而言,这是一个令人震惊的事情。然而,正如我所说,我的 iPhone 知识有限,这只是我一年前购买手机时所知道的。现在情况可能会有所不同。

I know you're talking specifically about iOS which I know nothing about, but as you've tagged Android and Windows-mobile too, I'm assuming you're interested in all platforms.

Talking about Android which personally have experience with, yes you can exchange data with other devices over Bluetooth. A good starting point on Android is to use the Bluetooth Chat example, which demonstrates using the Bluetooth API to send arbitrary ASCII data over the RFCOMM layer (Serial Port Profile). Using this example application you can have two Android phones, or an Android phone and some other Bluetooth device that supports SPP talking in minutes.

I specifically chose an Android phone in the first place because my first main application involves making a Bluetooth connection to a third-party hardware device. My understanding was that the iOS API is more restrictive in terms of what you can do over Bluetooth; in fact, my understanding is that iOS doesn't allow you to open an SPP connection to any device that supports that profile. This is a showstopper as far as my application is concerned. However, as I said my iPhone knowledge is limited and this is just what I knew a year ago when buying my phone. Things could be different now.

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