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

Error: BTLE_CONN_FAILED_TO_BE_ESTABLISHED

I have been following the advertising tutorial and decided to start my own application using nordics git repo as a reference. After a few debug sessions I found that I needed to update my RAM settings. Everything is up and running now and I can see that my device is advertising in MCP. However, when I select the device and click "Connect" or "Discover Services" I get the following error:

[14:08:31.1] ConnectToDevice()
[14:08:31.3] SERVER: Received packet <HciEvent: eventCode=0x05> - <HciEvent: eventCode=0x05>
[14:08:31.3] ----------------------------
[14:08:31.3] Connected to device
[14:08:31.3] Role: 0
[14:08:31.3] PeerAddressType: 1
[14:08:31.3] PeerAddress (MSB): FB587D06F2B9
[14:08:31.3] Connection Interval: 20.0ms
[14:08:31.3] Connection Latency: 0
[14:08:31.3] Supervision Timeout: 3000ms
[14:08:31.3] Clock Accuracy: (1)
[14:08:31.3] ----------------------------
[14:08:31.3] Connected to FB587D06F2B9
[14:08:31.4] Lost connection to device. Reason: BTLE_CONN_FAILED_TO_BE_ESTABLISHED
[14:08:31.4] SERVER: Received packet <HciEvent: eventCode=0x0A> - <HciEvent: eventCode=0x0A>
[14:08:31.4] SERVER: Received Link Loss

I spent most of my day trying to figure this out but I'm at a loss. When looking at the docs it mentions an optional app_error_fault_handler that can be implemented for debugging however I was not able to hit a break point or any logs within this function. After failed debugging attempts I searched around to see what error 0x05 corresponds to. This indicates it may be an authentication issue on my end however I have not altered any sort of security based configurations.

Any help would be greatly appreciated. Thanks!

  • Device: nRF51422
  • Soft Device: s130
  • SDK: 11

Screenshot of advertisement: image description

Related