This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF8001 multi-bonding and direct connect

Hello !

In my project I have 3 phones, witch connects to one nRF8001(not at the same time). First, phone connected, bonded and bond of this phone saves in EEPROM of avr. Same 3 times for all phones.

Then I listen for connections using lib_aci_connect() putting one bond to nRF8001 and waiting. Then putting another and waiting. This is in loop.

But my phone sometimes connects to nRF8001 when it is not "his bond listens". Then it disconnect, and waiting. This could take a long time, while phone connects.

I think, that this trouble could be fixed using lib_aci_direct_connect(); But there is no example of it using. When I just write lib_aci_direct_connect(); instead lib_aci_connect() phones doesn't see any BLE and doesn't connect.

1) Is there any example of using lib_aci_direct_connect();. (In examples it always commented and never used)

2) Is there any another way of fixing such bag ?

Thanks a lot !

Related