如何通过蓝牙在iOS设备连接到非iOS设备(Arduino的设备)? [英] How can I connect an iOS device to non iOS device (Arduino devices) via Bluetooth?

查看:827
本文介绍了如何通过蓝牙在iOS设备连接到非iOS设备(Arduino的设备)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在谷歌搜索后,我发现,人们说这是唯一可能在iOS设备使用的MFI项目的非iOS设备连接。是真的吗?

After searching on Google, I found that people say it's only possible to connect an iOS device with a non iOS device with the 'MFi program'. Is that true?

我的项目主要集中在与Arduino的设备通过蓝牙直接发送和接收信息。

My project is mainly focused on sending and receiving information with the Arduino device via Bluetooth directly.

越狱可能的iOS和非iOS设备之间的通信?如果是的话,有没有参考?

Is communication between iOS and non iOS devices without jailbreak possible? If yes, is there a reference?

(我看堆栈 溢出问题的 How可以在iPhone上访问无线或蓝牙另一个非iPhone设备? 的。)

(I viewed Stack Overflow question How can an iPhone access another non-iPhone device over wireless or Bluetooth?.)

推荐答案

正如我在上面链接的问题指出,在非越狱的iOS设备的外部设备一般蓝牙通信仅限于小额信贷​​机构兼容的蓝牙硬件。

As I stated in the above-linked question, general Bluetooth communication to external devices on non-jailbroken iOS devices is restricted to MFi-compliant Bluetooth hardware.

然而,较新的iOS设备(iPhone 4S,新的iPad)能够与外部设备的蓝牙4.0 LE通信,而不需要为这些设备是MFI兼容。这种交互是通过全新的酷睿架构的蓝牙,它可以让您发送和接收任意数据,并从蓝牙LE设备完成。这仅与那些新上市的iOS设备上工作的。

However, newer iOS devices (iPhone 4S, new iPad) are capable of Bluetooth 4.0 LE communication with external devices without the need for those devices to be MFi-compliant. This interaction is done through the new Core Bluetooth framework, which lets you send and receive arbitrary data to and from Bluetooth LE devices. This only works with those listed newer iOS devices, though.

添指出一个有趣的黑客工具,你也许可以用在使您的设备脱身出现像蓝牙HID键盘。设备如这个酒吧code扫描仪有特殊的模式,显示为HID设备到iOS。你也许能够齐心协力在此基础上的东西,但所有的数据传输将成为从设备单向的,它看起来像这将需要输入数据转换成文本字段,如果你有一个键盘连接。

Tim points out an interesting hack that you might be able to get away with in making your device appear like a Bluetooth HID keyboard. Devices like this barcode scanner have special modes to appear as HID devices to iOS. You might be able to pull something together based on this, but all data transfer will be one-way from your device, and it looks like this will require entering that data into text fields as if you had a keyboard connected.

这篇关于如何通过蓝牙在iOS设备连接到非iOS设备(Arduino的设备)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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