Topics

Can not get any call back when bluetooth connect fail


ghost <hfggw@...>
 

Hi all,

I am use bluetooth function in NRF52_PCA10040 board, I get a issue that when a central get a connect fail after I call bt_conn_create_le function, it didn’t get any call back.
I do know the connect was fail, so that I can not start SCAN function again which is stop before bt_conn_create_le.
I check the log, it has been get in the function of le_conn_update in the conn.c, but nothing to notify or call back to my APP.
Do you have any suggestion?

Thanks
guiwu.guo


Johan Hedberg
 

Hi guiwu gue,

On Fri, Apr 07, 2017, ghost wrote:
I am use bluetooth function in NRF52_PCA10040 board, I get a issue
that when a central get a connect fail after I call bt_conn_create_le
function, it didn’t get any call back.
I do know the connect was fail, so that I can not start SCAN function
again which is stop before bt_conn_create_le.
I check the log, it has been get in the function of le_conn_update in
the conn.c, but nothing to notify or call back to my APP.
Do you have any suggestion?
Is this the same issue you've outlined here:

https://jira.zephyrproject.org/browse/ZEP-2005

If so, does the attached patch help?

Johan


ghost <hfggw@...>
 


Hi Johan,

Thanks for your reply, I fail to add your batch by "git apply  conn-timeout.patch",
I add the modification manually, but the issue still doesn't fix.
What I found is that when the issue happen, the connect state is "connect" but not "connect-scan".
I add the log in the attachment, please check it, in the log I only open the "conn debug"

Thanks,
guiwu.guo


At 2017-04-08 02:22:18, "Johan Hedberg" <johan.hedberg@...> wrote: >Hi guiwu gue, > >On Fri, Apr 07, 2017, ghost wrote: >> I am use bluetooth function in NRF52_PCA10040 board, I get a issue >> that when a central get a connect fail after I call bt_conn_create_le >> function, it didn’t get any call back. >> I do know the connect was fail, so that I can not start SCAN function >> again which is stop before bt_conn_create_le. >> I check the log, it has been get in the function of le_conn_update in >> the conn.c, but nothing to notify or call back to my APP. >> Do you have any suggestion? > >Is this the same issue you've outlined here: > > https://jira.zephyrproject.org/browse/ZEP-2005 > >If so, does the attached patch help? > >Johan


 


ghost <hfggw@...>
 

Hi Johan,

Oh, I forgot to answer a question in the previous mail. 
--Is this the same issue you've outlined here:
Yes, it is the same issue.
Thanks,
guiwu.guo




At 2017-04-10 10:58:51, "ghost" <hfggw@...> wrote:

Hi Johan,

Thanks for your reply, I fail to add your batch by "git apply  conn-timeout.patch",
I add the modification manually, but the issue still doesn't fix.
What I found is that when the issue happen, the connect state is "connect" but not "connect-scan".
I add the log in the attachment, please check it, in the log I only open the "conn debug"

Thanks,
guiwu.guo


At 2017-04-08 02:22:18, "Johan Hedberg" <johan.hedberg@...> wrote: >Hi guiwu gue, > >On Fri, Apr 07, 2017, ghost wrote: >> I am use bluetooth function in NRF52_PCA10040 board, I get a issue >> that when a central get a connect fail after I call bt_conn_create_le >> function, it didn’t get any call back. >> I do know the connect was fail, so that I can not start SCAN function >> again which is stop before bt_conn_create_le. >> I check the log, it has been get in the function of le_conn_update in >> the conn.c, but nothing to notify or call back to my APP. >> Do you have any suggestion? > >Is this the same issue you've outlined here: > > https://jira.zephyrproject.org/browse/ZEP-2005 > >If so, does the attached patch help? > >Johan