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

periodic disconnect when nRF52 central

Connect establish with smartfone in peripherial mode. SDK13. S132. Periodic I observe disconnect, than 2-3 advertise packet and new connect again. Where can I see what reason of those disconnect? And how to fix it?

Parents
  • I'm not convinced it is a bug on any side before seeing the radio trace. Without seeing what is happening you can only half-blindly guess (more or less what you do now). If Android API claims to the app that remote host disconnected on LL than you might be doping it in nRF5x FW. Try to debug all BLE events coming to the app and all SD calls you issue. From the sequence you might see when and why you invoke LL_TERMINATE (it should not come out of SoftDevice just like that, there should be request from application level).

Reply
  • I'm not convinced it is a bug on any side before seeing the radio trace. Without seeing what is happening you can only half-blindly guess (more or less what you do now). If Android API claims to the app that remote host disconnected on LL than you might be doping it in nRF5x FW. Try to debug all BLE events coming to the app and all SD calls you issue. From the sequence you might see when and why you invoke LL_TERMINATE (it should not come out of SoftDevice just like that, there should be request from application level).

Children
No Data
Related