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

why ble_advertising_start()returns error code 18

Excuse me:

                    Project in nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_hids_keyboard\pca10040e\s112\ses,After the device is connected, I call the sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION) to disconnect,Then call the  advertising_start(true)  to delete the binding,After the binding is deleted, the advertising_start(false) function is called to start advertise ,then return the error code 18.

Parents Reply
  • Hi 

    I have asked the SoftDevice team for input on this, and they asked me for the following:

    1) Which SoftDevice you are using. S112 v7.2.0 I believe?

    2) What is the disconnect reason returned with the BLE_GAP_EVT_DISCONNECTED event?

    3) Are you able to capture a sniffer trace when the disconnect happens?

    Getting an answer to 1) and 2) is most important, but if the issue is hard to investigate then having a sniffer trace can be of great help. 

    Best regards
    Torbjørn

Children
No Data
Related