[英]Connecting hc-05 with iPhone SE iOS(v11.0)
I have done some research on core bluetooth framework. 我已经对核心蓝牙框架做了一些研究。 Successfully setup discovery of peripheral of other iPhone, connect, discovered services and characteristics and write some values.
成功设置其他iPhone外围设备的发现,连接,发现服务和特性并编写一些值。 All went well.
一切顺利。 Surprisingly come to know there is apple MIFI program (need to research on ot)
令人惊讶地发现有苹果MIFI计划(需要研究ot)
In excitement I ordered iPhoneSE, HC-05 bluetooth module, Arduino Builder's Kit R2 with original Arduino UNO. 我兴奋地订购了iPhoneSE,HC-05蓝牙模块,Arduino Builder的套件R2和原装Arduino UNO。 It took some days/wasted in shipment and decent amount and now it's not working.
它花费了几天/浪费在装运和体面的数量,现在它没有工作。
I write proper set up/initialization for peripheral and central classes, adopted delegates and I think it's all correct. 我为外设和中心类编写了正确的设置/初始化,采用了委托,我认为这一切都是正确的。 However I am not able to connect to HC-05 bluetooth module.
但是我无法连接到HC-05蓝牙模块。
Observations : 观察 :
On a Android device i turned on bluetooth in device settings, HC-05 was able to be discovered, enter 0000/1234 (password as per documentation). 在Android设备上,我在设备设置中打开蓝牙,可以发现HC-05,输入0000/1234(密码根据文档)。 And yes i was able to connect it.
是的,我能够连接它。 It means HC-05 is not malfunctioning .
这意味着HC-05没有发生故障 。
On a iPhoneSE iOS v11.0, Setting -> turn on bluetooth. 在iPhoneSE iOS v11.0上,设置 - >打开蓝牙。 But HC-05 is
但是HC-05是
not discoverable. 不可发现。
I simply want to be successfully discover and connect to HC-05 module using BLE technology. 我只是想成功发现并使用BLE技术连接到HC-05模块。 Then with delegate methods look up services/characteristics and then try to on/off led.
然后使用委托方法查找服务/特征,然后尝试打开/关闭led。
I can provide more info and background if needed. 如果需要,我可以提供更多信息和背景。
I need some help and direction so that i can purchase the correct bluetooth module which connect to iPhone, and I am sure I can do it. 我需要一些帮助和方向,以便我可以购买连接到iPhone的正确蓝牙模块,我相信我能做到。
Thanks. 谢谢。
Apple devices under the MFi licensing scheme only support limited profiles . MFi许可方案下的Apple设备仅支持有限的配置文件 。
HC-05 is based on Bluetooth 2.0. HC-05基于蓝牙2.0。 What will work for Apple mobile devices (iPhone, iPad) will be those modules that utilise Bluetooth 4.0 or Bluetooth Low Energy (BLE).
适用于Apple移动设备(iPhone,iPad)的将是那些使用蓝牙4.0或低功耗蓝牙(BLE)的模块。
The Hc-05 isn't compatible with iOS. Hc-05与iOS不兼容。
This is because Apple uses MFi Licensing Program and Hc-05 is not licensed. 这是因为Apple使用MFi许可计划而Hc-05未获得许可。
To get things working go for a module supporting minimal BT Version V4.0 BLE. 为了让工作变得有效,可以选择支持最小BT版本V4.0 BLE的模块。 Better even BT Version: V4.2 BLE & V5.0(better range and larger packet-size), if iOS(v11.0) supports it.
更好的甚至BT版本:V4.2 BLE和V5.0(更好的范围和更大的数据包大小),如果iOS(v11.0)支持它。
I am not going to recommend a specific model, that's what Google is for. 我不打算推荐一个特定的型号,这就是谷歌的用途。
To answer above question- HC-05 will not connect iPhone. 回答上述问题 - HC-05无法连接iPhone。 Because HC_05 is not bluetooth low energy.
因为HC_05不是蓝牙低能量。 I have used AT-09 from amazon .
我用亚马逊的 AT-09。
I have written complete article how I achieved it here , and challanges I faced with solution. 我写了完整的文章,我是如何在这里实现的,以及我面临解决方案的挑战。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.