iBeacon显示协议澄清 [英] iBeacon protocol clarification

查看:186
本文介绍了iBeacon显示协议澄清的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想了解更多关于新的苹果iBeacon显示协议,它将如何应用到其他设备上。

I am trying to understand more about the new Apple iBeacon protocol and how it would apply to other devices.

我已经看到,协议本身已经被反向工程:的http://developer.radiusnetworks.com/2013/10/01/reverse-engineering-the-ibeacon-profile.html这是个好消息,但我对协议的一些其他问题。

I have seen that the protocol itself has been reverse engineered: http://developer.radiusnetworks.com/2013/10/01/reverse-engineering-the-ibeacon-profile.html which is good news, but I have some further questions about the protocol.

被设计为允许自定义短信发送到接收器的客户端协议?如欢迎到我的店铺,而不是仅仅接近到一定的灯塔?

Is the protocol designed to allow custom text messages to send to receiver clients? Such as "welcome to my shop" as opposed to just proximity to a certain beacon?

我可以看到很多其他的做题,但我有点困惑,我会注入该文本(十六进制)到协议中。

I can see a lot of other SO questions, but I am a little confused about where I would inject that text (as Hex) into the protocol.

什么是iBeacon显示蓝牙模式

使用堆栈的BlueZ作为外设(广告客户)

它看起来像协议是建立一个UUID和主要/次要集,然后在客户端应用程序需要做的事情才真正的广播信标。但我想它更反映了一个自定义消息,如进来一个免费的咖啡或者类似的东西...是,可能使用iBeacon显示协议,或者我需要用标准的蓝牙LE是什么?

It looks like the protocol is setup to only really broadcast beacons of a UUID and Major/Minor set, which then the client app needs to do something with. But I would like it to more reflect a custom message, like "come inside for a free coffee" or something like that... is that possible using the iBeacon protocol, or do I need to just use standard Bluetooth LE for that?

推荐答案

标准iBeacons不和不能传送,除了由三部分组成的标识符(UUID,主要,次要)和发射机功率校准任何有价值的东西。你不能让他们发送定制短信。

Standard iBeacons do not and cannot transmit anything besides a three-part identifier (UUID, Major, Minor) and a transmitter power calibration value. You cannot make them transmit a custom text message.

您可以使用较低级别的蓝牙LE为你的建议,但无论哪种方式,你将不得不建立,可以从任一类型的信标信号识别的自定义应用程序。因为你必须有一个自定义应用程序,你可以轻松地映射标识符处理文本消息。像这样的:

You could use lower-level Bluetooth LE for that as you suggest, but either way, you are going to have to build a custom app that can recognize signals from either type of beacon. And since you must have a custom app, you can easily deal with mapping identifiers to text messages. Like this:

iBeacon identifiers (UUID Major Minor)         Text Message
----------------------------------------       ------------------------
2F234454-CF6D-4A0F-ADF2-F4911BA9FFA6 1 1       welcome to my shop
2F234454-CF6D-4A0F-ADF2-F4911BA9FFA6 1 2       welcome to my other shop 

如何创建一个查找表?有很多方法。您可以硬code在你的应用程序与目标C switch语句,或更复杂的的NSDictionary 。您可以使用一个土生土长的web service来查找,也可以使用现成的Web服务映射键/值对iBeacons,像我公司的接近套件

How do you create a lookup table? There are lots of ways. You can hard-code it in your app with an Objective C switch statement, or a more sophisticated NSDictionary. You can use a home-grown web service to do the lookup, or you can use an off-the shelf web service for mapping key/value pairs to iBeacons, like my company's Proximity Kit.

这篇关于iBeacon显示协议澄清的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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