iOS 应用程序与 Atmega 1284 微处理器之间通过蓝牙进行应用程序间通信

Inter App Communication between iOS App and Atmega 1284 microprocessor via bluetooth

我想要完成的事情: 用户在 iOS 应用程序上输入密码。如果密码正确,则向微处理器发送一位值,表明用户获得了正确的密码。然后微处理器可以启动步进电机打开门闩。

有没有人尝试过实现这个?如果是这样,你能给我指出一个大致的方向吗?我不知道如何解决这个问题。我真的找不到这方面的教程。我的问题是:

  1. 我需要购买特定的蓝牙吗?例如只有 BLE 设备

  2. 看到很多iOS和Ardunio蓝牙通信的例子。事件的执行是否符合我的需要?

  3. 是否有其他方法可以解决我的问题?而不是使用蓝牙?

我想阅读 Core Bluetooth Programming Guide is a great start. However, this assumes the device you're connecting to is using Bluetooth 4.x which is widely known as Bluetooth Low Energy (BLE). If the device you're connecting to is using Bluetooth 2.x, you'll have to use the External Accessories Framework

EA 仅支持已通过 Apple MFI(为 iPhone 制造)认证的设备。

长话短说,如果您尝试连接的设备是蓝牙 2.x 而不是 MFI,那么您基本上是 SOL

否则,您可以很容易地开始连接到该设备。查看 LightBlue 以测试您是否连接到设备。它适用于任何 BLE 设备。

这里有一个 simple tutorial 让你开始使用 Core Bluetooth。