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

Disconnect reason 0x0013

1.     Nrf52840  acts as central and Nrf52832 acts as peripheral. when  nrf52840 has connected with nrf52832, nrf52832 disconnected occasionally. Disconnect reason 0x0013. When being used 52840 DK and 52832 DK, it disconnect occasionally.

     How can i fix it?

nrf52840: sdk16.0

nrf52832: sdk17.0.2

2. When nrf52840 acts as central, how many peripherals it can connect stably?

    When i tests that, nrf52840 only connects 17 peripherals.

  • Hi

    1. Disconnect reason 0x13 indicates that the remote user terminated the connection (defined in ble_hci.h). This means that if you're seeing it on the central side, the peripheral is disconnecting for some reason. What does the device not reporting the 0x13 reason return when the disconnect occurs? You'll need to find out why this other device initiates the disconnects you're seeing to fix these occasional disconnects.

    2. A central should be able to handle up to 20 connections, but will be limited to what the 

    NRF_SDH_BLE_TOTAL_LINK_COUNT and NRF_SDH_BLE_CENTRAL_LINK_COUNT is set to in the sdk_config.h file. If both of these are set to 20 you should be able to connect to and handle up to 20 peripheral devices.
    What issues do you see if you try connecting to more than 17 peripherals? Please note that this also depends on the connection parameters of the devices.

    Best regards,

    Simon

Related