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

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

问题描述

我试图找出如果一个iPhone可以连接到通过无线或蓝牙,并看到相互矛盾的信息另一个非iPhone设备。很多东西,我发现是以前的SDK 3.0版本出来的时候它肯定是不可能的。望着堆叠 溢出的问题,比如 Can在iPhone 3.0 SDK提供了完全访问蓝牙设备(耳机)? 的提您无法连接到任意设备,除非如果它的作品for 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?

翻翻苹果文档的 <一个href=\"http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/GameKit_Guide/GameKitConcepts/GameKitConcepts.html#//apple_ref/doc/uid/TP40008304-CH100-SW1\">Peer-to-Peer连接 的,它提到两台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

另外堆叠&NBSP;溢出问题的 的GameKit在iPhone SDK 3.0 的,提到卓悦和的苹果文档的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和iTouches,我相信。那是对的吗?我想一个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.

推荐答案

通过与其它蓝牙设备通信的唯一办法<​​一href=\"http://developer.apple.com/library/ios/#featuredarticles/ExternalAccessoryPT/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009502\">External在iPhone OS 3.0的配件的框架是,如果他们是在 专为iPod配件 程序。即使他们通过标准的蓝牙连接进行通信,配件需要特殊的硬件,以处理从iPhone / iPod touch的。不幸的是,这意味着你的使用通用的蓝牙设备通信的想法会不会在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.

如果你想谈论到设备的Bonjour发现通过的Wi-Fi ,他们不需要是的为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天全站免登陆