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

BLE keep disconnecting after connection using S120 central multilink and S110 proximity

Hi, I have been trying to connect to a proximity tag and stay connected but with no luck. What happening is that the unit connect does its thing and then disconnect with reason 0x13. This seem to be user termination.

I am using SDK 7.1.

It would stay connected for a couple minute and then disconnect and then the central would connect to it again. I am wondering if I am missing some step to connect to it properly. During the process it said bonded.

I have tried using the Master control panel and when I press bond it seem to not disconnect from it.

I am using S120 multilink central with changes to the service and profile to look for Link Lost Service. This connects fine. Once it found the characteristic I called "dm_security_setup_req()" which perform the authentication and bonding request.
After this it goes through and follower the sequence chart of the Device Manager Library Upto DM_EVT_DEVICE_CONTEXT_STORED then it disconnect.

Is there another message I am suppose to send or other set up I am suppose to do? Here is the log of the connection process


.< DM_EVT_CONNECTION
[DB]: Discovery of service with UUID 0x1803 completed with success for Connection handle 0
BLE DB Discovery completed
[DM]: >> dm_security_setup_req
[DM]: << dm_security_setup_req, 0x00000000
[DM]: >> BLE_GAP_EVT_CONN_SEC_UPDATE, Mode 0x01, Level 0x01
[DM]: Notifying application of event 0x16
[DM]:Queued request
[DM]: Initiating authentication request

0x0F 0x07 0x10 0x03 0x00 
[DM]:[CI 0x00]:[DI 0x01]: Security request result 0x00000000
[DM]: >> BLE_GAP_EVT_SEC_PARAMS_REQUEST
[DM]: 0x01, 0x01, 0x00, 0x01
[DM]: >> BLE_GAP_EVT_CONN_SEC_UPDATE, Mode 0x01, Level 0x02
[DM]: --> gattc_context_apply
[DM]: Notifying application of event 0x15
[APPL]:[0x00] >> DM_LINK_SECURED_IND, result 0x00000000
[APPL]:[0x00] << DM_LINK_SECURED_IND
[DM]: >> BLE_GAP_EVT_AUTH_STATUS, status 00000000

0x00 0x04 0x03 0x00 0x03 0x00 

0xEE 0x1D 0x5D 0xE9 0xF0 0x74 0x4F 0x52 0x98 0x0B 0x52 0xED 0x53 0xFA 0x1E 0x22 0x20 0x00 0x3D 0x35 0x74 0xE8 0x67 0x35 0xA4 0xF5 0xDD 0xDB 
[DM]:[CI 0x00]:[DI 0x01]: Bonded!

0x01 0x12 0x30 0xB4 0x54 0xAC 0xDE 
[DM]: --> device_context_store
[DM]:[DI 01]:[CI 00]: -> Updating bonding information.
[DM]: --> gattc_context_store
[DM]: Notifying application of event 0x14
[APPL]:[0x00] >> DM_EVT_SECURITY_SETUP_COMPLETE, result 0x00000000
[APPL]:[0x00] << DM_EVT_SECURITY_SETUP_COMPLETE
[DM]:Queued request
[DM]:Nothing pending!
[DM]:[0x01]:[0xFF]: Bond context Event
[DM]: Notifying application of event 0x22
[APPL]:[0x00] >> DM_EVT_DEVICE_CONTEXT_STORED
[APPL]:[0x00] << DM_EVT_DEVICE_CONTEXT_STORED
[DM]: Disconnect Reason 0x0013
Related