Multiple Bluetooth users

5 posts / 0 new
Last post
Wouter
Offline
Last seen:6years 4 months ago
Expert
加入:2014-01-29 19:56
Multiple Bluetooth users

Hi Dialog,

If I compile the proximity reporter example with the define BLE_CONNECTION_MAX_USER set on 2 should the example than allow 2 bluetooth connections to the app?

I need this for our own application (multi user bounded) but the example does not work with multiple bluetooth users.

JE_Dialog
Offline
Last seen:1 day 23 hours ago
工作人员
加入:2013-12-05 14:02
嗨Wouter,

嗨Wouter,
The proximity reporter is an application in peripheral role, and by BLE spec, a peripheral device can be connected to only 1 device, even when setting BLE_CONNECTION_MAX_USER to 2. The device can support multiple connections whilst in central role.
Kind regards,
JE_Dialog

Wouter
Offline
Last seen:6years 4 months ago
Expert
加入:2014-01-29 19:56
Is is possible with the

Is is possible with the current Dialog SDK to get in a central role? Are there any example that support this?

Wouter
Offline
Last seen:6years 4 months ago
Expert
加入:2014-01-29 19:56
As followup I see in the

As followup I see in the da14580_stack_config.h header file the CFG_ALLROLES 1. If I look in source the central role has a higher prio than the peripheral role in terms of max connections define

/// Maximum number of simultaneous connections
#if (BLE_CENTRAL)
#define BLE_CONNECTION_MAX CFG_CON
#elif (BLE_PERIPHERAL)
#define BLE_CONNECTION_MAX 1
#else
#define BLE_CONNECTION_MAX 1
#endif /* #if (BLE_CENTRAL) */

WT_Dialog
Offline
Last seen:3 years 1 month ago
工作人员
加入:2013-12-05 14:43
Hi Woulter,

Hi Woulter,
What do you mean by "current Dialog SDK"?

kind regards