2022-05-25 07:18 AM
Hello,
I am using a BlueNRG-2 acting as a central to connect with multiple BLE devices, these devices can connect and disconnect multiple times.
I am using up to 6 simultaneous connections to different devices, after some successful attempts I keep getting errors from the ST API during the connection stage, usually at the pair/bonding stage.
The errors are either:
When a connection fails the system seems to enter a loop and cannot recover.
Most commonly, what happens is that when there is an error, the initial connection is successful, but the process fails when negotiating at the encryption step (I am using default encryption with fixed pin).
I think this question might be similar to another posted to this forum but with no response so far, titled:
"STM32WB pairing error with mixed bonded/nonbonded devices
Thanks in advance.
2022-06-22 03:09 AM
I have the same issue but using a BlueNRG-LP. I only can connect 7 slaves devices to my central device.
Any new result ?
Best Regard
2022-06-22 03:14 AM
You can connect 7 slaves at the same time, or in total?
2022-06-23 12:21 AM
Hi,
With BlueNRg-LP, did you defined macro CONFIG_NUM_MAX_LINKS ?
This macro defines max number of simultaneous connection.
FYI, You may use "BleuNRG-X Radio Init Wizzard" tool to build config file.
Regards,
Sebastien
2022-06-23 02:04 AM
@Sebastien DENOUAL
Thank you so much for your answer. It worked.
Now I can connect 10 slaves to my central simultaneously. The Define CONFIG_NUM_MAX_LINKS was configured to 8. An this reserve RAM for Radio. I hadn't seen it.
@rsilva The documentation about BlueNRG2 say that.
I don't know if it has any limitations.
2022-06-23 04:35 AM
HI @Adrian Ramírez Mengana ,
Thanks for feedback. Good news.
@rsilva : ARami.1 is using BleuNRG-LP whereas you are using BleuNRG-2.
BlueNRG-2 is limited up to 8 simultaneous connection as per below :This is an extract from PM0257 : BleuNRg-2 BLE stack programming manual - section 4.4
Regards,
Sebastien.
2022-06-23 04:39 AM
Hi @Sebastien DENOUAL thank you for your input, I am aware of these limitations and I am using 6 simultaneous connections.
With your input on the repeated attempts feature and some tweaking in connection parameters we achieved more stable connections now.