DA14531 Authentication and Paring

Hello Renesas community,

I have two BLE variants 

1) one should connect with authentication,

2) second it should connect without authentication,

But both should happen with same software, I can differentiate these scenario by using VCU signal.

When ever the mobile app asks for the parring code user_app_on_tk_exch this function will get called.

From this function I need to call the below function with the same parring code that send by mobile app(central).

app_easy_security_tk_exch(paring_conidx, (uint8_t*)&ble_passward,sizeof(ble_passward), true);

Any other way I can skip these authentication steps.

Thanks for the help you are providing.

Parents
  • Hi  ,

    Is that the Key comparison is happening in CENTRAL or PHERIPERAL?

    According to the below code, I think it is happening in CENTRAL.

    void app_easy_security_tk_exch(uint8_t conidx, uint8_t *key, uint8_t length, bool accept)
    {
    struct gapc_bond_cfm* cmd;

    cmd = tk_exch_create_msg(conidx);

    // Load the pass key or the OOB provided key to the TK member of the created GAPC_BOND_CFM message
    memset((void*)gapc_bond_cfm_tk_exch[conidx]->data.tk.key, 0, KEY_LEN);
    memcpy(gapc_bond_cfm_tk_exch[conidx]->data.tk.key, key, length * sizeof(uint8_t));

    cmd->accept = accept;
    KE_MSG_SEND(cmd);
    gapc_bond_cfm_tk_exch[conidx] = NULL;
    }

Reply
  • Hi  ,

    Is that the Key comparison is happening in CENTRAL or PHERIPERAL?

    According to the below code, I think it is happening in CENTRAL.

    void app_easy_security_tk_exch(uint8_t conidx, uint8_t *key, uint8_t length, bool accept)
    {
    struct gapc_bond_cfm* cmd;

    cmd = tk_exch_create_msg(conidx);

    // Load the pass key or the OOB provided key to the TK member of the created GAPC_BOND_CFM message
    memset((void*)gapc_bond_cfm_tk_exch[conidx]->data.tk.key, 0, KEY_LEN);
    memcpy(gapc_bond_cfm_tk_exch[conidx]->data.tk.key, key, length * sizeof(uint8_t));

    cmd->accept = accept;
    KE_MSG_SEND(cmd);
    gapc_bond_cfm_tk_exch[conidx] = NULL;
    }

Children