CoreBluetooth【警告】未知错误:14在iPhone 5 [英] CoreBluetooth[WARNING] Unknown error: 14 on iPhone 5

查看:319
本文介绍了CoreBluetooth【警告】未知错误:14在iPhone 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够连接到使用BLE外围设备,但阅读的一些特点,框架返回后不久:

I am able to connect to a peripheral device using BLE, but shortly after reading some characteristics, the framework returns:

CoreBluetooth【警告】未知错误:14

和外围断开。

纵观BT Core_V4.0规范,我不知道是什么错误意味着。是14进制值?根据该规范它意味着以下错误:(D部分第2节 - 错误codeS)

Looking at the BT Core_V4.0 spec, I am not sure what the error means. Is the 14 a hex value? does it mean the following error according to the spec: (Part D Section 2 - Error Codes)

2.20远程设备终止的连接,由于低资源(0×14)
由于低资源错误code远程设备终止的连接表明远程设备终止,因为资源不足的连接。

2.20 REMOTE DEVICE TERMINATED CONNECTION DUE TO LOW RESOURCES (0X14) The Remote Device Terminated Connection due to Low Resources error code indicates that the remote device terminated the connection because of low resources.

我试图更换电池,但没有一个不同的效果。

I tried changing the battery but did not have a different effect.

另外,我不知道如何捕捉这些错误的CB,我只看到他们的记录,但在设备断开连接,它不提供错误(它为空)。

Also, I don't know how to catch these CB errors, I only see them logged, but when the device disconnects, it does not provide an error (it is null).

我不直接控制源$ C ​​$ C外设,但可以要求一个bug修复。所以任何提示是AP preciated它。

I do not directly control the source code for the peripheral but can ask for a bug fix. So any hints are appreciated it.

谢谢,

推荐答案

您无法拦截这些CB错误,他们只是从下层BLE痕迹。

You cannot intercept these CB errors, they are just traces from lower layer BLE.

例如错误13是当写入的数据的长度是不作为关贸总协定数据库中指定。
错误14意味着连接被另一端(外设)关闭。我已经看到了这几次。有些时候,我读数据速度太快(你是不是允许请求之前previous一次访问已经回答了,没有在每次连接BLE只有1资源,也许这就是你见?

Error 13 for instance is when the length of written data is not as specified in the GATT database. Error 14 means the connection was closed by other side (peripheral). I have seen this several times. Some times I read data too fast (You are not allowed to request next access before previous has been answered, there is only 1 "resource" in BLE per connection. Maybe this is what you also see?

与往常一样,最好是让安装嗅探器软件的TI BTLE USB适配器,然后与加密狗使用BLE模式TI RF Sniffer工具。你得到了很多的你可以从这些痕迹调试信息。像查看是否有多于一个的读出或不响应写请求

As always it is best to get the TI BTLE USB Dongle with sniffer sw installed and then use the TI RF Sniffer tool in BLE mode with that dongle. You get a lot of information you can debug from in those traces. Like see if there are more than one read or write request without response.

这篇关于CoreBluetooth【警告】未知错误:14在iPhone 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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