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.
Hi Nothing,
Thank you for posting your questions online.
I am afraid not, please find this security connection tutorial. it's not just the TK key exchange:
DA1453x/DA1458x Tutorial BLE Security
BR,
JH_Renesas
Hi JH_Renesas ,
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;}
Do you have the host MCU control for DA14531?
If you do, the Codeless SDK is more adaptable for your requirement.
if not, you can refer to the codeless SDK about the switching of the security feature.
9. AT Commands — DA145XX Tutorial SDK Getting started
you can refer to this feature switch logic to your project.
Did you mean AT command interface as host MCU control, if so I am not using AT commands in my project I am using SDK_6.0.20.1338 this SDK.
Thanks for your info.
Yes, you are using SDK_6.0.20.1338, and we do not have such example for your application scenario
but you can refer the code snippets that Codeless SDK does.
for example:
DA145xx CodeLess AT Command Set v6.380.20.66