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

Central S120 and Authenticate

Hello,

I want to implement a proximity central. At the moment, I do not get a bonded connection from central to proximity peripheral (For peripheral i use the proximity application for evalutaion board). As described in documentation a bonded state is needed. Is there a central example in which a bonded state is established? Do i also need the bond manager in central device?

At the moment, I proceed as follows:

  1. conn_mngr_start()
  2. After receive CONN_MNGR_CONN_COMPLETE_IND event --> start sd_ble_gap_authenticate()
  3. After receive BLE_GAP_EVT_SEC_PARAMS_REQUEST evnt --> start sd_ble_gap_sec_params_reply()
  4. After receive BLE_GAP_EVT_AUTH_STATUS --> start ble_db_discovery_start

The function start ble_db_discovery_start returns error code 0x3001.

Is this procedure correct? Or what is the best practice here?

Parents
  • The problem is that I get back a disconnect event after the connect event. In addition, the advertising LED is still flashing after i get the connect event. But after a while the LED will stop flashing. When I press the connect button in the Master Control pane the advertising LED stop flashing immediately. Therefore, I think there is a basic problem when establishing a connection with central stack. But so far i can't finde my mistake.

  • I'm not quite sure I understand what you mean. Can you please check the reason field of the disconnect event struct, to see what kind of disconnect you get?

    Also, if possible, I think it would be helpful if you could share the complete application you're working with. Can you either edit your original question here, and attach it there, or if you don't want to share it here in the open, please open a support case and include it there?

Reply
  • I'm not quite sure I understand what you mean. Can you please check the reason field of the disconnect event struct, to see what kind of disconnect you get?

    Also, if possible, I think it would be helpful if you could share the complete application you're working with. Can you either edit your original question here, and attach it there, or if you don't want to share it here in the open, please open a support case and include it there?

Children
No Data
Related