Hi Dialog
Dialog DSPS App is hard to connect with " bonded" DA14681 when I have three tasks in my project. However if I reduce the task number to be two, the connection with bonded device seems
to improve better ( 50% success). The condition is weird because the first connection (bonding process) is no problem, but if I disconnect device and then connect it again (connect with bonded one) , the outcome is mention previously. It seems the device's response is not in time, so that the two side can not create the connection.
please guide me how to solve the problem without decreasing the number of tasks in project? I am running 16Mhz speed (sysclk_XTAL16M).
thanks
Device:
Hi nigelyang,
I will test to replicate this issue and discuss with my colleague who builds this project to see if there's a solution for your issue.
BR,
Qinjin Yang
Hi Dialog,
Sorry, I want to revise my question to be " difficult to reconnect the bonded device if using "PRIVATE_STATIC_ADDRESS" and "PRIVATE_RANDOM_RESOLVABLE_ADDRESS" ".
I try to use BMS project to test it ,then got the same result. I add the below code in my project. Do I miss some setting if I want to use the two above address mode ?
if(ble_gap_address_set(&user_bd_address , 15000))
{
printf("set address error .\r\n");
}
thanks for your help
Hi nigelyang,
If I understood correctly from what you mentioned in your post, that you would like to accomplish is to configure both "PRIVATE_STATIC_ADDRESS" and "PRIVATE_RANDOM_RESOLVABLE_ADDRESS" at the same time? If I misunderstood your question, please correct me. In case you would like to do this, you are not able to have both of the configurations at the same time.
Thanks, PM_Dialog
hi Dialog,
I just fail to reconnect the bonded device in the two configurations(not at the same time). I chose one of the two in my project, neither "PRIVATE_STATIC_ADDRESS" nor "PRIVATE_RANDOM_RESOLVABLE_ADDRESS" is failed . I just wonder what is setting I miss if I want to use either address configuration with BMS service? In the BMS example project, as long as I add the ble_gap_address_set() function to set one of the two configurations, it is not able to reconnect the bonded device, especially the re-connection after resetting bonded device. The DA14681 seems not to run ble_mgr_task( ).
thanks for your help.