<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Support multiple connections (5+) on central</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115800/support-multiple-connections-5-on-central</link><description>Hi, 
 I am working on a project where we need to connect to multiple peripherals which also include mobile devices. (up-to 10) on BLE central. 
 We need to measure the distance with individual devices in regular intervals. 
 We are referring to nrf_dm</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Nov 2024 12:22:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115800/support-multiple-connections-5-on-central" /><item><title>RE: Support multiple connections (5+) on central</title><link>https://devzone.nordicsemi.com/thread/510279?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 12:22:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a065a828-23fc-4322-a44e-e529e8655828</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Sorry for late reply.&lt;/p&gt;
&lt;p&gt;We made a lot of changes on prj conf which also include your suggestion and also to stable the DM module and it is working.&lt;/p&gt;
&lt;p&gt;Sorry I cannot pinpoint the fix to the issue as we had lot of changes on the project. Let me share the final prj file which is working for us so if anyone looking for suggestion can refer to the file and compare.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# CENTRAL
CONFIG_BT=y
CONFIG_BT_CENTRAL=y
CONFIG_BT_SCAN=y
CONFIG_BT_SCAN_FILTER_ENABLE=n
CONFIG_BT_MAX_CONN=5
# Allow to read RSSI for the connected peripheral
CONFIG_BT_CTLR=y
CONFIG_BT_CTLR_CONN_RSSI=y

# PERIPHERAL
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_PER_ADV=y
CONFIG_BT_SETTINGS=y
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_GATT_CACHING=n
CONFIG_BT_L2CAP_TX_MTU=252
CONFIG_BT_BUF_ACL_RX_SIZE=256
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=600
CONFIG_BT_PERIPHERAL_PREF_MIN_INT=120
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=160
CONFIG_BT_PERIPHERAL_PREF_LATENCY=2
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y

# PHY Coded enable for long range
# CONFIG_BT_PHY_UPDATE=y
CONFIG_BT_CTLR_PHY_CODED=y
CONFIG_BT_USER_PHY_UPDATE=y
CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_EXT_ADV=y

# Distance Measurement
CONFIG_DM_MODULE=y
CONFIG_DM_GPIO_DEBUG=y
CONFIG_DM_HIGH_PRECISION_CALC=y
CONFIG_DM_TIMESLOT_RESCHEDULE=y
CONFIG_DM_INITIATOR_DELAY_US=2000
CONFIG_DM_RANGING_OFFSET_US=100000
CONFIG_DM_MIN_TIME_BETWEEN_TIMESLOTS_US=100000
CONFIG_DM_TIMESLOT_QUEUE_COUNT_SAME_PEER=3
CONFIG_MPSL=y
CONFIG_MPSL_TIMESLOT_SESSION_COUNT=3
CONFIG_MPSL_WORK_STACK_SIZE=8192

CONFIG_SETTINGS_NONE=y
CONFIG_SETTINGS=y

CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_MIN_REQUIRED_HEAP_SIZE=1024

# Use internal clock source
CONFIG_CLOCK_CONTROL_NRF=y
CONFIG_CLOCK_CONTROL=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y

# Enable PWM buzzer module
CONFIG_PWM=y
CONFIG_NRFX_PWM1=y
CONFIG_NRFX_PWM2=y

# Enable ADC
CONFIG_ADC=y

# Enable NVS
CONFIG_NVS=y

CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y

CONFIG_REBOOT=y

# Below configurations to enable DFU
# Enable mcumgr.
CONFIG_NCS_SAMPLES_DEFAULTS=y
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP=y
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_SIGN_IMAGES=y
CONFIG_SECURE_BOOT=y
CONFIG_SB_SIGNING_KEY_FILE=&amp;quot;priv_key.pem&amp;quot;

# Some command handlers require a large stack.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096

# power management
CONFIG_PM_DEVICE=y

