BLE concurrent peripheral connections #4942
Replies: 1 comment
-
Posted at 2021-11-29 by @fanoush
No, currently just one central and one peripheral connection, two in total. More connections need more statically allocated memory for bluetooth stack => less memory for Espruino. However Bangle2 is nrf52840 so memory is no longer such big issue so it can be added in future. It also needs some changes in code, currently the code expects single connection everywhere (see e.g. https://github.com/espruino/Espruino/blob/master/targets/nrf5x/bluetooth.c#L186)
How many is 'a few'? Even if this limit is increased it still won't be much. You can get data from more devices concurrently via advertising. Posted at 2021-11-29 by PaulC Okay thanks for the detailed response, it all makes sense.. Is this feature for BangleJS-2 multi-ble connections on the roadmap? Thankfully it is no problem to develop a work-around solution for my use-case, at least for the POC. In my case 'a few' is two devices. Posted at 2021-11-29 by @gfwilliams There's an issue open for this: espruino/Espruino#1360 The plan is to do it at some point. I think to date it hasn't been a huge deal but I can see this being more useful with Bangle.js 2 - eg you might want to connect to an ECG and a cycle computer or something like that Posted at 2022-07-01 by Mark_M Hi all,
If "one central and one peripheral connection", what is a central and peripheral in my case? Posted at 2022-07-01 by Mark_M I've got it. Some connection was there already. I had to reboot B2. Now it connects! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-11-27 by PaulC
I am attempting to connect to a few bluetooth peripherals from the BangleJS-2. But I get the following error after the first one connects, and the second attempts to establish a connection: ERR 0x12 (CONN_COUNT)
Are multiple BLE connections possible on the BangleJS-2.
Cheers.
Beta Was this translation helpful? Give feedback.
All reactions