iPhone 如何通过无线或蓝牙访问另一个非 iPhone 设备? [英] How can an iPhone access another non-iPhone device over wireless or Bluetooth?

查看:28
本文介绍了iPhone 如何通过无线或蓝牙访问另一个非 iPhone 设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚 iPhone 是否可以通过无线或蓝牙连接到另一个非 iPhone 设备,但我看到了相互矛盾的信息.我发现的大部分内容是在 SDK 3.0 版发布之前,当时肯定是不可能的.查看堆栈溢出问题,例如 iPhone 3.0 SDK 可以提供对蓝牙设备(耳机)的完全访问吗? 提到你不能连接到任意设备,除非它是适用于 iPhone"的设备的一部分.我需要作为该计划一部分的硬件吗?

I'm trying to figure out if an iPhone can connect to another non-iPhone device over wireless or Bluetooth and have seen conflicting information. Much of what I've found was before version 3.0 of the SDK came out, when it certainly wasn't possible. Looking at Stack Overflow questions, like Can the iPhone 3.0 SDK provide full access to Bluetooth devices (headsets)? mention you can't connect to an arbitrary device unless if it's part of the "Works for iPhone" device. Do I need hardware that is part of this program?

查看 Apple 文档,点对点连接,它提到将两部 iPhone 连接起来,而不是将 iPhone 连接到另一个蓝牙设备.然后还有像 iPhone SDK 这样的文章重点:蓝牙增强,包括此引述

Looking through the Apple documentation, Peer-to-Peer Connectivity, it mentions connecting two iPhones, not an iPhone to another Bluetooth device. Then there are articles like iPhone SDK focus: Bluetooth enhancements that includes this quote

...并且新宣布的标准支持"应该允许在 iPhone 和计算机之间以及附近的 iPhone 之间传输文件

...and with the newly-announced "standard support" should allow file transfer between the iPhone and a computer, as well as between nearby iPhones

另一个堆栈溢出问题,iPhone SDK 3.0 中的 GameKit,提到 BonjourBonjour 的 Apple 文档 讨论了连接 Bonjour 设备,但 iPhone 可以连接到任何 Bonjour 设备吗?它必须有 Wi-Fi 连接,还是可以使用蓝牙?

Another Stack Overflow question, GameKit in iPhone SDK 3.0, mentions Bonjour, and the Apple documentation for Bonjour talks about connecting to Bonjour devices, but can an iPhone connect to any Bonjour device? Does it have to have a Wi-Fi connection, or can it use Bluetooth?

即使我可以使用蓝牙连接到另一台设备,我相信它也不会在第一代 iPhone 和 iTouch 上可用.那是对的吗?我正在考虑一个 iPhone 应用程序,它需要与该地区的其他非 iPhone 设备进行通信,可能使用蓝牙,但可能使用直接无线连接.这种方法的可能性和局限性是什么?iPhone 无法连接到任意蓝牙设备吗?其他设备是否必须位于无线 Bonjour 网络上?我想弄清楚这是否有可能奏效,或者是否不值得付出努力.

Even if I could use Bluetooth to connect to another device, it won't be available on first generation iPhones and iTouches, I believe. Is that correct? I'm thinking of an iPhone application that would need to communicate with other non-iPhone devices in the area, probably using Bluetooth, but possibly a direct wireless connection. What are the possibilities and limitations of this approach? Is it not possible to have an iPhone connect to an arbitrary Bluetooth device? Does the other device have to be on a wireless Bonjour network that? I'm trying to figure out if it's even possible for this to work or if it's not worth the effort.

推荐答案

通过 External Accessory 框架是否在 专为 iPod 配件制作 程序.即使它们通过标准蓝牙连接进行通信,配件也需要特殊的硬件来处理来自 iPhone/ 的数据流iPod 触摸.不幸的是,这意味着您与通用蓝牙设备通信的想法不适用于 iPhone OS 3.0.

The only way to communicate with other Bluetooth devices via the External Accessory framework in iPhone OS 3.0 is if they are in the Made for iPod accessory program. Even though they communicate through standard Bluetooth connections, accessories need special hardware in order to process the data stream coming from the iPhone / iPod touch. Unfortunately, this means that your idea of communicating with generic Bluetooth devices won't work on iPhone OS 3.0.

如果您想与之通话的设备可通过 Wi-Fi 发现 Bonjour,他们不需要成为Made for iPod 计划的一部分.但是,这听起来不像您的情况.

If the devices you want to talk to are Bonjour-discoverable via Wi-Fi, they don't need to be part of the Made for iPod program. However, that doesn't sound like your case.

在不久的将来,第三方开发商可能会生产通过 30 针基座端口连接并允许访问现有蓝牙设备的加密狗.如果这些开发者开放他们的通信协议,那么您可能会实现与这些设备通信的目标.

Third-party developers in the near future may produce dongles that connect through the 30-pin dock port and give access to existing Bluetooth devices. If these developers opened up their communication protocol, that might enable your goal of communicating with these devices.

这篇关于iPhone 如何通过无线或蓝牙访问另一个非 iPhone 设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