蓝牙低功耗应用程序无法在iOS 7的特性写 [英] Bluetooth Low Energy app failed to write characteristics on iOS 7

查看:212
本文介绍了蓝牙低功耗应用程序无法在iOS 7的特性写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有通过打开的连接BLE设备进行通信的蓝牙低功耗(BLE)应用程序。我使用CoreBluetooth库。之后我升级我的iPhone到iOS 7和X code与X code 5.我重新编译了低功耗蓝牙的应用程序,并发现它不再工作。连接成功。的服务和特性,没有任何问题发现的。即便特点的阅读似乎罚款。但写这应该触发BLE装置上的一些操作的特性没有任何影响。

I have a Bluetooth Low Energy (BLE) app that communicates with a BLE device through open connection. I am using CoreBluetooth library. After I upgraded my iPhone to iOS 7 and XCode to XCode 5. I recompiled my Bluetooth Low Energy app and found it no longer working. The connection is successful. The services and characteristics are discovered with no problems. Even the reading of the characteristics seems fine. But writing to a characteristic which should trigger some action on the BLE device has not any effect.

如果我使用的是X code相同的应用程序下载到另一部iPhone是 iOS 6中后,一切工作正常。这样我就可以判断问题可能是一些与iOS 7,而不是X code 5的重新编译。它也有可能X code 5 prepares不同的应用程序适用于iOS 6设备甚至从同一个项目,因为我可以看到应用程序的出现是在两个不同的设备。

If I use XCode to download the same app to another iPhone with iOS 6, everything works fine. So I can determine the problem may be something with iOS 7 instead of XCode 5’s recompiling. It’s also possible XCode 5 prepares a different app for iOS 6 device even from a same project because I can see the app’s appearances are different on two devices.

那么是什么改变了从iOS 6中到iOS 7,使写入特性失败了?

So what’s changed from iOS 6 to iOS 7 that makes writing to characteristics failed?

推荐答案

我遇到了同样的问题,这个问题是与固件不是你的iOS code。 iOS6的是与类型特征较为宽松,但iOS7是比较严格的。

I ran into the same problem, the issue is with the the firmware not your iOS Code. iOS6 was more relaxed with the characteristics types, but iOS7 is more stringent.

为特色的WriteWithoutResponse标志已设置明确与iOS7工作

The WriteWithoutResponse flag for the Characteristic has to set explicitly to work with iOS7

我用了RedBear的饼干为Arduino的在我的启动来测试我们的产品,这与iOS6的奇妙工作,但,当应用程序迁移到iOS7,写操作会悄悄失败。

I had used RedBear's Biscuit for Arduino at my startup to test our product, which worked wonderfully with iOS6 but when the app migrated to iOS7, the writes would fail quietly.

更详细的讨论是在这里(看到Mattj949更新)@ https://redbearlab.zendesk.com/entries/25031402-BLE-Mini-and-iOS-7
有关于这个问题, HTTP一些苹果主题://列表。 apple.com/archives/bluetooth-dev/2013/Aug/msg00046.html 并的 http://lists.apple.com/archives/bluetooth-dev/2013/Aug/msg00050.html

More detailed discussion is here (see update from Mattj949) @ https://redbearlab.zendesk.com/entries/25031402-BLE-Mini-and-iOS-7 There are some Apple Threads on this issue, http://lists.apple.com/archives/bluetooth-dev/2013/Aug/msg00046.html and http://lists.apple.com/archives/bluetooth-dev/2013/Aug/msg00050.html

这篇关于蓝牙低功耗应用程序无法在iOS 7的特性写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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