-
-
Notifications
You must be signed in to change notification settings - Fork 34
More than 3 concurrent BLE Connections (Arduino Nano 33 BLE) #40
Comments
Hi @Dorsel89, I believe the link layer inside libmbed.a will need to be re-compiled for the changes to take effect. I also believe variants/ARDUINO_NANO33BLE/mbed_config.h is the correct place to update the define. There is a script to re-compile mbed: https://github.com/arduino/ArduinoCore-nRF528x-mbedos/blob/master/mbed-os-to-arduino |
Hi @sandeepmistry I wonder about the mbed_config.h , in the header it is mentioned that the file should not be edited, because the values are generated automatically. This is exactly what I noticed, after I start the script mbed-os-to-arduino all defines are back to default. It would be nice if you have more tips for me! edit: I used the script with these parameters: |
Hi @Dorsel89, I've just spoken to @facchinm about this, the correct place to add the define is in variants/ARDUINO_NANO33BLE/conf/mbed_app.json, then re-compile mbed. Apologies for the incorrect information I provided earlier. |
Hey @sandeepmistry, thanks for your help! I just managed to override DM_CONN_MAX. Will check if it really works now =) Thanks in advance |
Hi @sandeepmistry, I found the right macro names in this file (mbed-os repository) : mbed_lib.json. Unfortunately I cannot increase the maximum number of connections. If I set max-connections to something >8 the BLE Server does not start. Maybe I have to increse some memory size? If yes, where? But I have to admit, I actually dont know how to debug this right now. |
Hi @Dorsel89 ,
By increasing |
Hey @facchinm, I just checked if the Bluetooth Server starts by changeing: A) increase the STACK_SIZE of the bleLoopThread Of course both should do the same in the end, both ways do not work for max-connections = 9. I changed the size to 2*4096 for both ways. Do you have any further ideas? Many Thanks |
@Dorsel89 Can you share how you managed to do multiple concurrent connections? I have Arduino Nano 33 BLE acting as central. Only got 1 peripheral connection. 2nd connection always fails. |
@gnsmrky you can follow this issue arduino-libraries/ArduinoBLE#108 |
Hey @gnsmrky & @polldo , https://github.com/Dorsel89/phyphox-arduino I just tested the example "randomNumbers" and it works on 2 phones at the same time for me. It should work up to 3 concurrent connections without changing the mbed_app.json. If you change the mbed_app.json as discussed in this issue you can get up to 8 connections. Unfortunately i did not manage to get more connections but it is still on my todo list. Hope this helps edit: I'm using the board driver: Arduino nrf528x Boards(Mbed OS) V 1.1.4 |
Hey @giulcioffi, is there reason to stick at 5 connections? In general I would like to get up to 20 connections but I couldnt figure out why my bluetoothserver crashed with DM_CONN_MAX>8. Unfortunately this topic is not on top of my TODO list so I didnt spent any time on this since months.. |
Hi @Dorsel89, |
Hi everyone,
I would like to have more than 3 concurrent BLE connections with the Arduino Nano 33 BLE. As far as i understand i have to adjust the DM_CONN_MAX in cfg_stack.h.
Unfortunately, that doesn't work, do you have any tips on what I'm doing wrong?
Thanks and kind regards!
The text was updated successfully, but these errors were encountered: