problem of reconnection with bonded DA14681

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
5 posts / 0 new
Last post
nigelyang
Offline
Last seen:1week 2 hours ago
Joined:2018-03-20 08:24
problem of reconnection with bonded DA14681

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:
Qinjiny_Dialog
Offline
Last seen:1month 2 days ago
Staff
Joined:2016-11-01 05:47
Hi nigelyang,

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

nigelyang
Offline
Last seen:1week 2 hours ago
Joined:2018-03-20 08:24
Hi Dialog,

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

PM_Dialog
Offline
Last seen:16 hours 41 min ago
Staff
Joined:2018-02-08 11:03
Hi nigelyang,

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

nigelyang
Offline
Last seen:1week 2 hours ago
Joined:2018-03-20 08:24
hi 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.