# Disable system logs
CONFIG_LOG_MAX_LEVEL=4
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support multiple connections (5+) on central</title><link>https://devzone.nordicsemi.com/thread/508294?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2024 08:08:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59670553-6c07-404d-a1ab-78fd1dfb8165</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Thank you for the response, I see the ranging is not the issue. We get the DM and RSSI for the connected devices at regular intervals.&lt;/p&gt;
&lt;p&gt;Whereas we are not able to connect any new device or reconnect paired devices. As we observed the central is not scanning for any devices at all after 2/3 devices are connected.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me also try your solution and get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support multiple connections (5+) on central</title><link>https://devzone.nordicsemi.com/thread/508248?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 20:32:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31b6195e-24e9-45d4-a5c0-844c4b9d731e</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you try to enable the&amp;nbsp;&lt;/span&gt;&lt;a title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_DM_TIMESLOT_RESCHEDULE"&gt;&lt;code&gt;&lt;span&gt;CONFIG_DM_TIMESLOT_RESCHEDULE&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;option? The device will try to range the same peer again if the previous ranging was successful.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support multiple connections (5+) on central</title><link>https://devzone.nordicsemi.com/thread/508054?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 06:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:957f76b9-f924-4784-a75e-5306f75ef358</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any update on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support multiple connections (5+) on central</title><link>https://devzone.nordicsemi.com/thread/507724?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 11:25:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25898553-414e-41e7-b229-25d53afd8fb9</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Let me share some logs for further information.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;GATT Write...
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
GATT Write Successful

write resp cb
0: Dev seed: 0
GATT Write Successful

write resp cb
0: Dev seed: 0
[0]: RSSI: -34, Average: -6
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[0]: RSSI: -32, Average: -13
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[0]: RSSI: -32, Average: -19
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[0]: RSSI: -31, Average: -25
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[0]: RSSI: -32, Average: -32
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[0]: RSSI: -33, Average: -32
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[0]: RSSI: -33, Average: -32
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[0]: RSSI: -32, Average: -32
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[Device]: D5:15:8F:AF:80:B1 (random) [AD]: 7 data_len 16
[Device]: D5:15:8F:AF:80:B1 (random) [AD]: 7 data_len 16
[0]: RSSI: -33, Average: -32
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16

GATT Write...
GATT Write Successful

write resp cb
[Device]: E8:E5:B7:3C:88:53 (random) [AD]: 7 data_len 16
[0]: RSSI: -33, Average: -32

GATT Write...
GATT Write Successful

write resp cb
1: Dev seed: 0
[0]: RSSI: -31, Average: -32
[1]: RSSI: -50, Average: -10
[0]: RSSI: -33, Average: -32
[1]: RSSI: -31, Average: -29
[0]: RSSI: -32, Average: -32
[1]: RSSI: -32, Average: -35
[0]: RSSI: -33, Average: -32
[1]: RSSI: -31, Average: -32
[0]: RSSI: -33, Average: -32
[1]: RSSI: -33, Average: -32
[0]: RSSI: -35, Average: -33
[1]: RSSI: -32, Average: -31
[0]: RSSI: -33, Average: -33
[1]: RSSI: -33, Average: -32
[0]: RSSI: -33, Average: -33
[1]: RSSI: -33, Average: -32
[0]: RSSI: -34, Average: -33
[1]: RSSI: -32, Average: -32
[0]: RSSI: -33, Average: -33
[1]: RSSI: -33, Average: -32
[0]: RSSI: -33, Average: -33
[1]: RSSI: -33, Average: -32
[0]: RSSI: -32, Average: -33
[1]: RSSI: -33, Average: -32
[0]: RSSI: -33, Average: -33
[1]: RSSI: -33, Average: -32
[0]: RSSI: -32, Average: -32
[1]: RSSI: -32, Average: -32&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As you can observe from the logs, the device is scanning for peripherals and when any new device is scanned, we are printing as [Device]&lt;br /&gt;As soon as the 2nd device connected, the scanning stopped.&lt;/p&gt;
&lt;p&gt;We do not know what is happening or why it happened. We cannot debug as when we try to debug, the device automatically disconnects and restart/halt.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>