通过蓝牙将 iPhone 连接到 Arduino [英] Connect an iPhone to Arduino over Bluetooth

查看:83
本文介绍了通过蓝牙将 iPhone 连接到 Arduino的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够让我的 iPhone 应用程序通过蓝牙与我的 Arduino 通信.我发现了一些支持以下协议的蓝牙扩展板:BCSP、DUN、LAN、GAP SDP、RFCOMM 和 L2CAP.从我在谷歌搜索时发现的情况来看,iPhone 是否隐藏了它的蓝牙堆栈?!?这样对吗?真的没有机会让我的 iPhone 在不越狱的情况下与其他支持蓝牙的设备通信(据我所知,如果我使用 btstack: 设备上取得了成功.

BLE Shield 和 WiFly 的一个优点是您不必使用 Objective C 或 Macintosh——当然,这是一个选项.您可以通过 techBASIC 访问两者,直接在 iPad 或 iPhone 上运行.

您可能可以通过一些研究和努力自行解决这些问题,但是这些连接技术(以及其他一些不能直接应用于 Arduino 的技术)也包含在 构建 iPhone 和 iPad 电子设备,O'Reilly 的新书.

I would love to be able to let my iPhone-App communicate to my Arduino over Bluetooth. I found some Bluetooth shields that support the following protocols: BCSP, DUN, LAN, GAP SDP, RFCOMM, and L2CAP. From what i found while googling a bit, is that the iPhone is hiding it's bluetooth stack away?!? Is this correct? Is there really no chance to let my iPhone communicate with an other bluetooth enabled device without jailbreaking (which as far as I know would be required if i'd use btstack: http://code.google.com/p/btstack/)?

If bluetooth is really not possible, what other ways (expect WLAN) would you suggest to realize a communication? What I would love to realize is something like here: http://theiopage.blogspot.com/2011/08/yanis-android-wireless-eos-controller.html

Thanks for any tips!

解决方案

There are several connection technologies available.

As others have mentioned, standard Bluetooth (3.0) is controlled by the MFi program. The only way to connect to a non-jailbroke iPhone is to join the MFi program.

Serial access is interesting. You have to join MFi to distribute a serial device, but you can use the Redpark Serial Cable to connect your own iPhone to a serial device.

There are several ways to connect Bluetooth LE devices to the Arduino. One I've used is the RedBearLabs BLE Shield. It works pretty darn well.

You can also connect to an Arduino using a WiFi-serial bridge. I've had success with the WiFly device.

One of the neat things about the BLE Shield and WiFly is you don't have to use Objective C or a Macintosh--although that's an option, of course. You can access both through techBASIC, running right on the iPad or iPhone.

You can probably figure these out on your own with some research and effort, but these connection technologies (plus a few more that don't apply directly to Arduino) are also covered in Building iPhone and iPad Electronics Devices, a new book from O'Reilly.

这篇关于通过蓝牙将 iPhone 连接到 Arduino的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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