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

nrf51822 Central disconnection problem

Hi all,

Using nRF51422 on nRF51-DK as a Central I have been successfully connected to a non-Nordic BLE peripheral, however when using the ISP130301 chip that embedding an nRF51822_CEAA (256 Ko/ 16 Ko) the Central is being disconnected with the 0x8 (BLE_HCI_CONNECTION_TIMEOUT) or 0x3E (BLE_HCI_CONN_FAILED_TO_BE_ESTABLISHED) disconnection reasons.

Could anyone please give a hint here! what could be the reason of the disconnection?

This is the Wireshark trace file: trace.pcapng

nRF51822 Revision: image description

Debugging the disconnection: image description

ble_app_uart_c trace: trace_27_07_16.pcapng

ISP schematic: image description

ISP picture

  • Anyone have an idea about such issue ?

  • I guess it is having trouble connecting to the peripheral and/or keeping the connection. Could you sniff what is happening on air? You can use the nRF Sniffer.

  • Hi Peter, In order to be able to attache the Wireshark trace, I have added an answer below! please take a look on it, thanks

  • Please edit your question and upload the trace there. Are you running the central on the nRF51-DK or the ISP130301? It seems you are right, something happens with the central, it stops transmitting, and the peripheral hits the supervision timeout. I'm not sure what could be causing it. What SoftDevice and SDK version are you using? Do you have any more information than that it is CEAA? So we can figure out what revision the nRF51822 chip is? The next step is to figure out what is happening on the chip. Do you get a hard fault? A reset? Something else?

  • Actually when running the central on nRF51-DK (PCA10028) everything is working fine, the peripheral never disconnects! The trace I provided is for central on ISP130301, I'm using:

    • Softdevice: s130_nrf51_1.0.0_softdevice
    • SDK: nRF51_SDK_10.0.0_dc26b5e
    • nRF51822 revision: please see attached screenshot (using nrf_ic_info_get function)

    To connect to the peripheral I'm using the the ble_app_uart_c project from the SDK (after made few modifications on the code and the project settings), I have attached the project you can take a look on it, maybe it could help!

    I have already checked that no hard fault neither a reset is happening! I was using Keil for debugging this and to see the disconnection reason (see above attached screenshot)

    Thank you

1 2 3