This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

NRF51822 disconnects connection after 1 min

I'm using a custom designed PCB around the NRF51822 that broadcasts accelerometer readouts on a characteristic. The application is based on s110 uart example and has been working fine. However, I am experiencing connection issues with a specific program on my PC.

Using either Apple's Bluetooth Explorer or an iPad application such as BLE Tool (itunes.apple.com/.../id525235616 I have no trouble connecting and setting a notify on the ACC characteristic. Whenever the device is rotated or turned the ACC value updates and the connected application receives an notify.

On the PC i'm using Noble (a node.js BLE implementation) that also works fine. However, only for the first minute. After around 60 seconds the connection is disconnected. From debugging the NRF I have found that the reason for the disconnect is 0x16 (LOCAL_HOST_TERMINATED_CONNECTION). So apparently the NRF initiates the disconnect. According to here (devzone.nordicsemi.com/.../) the reason could be a L2Cap connection parameter update timeout or a pairing failure.

Is there any way to find out the specific reason for the disconnect? Or is it possible to ignore the L2Cap connection parameter update timeout? Everything works fine in the first 60 seconds so I would be perfectly happy if I can just let the connection stay alive.

I have captured two debug sessions with Wireshark: NRF51822-Noble-debug-session.zip One between the NRF and Noble and one between NRF and the iPad application. I am not able to see what is different in the connection but maybe you guys are able to :)

Thanks in advance for your time!

Parents Reply Children
No Data
Related