Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] nRF52840 connect to more than 4 peripheral BLE devices #288

Open
andy001sun opened this issue Jun 20, 2019 · 3 comments
Open

[Feature] nRF52840 connect to more than 4 peripheral BLE devices #288

andy001sun opened this issue Jun 20, 2019 · 3 comments
Labels

Comments

@andy001sun
Copy link

Describe the bug
I tried to connect the Feather nRF52840 Express (central) to multiple peripheral BLE devices. However, the maximum peripheral number is 4, not the "BLE_MAX_CONNECTION 20" as in the datasheet and this library "bluefruit.h"

When I use Bluefruit.begin(0, 4) or less, it works well and can connect to 4 peripheral BLEs.
When I set Bluefruit.begin(0, 5) or more, the BLE function cannot be enabled and the board works just like a common MCU without BLE function.

I tried both my own code and the example "central_bleuart_multi.ino", which are the same and the error is like the screenshot below:
6_

Set up

  • Feather nRF52840 Express, BSP v0.11.0
  • Win 7 & 10

To Reproduce
Steps to reproduce the behavior:

  1. Go to example 'central_bleuart_multi'
  2. change 'Bluefruit.begin(0, 4)' to 5 or more
  3. choose debug: "Level 2 (full debug)"
  4. See error

Expected behavior
I want to use the central nRF52840 to connect to more peripherals (at least 5). Is there any way?

I checked the linker file (I'm not sure) "nRF52840_s140_v6.ld" but had no idea what to do. The file is below:
ld

@hathach Could you please help? Thank you.

@andy001sun andy001sun added the Bug label Jun 20, 2019
@hathach
Copy link
Member

hathach commented Jun 21, 2019

It is not a bug, you need to provide more SRAM for SoftDevice for higher number of connections. The only current way is modify the linker. This could give you some hint https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide/hathach-memory-map#sram-layout-39-8

Check out Nordic docs for more details/info.

@hathach hathach added Feature and removed Bug labels Jun 21, 2019
@andy001sun
Copy link
Author

@hathach Thank you! I will try to modify it.

@ladyada ladyada changed the title Feather nRF52840 Express cannot connect to more than 4 peripheral BLE devices [Bug] Feather nRF52840 Express cannot connect to more than 4 peripheral BLE devices Oct 12, 2019
@ladyada ladyada changed the title Feather nRF52840 Express cannot connect to more than 4 peripheral BLE devices [Feature] nRF52840 connect to more than 4 peripheral BLE devices Oct 12, 2019
@nibraaska
Copy link

Were you able to modify it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants