This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

iOS CoreBluetooth unlikely error

Hello, I discover and connect my nRF51822 service. It can be peripheral and Communication read/write data. but have some issue for disconnect/reconnect .When My app for iOS connect nRF51822 and send some data, my ios app shaow some message :Unlikely error. But I use dong Debuger is OK connect. How explain unlikely error message? what it is meaning ?

James Zhang

APPLE BLE ERR MES20140105154322.jpg

  • I can't say that I've seen this particular error before, but it seems to indicate that there is some problem with your code. Have you tried running the nRF51 application with the debugger, and putting a breakpoint in app_error_handler? If you could share your code, so that I can try to run it on my end, I'd be happy to try reproducing. Which softdevice and SDK version are you working with?

    Also, do you have access to an on-air sniffer so that you can see what's happening over the air? If you have an XLR2 evaluation kit to spare, you can try to use our sniffer.

  • I use s110_nrf51822_6.0.0-5.beta. My SDk is 5.0. Thanks your remind for puting a breakpoint in app_error_handler. I am not have an XLR2 evaluation kit. Is it your Nordic kit? I will get one.

  • Hi there,

    Unlikely is actually an ATT error, which maps to 14 (0x0E), you can see this in ble_gatt.h:

    #define BLE_GATT_STATUS_ATTERR_UNLIKELY_ERROR 0x010E /**< ATT Error: Very unlikely error. */

    Please note that the 0x01 that preceeds the 0x0E is only internal to the stack.

    Are you running an ATT client or server in the nRF51?

    If using a server on the chip, are you using authorization at all, where you can override the error code sent back to the client? (i.e. are you calling sd_ble_gatts_rw_authorize_reply() ) ?

    Carles

Related