CoreBluetooth[WARNING] Unknown error: 14 on iPhone 5
Asked Answered
T

1

9

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

CoreBluetooth[WARNING] Unknown error: 14

and the peripheral is disconnected.

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 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.

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).

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

Thanks,

Tirpitz answered 22/3, 2013 at 23:58 Comment(0)
S
6

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

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?

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.

Scyphozoan answered 23/3, 2013 at 9:19 Comment(1)
These errors are indicated in the Constants of the CoreBluetooth.framework.Spicate

© 2022 - 2024 — McMap. All rights reserved.