-
1. Re: connection handle will increase always
BoonT_56 Jul 20, 2017 12:59 AM (in response to user_2139251)1 of 1 people found this helpfulFirstly, I don't have a scenario of 34 ble devices broadcasting simultaneously.
With only one master (client), we had shown that there are no issue connecting up to
4 servers, which is the default maximum in the hello_client app. The real maximum is
8 though.
-
2. Re: connection handle will increase always
BoonT_56 Jul 20, 2017 1:06 AM (in response to user_2139251)Did you have the following patch as you compile your hello_client?
APP_PATCHES_AND_LIBS += central_role_patches.a
-
3. Re: connection handle will increase always
user_2139251 Jul 20, 2017 1:10 AM (in response to BoonT_56)yes, my hello_client app make file has below line text
########################################################################
################ DO NOT MODIFY FILE BELOW THIS LINE ####################
########################################################################
# Devices that support central/scatternet role should include
# special central role patch library
APP_PATCHES_AND_LIBS += central_role_patches.a
APP_PATCHES_AND_LIBS += additional_gatt_apis.a
-
4. Re: connection handle will increase always
user_2139251 Jul 20, 2017 1:16 AM (in response to BoonT_56)Hi Btta,
I think this issue is related with blecm_setmaxconnection(5) , if hello client occurs 2 times connection timeout event, 20736 only connect 3 slave devices, if connection timeout event occurs 3 times, it can connect 2 slave devices, can Cypress team review the lower layer source code with this issue? thanks a lot.
-
5. Re: connection handle will increase always
BoonT_56 Jul 20, 2017 2:01 AM (in response to user_2139251)Ok, at least now I understand what is your point... Let me check this out internally...
-
6. Re: connection handle will increase always
user_2139251 Jul 20, 2017 2:07 AM (in response to BoonT_56)Hi Btta,
If you have patch for this issue, please share the patch with me, thanks a lot.
-
7. Re: connection handle will increase always
BoonT_56 Jul 21, 2017 1:22 AM (in response to user_2139251)I tried to to reproduce but to no avail. I used the following:
1) one tag board running puart_control app
2) two tag boards with different BD addresses running hello_sensor app
3) utilize the ClientControl.exe accompanying puart_control app
I ran a few scenarios but I always able to see that the handles return to the smallest available one. Perhaps
this is not an accurate depiction of your case. Can you do something similar to what I have done and let me
know how you may reproduce it?
-
8. Re: connection handle will increase always
user_2139251 Jul 21, 2017 1:43 AM (in response to BoonT_56)Hi Btta,
You must use two tag boards to run hello_client or puart control app, more master boards try to connect slave devie, when it occurs connection timeout case: BLEAPP_APP_TIMER_CONN, it should reproduce this issue.
By the way, I have another question: why does hello_client app can't stop scanning report sometimes when it find a correct device and try to connect it event I call blecen_Scan(NO_SCAN);?
-
9. Re: connection handle will increase always
BoonT_56 Jul 21, 2017 2:07 AM (in response to user_2139251)I may not have the resources at hand now to reproduce this issue. Do you have any log that you can share for the simplest scenario? If this is too time consuming then we may have to move to MyCase instead to investigate this issue.
-
10. Re: connection handle will increase always
user_2139251 Jul 21, 2017 2:50 AM (in response to BoonT_56)Hi Btta,
I have work around solution to fix this issue, now I have another issue which I am not sure the root cause: when connection timeout or disconnect reason is 0x3e, when try to scan new device, there isn't any device report, I attach two log here, when the log occurs "_getBondedInfoIdx, Out of memory" or "Delete Bonded Info, out of memory",
and my app begins new scan, there isn't any adv report, in these two logs, you also can find the connection timeout case, you can search key word "connect".
-
11. Re: connection handle will increase always
user_2139251 Jul 21, 2017 3:21 AM (in response to BoonT_56)Hi Btta,
I add attached file about connect handle increase case when connection timeout occurs, you can refer to it, thanks a lot.
-
12. Re: connection handle will increase always
BoonT_56 Jul 23, 2017 7:33 PM (in response to user_2139251)Can you help me to create a new case for the new issue? We try to limit one discussion topic per case.
-
13. Re: connection handle will increase always
user_2139251 Jul 23, 2017 8:41 PM (in response to BoonT_56)Hi Btta,
I have transfered these two logs to the below issue case, thanks a lot