Other Parts Discussed in Thread: CC2640, , BLE-STACK
Hi,
I am using the 2.40.0.32 SDK.
I am facing a weird issue. I need to ensure that only one device/App can connect to the CC2640 LP at a time. I also need connectable advertising to be continuous. To achieve this, I did the following:
1. I changed the value of MAX_NUM_BLE_CONNS to 1. This is to ensure only one active connection to the CC2640 at any given time.
2. Did some slight changes in the code where, during link establishment, it checks if connections are > than MAX_NUM_BLE_CONNS, advertising and scanning are disabled. So, I removed this code, so that the advertising is not stopped.
However, after making the above changes, I am still facing the issue.
Issue-1: For MAX_NUM_BLE_CONNS = 1, after I connect my App to the LP and disconnect, the advertising stops.
Issue-2: For MAX_NUM_BLE_CONNS = 2, after I connect one App to the LP and disconnect, the advertising continues. But if I connect the 2 Apps(two phones) to the LP at the same time, it gets connected. But after two connections established, advertising just stops.
From my analysis, somewhere, the value MAX_NUM_BLE_CONNS is affecting the advertising. I check all aspects of code but unable to find where this is happening.
Any help would be appreciated.
Cheers
Vinay