如何卓悦通过蓝牙工作 [英] How does Bonjour Over Bluetooth Work

查看:135
本文介绍了如何卓悦通过蓝牙工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能解释卓悦是如何工作的通过蓝牙从iPhone OS 3.0开始?

Can anyone explain how bonjour works over bluetooth from iphone OS 3.0 onwards?

文档说,在应用中使用的卓悦API的只是作品甚至如果Wi-Fi已关闭和蓝牙开启。它还说,蓝牙PAN成立,因此IP地址进入图片。

The documentation says the Bonjour API's used in the application just works even if Wi-fi is off and Bluetooth is on. It also says , a Bluetooth PAN is established and hence IP address comes into picture.

不过,卓悦(基于MDNS)需要多播工作。但是,蓝牙PAN(微微网)的作品上的主从的概念。同龄人之间进行交换的任何数据已经去到主先主转发给所有客户端。此外还有,这意味着在卓悦有蓝牙,这将8设备的最大?

But Bonjour (based on mdns) requires multicast to work. But , Bluetooth PAN (piconet) works on a master-Slave concept. Any data to be exchanged between peers has to go to the master first and then the master forwards to the all clients. Moreover there is a restriction on the number of slaves in piconet i.e., 8. that means bonjour over bluetooth has a limitation that it would work for a max of 8 devices?

推荐答案

显然,这是PANU到PANU沟通。因此,限制实际上是 - 一对单的沟通。如果您使用蓝牙浏览器,包括X code,你会看到iOS设备presents ID为服务 0x1115 。由于在连接没有GN也不NAP节点,只有两个设备可以参与的连接。

Apparently, it's PANU to PANU communication. So the limitation is actually - one-on-one communication. If you use Bluetooth Explorer, included with Xcode, you'll see the iOS device presents a service with ID 0x1115. Since there is no GN nor NAP nodes in the connection, only two devices can participate in the connection.

蓝牙管理器也显示,用于对连接的元数据交换的各种自定义字段。见<一href=\"http://stackoverflow.com/questions/8070998/using-ios-gamekits-bluetooth-bonjour-with-other-platforms\">my有些相关的问题,在服务通告的一个例子。

Bluetooth Explorer also shows various custom fields that serve to exchange metadata about the connection. See my somewhat related question for an example of the service announcement.

我只能够得到这项服务使用的GameKit时才会出现,在两个iPhone 3G的4.2.1和iPad与5.0.1。

I have only been able to get this service to appear when using GameKit, on both iPhone 3G with 4.2.1 and iPad with 5.0.1.

这篇关于如何卓悦通过蓝牙工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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