Another finding is that it seems to be difficult to connect to peripheral when there are a lot of BLE devices around.
In my environment, there are roughly 10 BLE devices is at advertising state.
Is there any limitation for BLE in initiating connection from channel competition when several peripherals are advertising at the same time?
1 of 1 people found this helpful
Tried to play with Lightblue and hello sensor. Indeed it looks that every other time Lightblue disconnects after 10 seconds rather than right away. Really have no idea why. If you enter the same device right away there is no reconnection and you can read characteristics. So lightblue did not even try to disconnect. Meanwhile I cannot reproduce your problem with failed connection. After disconnection every time I try to connect it works like a charm. If you include following 2 lines in the beginning of the create function, there should be a bit more traces coming from the stack. But I am not sure what you will see for the problem like that. Over the air traces maybe the only choice.
extern UINT32 blecm_configFlag ;
blecm_configFlag |= BLECM_DBGUART_LOG | BLECM_DBGUART_LOG_L2CAP | BLECM_DBGUART_LOG_SMP;
I'll try your suggestion for gathering more log message if I can still reproduce it.
I'm also not able to see connection issue with different environment case, I doubt that this might related to the crowded situation of bunch peripherals around my device.
Thanks for your suggestion.