0

I am trying to wrap my head around the possibilities of the HM-10 but am very new to a lot of how it works. I am only familiar with higher level things.

I originally thought I was going to use the hm-10 as an iBeacon but quickly found out it's limitations. Here was the original plan prior:

iBeacon(HM-10) broadcast in a particular room, when I walk in with my iPhone, it detects my iPhone and then does something, i.e Sets one of its Pins to High.

But based on my research now, this is not possible with iBeacon? I need to use iBeacon broadcasting in hand with regular bluetooth?

As in, upon my App/Phone detecting the iBeacon it then pairs with the HM-10 and sends an AT- command to set one of the pins HIGH.

Does all of this make sense? Could anyone provide some more input?

I am in the process of putting together an iPhone App but just wanted to know if I am on the right track.

4

1 回答 1

1

由于 HM-10 基于 CC2540,应该可以将其变成蓝牙 LE 信标,包括支持 iBeacon 格式的信标。

一些有助于理解的想法:

  1. 标准蓝牙 LE 信标(AltBeacon、iBeacon、URL 信标)仅传输不检测手机的设备——手机使用自定义应用程序检测它们。因此,当您说“它检测到我的 iPhone 然后做某事”时,这与标准的蓝牙 LE 信标不同。

  2. 与蓝牙设备“配对”的概念通常与蓝牙经典(例如 4.0 之前)技术有关。像上面提到的信标这样的蓝牙 LE 设备具有连接读取和写入 GATT 特性的概念。

  3. 如果您确实使用 HM-10/CC2540 构建了一个定制的 BLE 设备,则可能通过宣传 GATT 服务,然后在连接和/或写入到特征。由于 CC2540 包含 GPIO 引脚,因此可以通过使引脚变高来使其“做某事”。

完成您所描述的工作有两大块:(1)为 CC2540 编写自定义固件和(2)使用CoreBluetooth和/或CoreLocationiBeacon API 编写 iPhone 应用程序。在开始 iOS 端之前,你需要弄清楚蓝牙设备是如何工作的。

于 2015-05-03T19:21:32.787 回答