<?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>multi-nus peripheral nrf52833</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102307/multi-nus-peripheral-nrf52833</link><description>Hi All! 
 Hope you are doing well! I am using the multi-NUS-master.zip, https://github.com/NordicMatt/multi-NUS . 
 Converted the above-mentioned code to NCS version 2.0.2 and for peripheral_uart I am using 2.3.0 using Vscode studio as an IDE. 
 I set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Nov 2023 15:19:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102307/multi-nus-peripheral-nrf52833" /><item><title>RE: multi-nus peripheral nrf52833</title><link>https://devzone.nordicsemi.com/thread/456991?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2023 15:19:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f5a894c-d685-4e0c-a09a-e47ef8c8815a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have not tested on my end, but based on what you describe and your code, I wonder if this is what is happening:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The central&amp;nbsp;have a connection with a perhiperal&lt;/li&gt;
&lt;li&gt;The periperal is reset&lt;/li&gt;
&lt;li&gt;The&amp;nbsp;central is still connected to the peripheral until supervision timeout, but the peripheral starts advertising&lt;/li&gt;
&lt;li&gt;The central, as it is intended for multiple devices, scans even though it is still connected, and sees the old peripheral advertise and attempts to connect.&amp;nbsp; This triggers the error you see (bt_conn_le_create() calls&amp;nbsp;bt_conn_exists_le() and this prints the &amp;quot;&amp;quot; error, and then&amp;nbsp;bt_conn_le_create returns -EINVAL.).&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Are you able to verify that&amp;nbsp;bt_conn_le_create() returns -EINVAL when this issue occurs?&lt;/p&gt;
&lt;p&gt;If this is the problem, you could either add some logic to avoid connecting to a device you already have a connection (using a similar method as what is used in the stack when you get this error), or you could ignore the -EINVAL return value from&amp;nbsp;bt_conn_le_create(), though that may not be a good idea as there are also other reasons you could get that error code from&amp;nbsp;bt_conn_le_create().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi-nus peripheral nrf52833</title><link>https://devzone.nordicsemi.com/thread/456491?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 15:07:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db3e3233-1766-4a66-9298-8a22cb9fa5ab</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;Hi Einar!&lt;/p&gt;
&lt;p&gt;Thank you so much for the response!&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/102307/multi-nus-peripheral-nrf52833/456484"]Is it so that you trigger this by resetting the peripheral[/quote]
&lt;p&gt;Yes, you are right. I am trying to simulate that the peripheral is going to sleep mode and then wake up to send the data.&lt;/p&gt;
&lt;p&gt;So what is your expert opinion regarding that?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance! For your response!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi-nus peripheral nrf52833</title><link>https://devzone.nordicsemi.com/thread/456484?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 14:57:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50d22eac-4053-4277-9481-64c695be7820</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Muhammad,&lt;/p&gt;
&lt;p&gt;Edvin is OoO so I have inherited this case.&lt;/p&gt;
&lt;p&gt;You get &amp;quot;Found valid connection in connected state&amp;quot; so it seems you are trying to re-connect ot a device you are already connected with. So something is seemingly out of sync. Is it so that you trigger this by resetting the peripheral, and that is why you have a lot of disconnects with reason 8 (supervision timeout) here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi-nus peripheral nrf52833</title><link>https://devzone.nordicsemi.com/thread/455824?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2023 16:52:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b14eea1-321d-4aae-82b7-bdaf8e92ce59</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Sorry for the very late response!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;today I started again from where I left, I attached the log of central. When the central gets stuck and stops scanning any peripheral.Although I reset both the peripherals many times . Here is the log&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00:15:16.907,012] &amp;lt;wrn&amp;gt; central_uart: ATT error code: 0x20011C0C
[00:15:35.807,983] &amp;lt;inf&amp;gt; central_uart: Disconnected: E8:2B:FD:17:14:C2 (random) (reason 8)
[00:15:36.953,033] &amp;lt;wrn&amp;gt; central_uart: Connecting failed
[00:15:37.046,234] &amp;lt;inf&amp;gt; central_uart: MTU (0): 23
[00:15:37.046,325] &amp;lt;inf&amp;gt; central_uart: Exchange pending...
[00:15:37.046,356] &amp;lt;inf&amp;gt; central_uart: Connected: E8:2B:FD:17:14:C2 (random)
[00:15:37.047,943] &amp;lt;inf&amp;gt; central_uart: NUS Client module initialized
[00:15:37.159,362] &amp;lt;inf&amp;gt; central_uart: MTU exchange 0 successful (65)
[00:15:37.906,890] &amp;lt;inf&amp;gt; central_uart: Service discovery completed
[00:15:37.910,614] &amp;lt;inf&amp;gt; central_uart: Scanning started
[00:15:37.910,736] &amp;lt;inf&amp;gt; central_uart: Sent to server 0: 0
[00:15:38.106,994] &amp;lt;wrn&amp;gt; central_uart: ATT error code: 0x20011C0C
[00:16:35.850,708] &amp;lt;inf&amp;gt; central_uart: Disconnected: F7:13:07:67:2D:04 (random) (reason 8)
[00:16:40.990,722] &amp;lt;wrn&amp;gt; central_uart: Connecting failed
[00:16:41.082,824] &amp;lt;inf&amp;gt; central_uart: MTU (1): 23
[00:16:41.082,885] &amp;lt;inf&amp;gt; central_uart: Exchange pending...
[00:16:41.082,946] &amp;lt;inf&amp;gt; central_uart: Connected: F7:13:07:67:2D:04 (random)
[00:16:41.084,564] &amp;lt;inf&amp;gt; central_uart: NUS Client module initialized
[00:16:41.216,796] &amp;lt;inf&amp;gt; central_uart: MTU exchange 1 successful (65)
[00:16:41.965,148] &amp;lt;inf&amp;gt; central_uart: Service discovery completed
[00:16:41.968,811] &amp;lt;inf&amp;gt; central_uart: Scanning started
[00:16:41.968,963] &amp;lt;inf&amp;gt; central_uart: Sent to server 1: 1
[00:16:42.164,489] &amp;lt;wrn&amp;gt; central_uart: ATT error code: 0x20011BC8
[00:17:11.365,570] &amp;lt;inf&amp;gt; central_uart: Disconnected: F7:13:07:67:2D:04 (random) (reason 8)
[00:17:14.811,920] &amp;lt;wrn&amp;gt; central_uart: Connecting failed
[00:17:14.905,944] &amp;lt;inf&amp;gt; central_uart: MTU (1): 23
[00:17:14.906,036] &amp;lt;inf&amp;gt; central_uart: Exchange pending...
[00:17:14.906,066] &amp;lt;inf&amp;gt; central_uart: Connected: F7:13:07:67:2D:04 (random)
[00:17:14.907,653] &amp;lt;inf&amp;gt; central_uart: NUS Client module initialized
[00:17:15.016,815] &amp;lt;inf&amp;gt; central_uart: MTU exchange 1 successful (65)
[00:17:15.864,471] &amp;lt;inf&amp;gt; central_uart: Service discovery completed
[00:17:15.868,164] &amp;lt;inf&amp;gt; central_uart: Scanning started
[00:17:15.868,347] &amp;lt;inf&amp;gt; central_uart: Sent to server 1: 1
[00:17:16.164,550] &amp;lt;wrn&amp;gt; central_uart: ATT error code: 0x20011BC8
[00:17:19.208,007] &amp;lt;inf&amp;gt; central_uart: Disconnected: E8:2B:FD:17:14:C2 (random) (reason 8)
[00:17:19.244,537] &amp;lt;wrn&amp;gt; central_uart: Connecting failed
[00:17:19.340,240] &amp;lt;inf&amp;gt; central_uart: MTU (0): 23
[00:17:19.340,362] &amp;lt;inf&amp;gt; central_uart: Exchange pending...
[00:17:19.340,362] &amp;lt;inf&amp;gt; central_uart: Connected: E8:2B:FD:17:14:C2 (random)
[00:17:19.342,041] &amp;lt;inf&amp;gt; central_uart: NUS Client module initialized
[00:17:19.474,395] &amp;lt;inf&amp;gt; central_uart: MTU exchange 0 successful (65)
[00:17:20.221,954] &amp;lt;inf&amp;gt; central_uart: Service discovery completed
[00:17:20.225,677] &amp;lt;inf&amp;gt; central_uart: Scanning started
[00:17:20.225,799] &amp;lt;inf&amp;gt; central_uart: Sent to server 0: 0
[00:17:20.421,997] &amp;lt;wrn&amp;gt; central_uart: ATT error code: 0x20011C0C
[00:19:17.665,618] &amp;lt;inf&amp;gt; central_uart: Disconnected: F7:13:07:67:2D:04 (random) (reason 8)
[00:19:20.555,419] &amp;lt;wrn&amp;gt; central_uart: Connecting failed
[00:19:20.647,644] &amp;lt;inf&amp;gt; central_uart: MTU (1): 23
[00:19:20.647,735] &amp;lt;inf&amp;gt; central_uart: Exchange pending...
[00:19:20.647,766] &amp;lt;inf&amp;gt; central_uart: Connected: F7:13:07:67:2D:04 (random)
[00:19:20.649,353] &amp;lt;inf&amp;gt; central_uart: NUS Client module initialized
[00:19:20.831,756] &amp;lt;inf&amp;gt; central_uart: MTU exchange 1 successful (65)
[00:19:21.679,443] &amp;lt;inf&amp;gt; central_uart: Service discovery completed
[00:19:21.683,135] &amp;lt;inf&amp;gt; central_uart: Scanning started
[00:19:21.683,288] &amp;lt;inf&amp;gt; central_uart: Sent to server 1: 1
[00:19:21.879,425] &amp;lt;wrn&amp;gt; central_uart: ATT error code: 0x20011BC8
[00:19:31.522,979] &amp;lt;inf&amp;gt; central_uart: Disconnected: E8:2B:FD:17:14:C2 (random) (reason 8)
[00:19:32.566,619] &amp;lt;wrn&amp;gt; central_uart: Connecting failed
[00:19:32.665,283] &amp;lt;inf&amp;gt; central_uart: MTU (0): 23
[00:19:32.665,405] &amp;lt;inf&amp;gt; central_uart: Exchange pending...
[00:19:32.665,435] &amp;lt;inf&amp;gt; central_uart: Connected: E8:2B:FD:17:14:C2 (random)
[00:19:32.666,992] &amp;lt;inf&amp;gt; central_uart: NUS Client module initialized
[00:19:32.789,398] &amp;lt;inf&amp;gt; central_uart: MTU exchange 0 successful (65)
[00:19:33.536,956] &amp;lt;inf&amp;gt; central_uart: Service discovery completed
[00:19:33.540,618] &amp;lt;inf&amp;gt; central_uart: Scanning started
[00:19:33.540,740] &amp;lt;inf&amp;gt; central_uart: Sent to server 0: 0
[00:19:33.736,999] &amp;lt;wrn&amp;gt; central_uart: ATT error code: 0x20011C0C
[00:19:50.238,067] &amp;lt;inf&amp;gt; central_uart: Disconnected: E8:2B:FD:17:14:C2 (random) (reason 8)
[00:19:50.787,261] &amp;lt;wrn&amp;gt; central_uart: Connecting failed
[00:19:50.879,577] &amp;lt;inf&amp;gt; central_uart: MTU (0): 23
[00:19:50.879,669] &amp;lt;inf&amp;gt; central_uart: Exchange pending...
[00:19:50.879,699] &amp;lt;inf&amp;gt; central_uart: Connected: E8:2B:FD:17:14:C2 (random)
[00:19:50.881,256] &amp;lt;inf&amp;gt; central_uart: NUS Client module initialized
[00:19:50.989,410] &amp;lt;inf&amp;gt; central_uart: MTU exchange 0 successful (65)
[00:19:51.736,938] &amp;lt;inf&amp;gt; central_uart: Service discovery completed
[00:19:51.740,631] &amp;lt;inf&amp;gt; central_uart: Scanning started
[00:19:51.740,753] &amp;lt;inf&amp;gt; central_uart: Sent to server 0: 0
[00:19:51.936,981] &amp;lt;wrn&amp;gt; central_uart: ATT error code: 0x20011C0C
[00:19:56.497,711] &amp;lt;wrn&amp;gt; bt_conn: Found valid connection in connected state
[00:19:56.507,873] &amp;lt;wrn&amp;gt; bt_conn: Found valid connection in connected state
[00:19:56.507,873] &amp;lt;wrn&amp;gt; central_uart: Connecting failed
[00:19:59.988,037] &amp;lt;inf&amp;gt; central_uart: Disconnected: E8:2B:FD:17:14:C2 (random) (reason 8)
[00:20:25.330,444] &amp;lt;inf&amp;gt; central_uart: Disconnected: F7:13:07:67:2D:04 (random) (reason 8)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;if you see&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[00:19:56.497,711] &amp;lt;wrn&amp;gt; bt_conn: Found valid connection in connected state&lt;br /&gt;[00:19:56.507,873] &amp;lt;wrn&amp;gt; bt_conn: Found valid connection in connected state&lt;br /&gt;[00:19:56.507,873] &amp;lt;wrn&amp;gt; central_uart: Connecting failed&lt;br /&gt;[00:19:59.988,037] &amp;lt;inf&amp;gt; central_uart: Disconnected: E8:2B:FD:17:14:C2 (random) (reason 8)&lt;br /&gt;[00:20:25.330,444] &amp;lt;inf&amp;gt; central_uart: Disconnected: F7:13:07:67:2D:04 (random) (reason 8)&lt;/p&gt;
&lt;p&gt;What I understand is, that Central has info that, peripherals are already connected but in actual they are not.&lt;/p&gt;
&lt;p&gt;This happens when we disconnect and connect the peripheral many times continuously. Like in 1 min&amp;nbsp;4-6 times.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;These are the last lines where Central gets stuck. After resetting the central it starts scanning again. Can you please guide me regarding that?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Muhammad Usman&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi-nus peripheral nrf52833</title><link>https://devzone.nordicsemi.com/thread/440058?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 07:45:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d10ae0b-18e9-4689-ba8d-072ec0716019</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Regarding 1: So you are trying to enable notifications (bt_gatt_subscribe) after the connection has terminated? Are you enabling notifications all the time? It is something you only should need to do once after the connection is established.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regarding 3: Is bt_nus_send() called but is blocking? Or is it not called when it &amp;quot;stops responding&amp;quot;? Try to add some logs before and after the call to bt_nus_send(), to see whether it is stuck in there.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi-nus peripheral nrf52833</title><link>https://devzone.nordicsemi.com/thread/439951?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2023 14:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49e6837d-3434-4436-94bf-383a2ba85b28</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;Hi Edvin!&lt;/p&gt;
&lt;p&gt;Thank you for your previous response! results of my testing are&lt;/p&gt;
&lt;p&gt;1)Sometimes, when I reset the peripheral then the central Resets itself as well&lt;/p&gt;
&lt;p&gt;Connection pending&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;&amp;lt;EOT&amp;gt;&amp;lt;SOH&amp;gt;&amp;lt;ACK&amp;gt;&amp;lt;ETX&amp;gt;&amp;lt;ETX&amp;gt;&amp;ordf;&amp;thorn;&amp;lt;ETB&amp;gt;&amp;lt;SYN&amp;gt;&amp;ordf;&amp;thorn;ASSERTION FAIL [conn] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/gatt.c:4738&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;&amp;lt;HT&amp;gt; invalid parameters&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;*** Booting Zephyr OS build v3.0.99-ncs1-1 ***&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;Starting Bluetooth Central UART example&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;Filters matched. Address: F7:13:07:67:2D:04 (random) connectable: yes&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;Connection pending&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2)When i send multiple messages (25 ) from peripheral to central then central hangs to solve this i added this line&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;uart_data_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt;buf&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;k_fifo_get&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;fifo_uart_rx_data&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;K_FOREVER&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;multi_nus_send&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;buf&lt;/span&gt;&lt;span&gt;); &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;k_free&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;buf&lt;/span&gt;&lt;span&gt;);&amp;nbsp; &amp;nbsp;// this line added in main&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Now this issue is not occurring again.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;3)&lt;/span&gt;&lt;/span&gt;[quote userid="26071" url="~/f/nordic-q-a/102307/multi-nus-peripheral-nrf52833/439681"]Remember to check what bt_nus_send() returns. It may give a hint to what the issue may be. Does it return 0 or something else?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;error1&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;bt_nus_send&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;NULL&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;raw_adv_data&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;sizeof&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;raw_adv_data&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;-&lt;/span&gt;&lt;span&gt;20&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;error1&lt;/span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;printf&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;Failed to send data over BLE connection, error is for DK is ... &lt;/span&gt;&lt;span&gt;%d&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;error1&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;// &amp;nbsp;LOG_WRN(&amp;quot;Failed to set DSR, ret code %d&amp;quot;, error1);&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;Peripheral on reset starts sending data again but not displayed the above message on no communication. M&lt;/span&gt;&lt;span&gt;eans the peripheral close the connection.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Any more suggestions?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks &amp;amp; regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Muhammad Usman&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi-nus peripheral nrf52833</title><link>https://devzone.nordicsemi.com/thread/439771?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2023 17:48:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d419da0-9715-4375-84e6-9642b622ff0a</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;thank you again! i will check and update on this soon!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi-nus peripheral nrf52833</title><link>https://devzone.nordicsemi.com/thread/439681?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2023 11:26:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b801e0e6-7f14-4d84-9fb9-cf397785710a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Remember to check what bt_nus_send() returns. It may give a hint to what the issue may be. Does it return 0 or something else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi-nus peripheral nrf52833</title><link>https://devzone.nordicsemi.com/thread/439672?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2023 11:03:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d440482a-12ac-4a61-9ba3-b20b2e53d72e</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Thank you for the response!&amp;nbsp;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/102307/multi-nus-peripheral-nrf52833/439204"]Can you please upload both the central and peripheral applications that you are using?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Peripherals Side FWH: ncs v2.3.0&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Multicon_5F00_inter_5F00_Reg_5F00_peri_2D00_main_5F00_Luis_5F00_V1.zip"&gt;devzone.nordicsemi.com/.../Multicon_5F00_inter_5F00_Reg_5F00_peri_2D00_main_5F00_Luis_5F00_V1.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Central side FWH: ncs v2.0.2&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/central_5F00_uart_5F00_con_5F00_202.zip"&gt;devzone.nordicsemi.com/.../central_5F00_uart_5F00_con_5F00_202.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/102307/multi-nus-peripheral-nrf52833/439204"]When this happens, do you see a disconnected event either in the central or the peripheral? You say that they stop communicating. What usually triggers the communication? Is it a timer that times out? is it a button press? Is it a UART command?&amp;nbsp;Are you using&amp;nbsp;bt_nus_send() to communicate? Is that still being called? What does it return?[/quote]
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using the timers to communicate after every 5 seconds, yes I am using the&amp;nbsp;&lt;span&gt;bt_nus_send() to communicate with the central. No, I didn&amp;#39;t see any disconnected event either in the central or the peripheral. But I will check it again to confirm your answer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks &amp;amp; Regards,&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Muhammad Usman&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi-nus peripheral nrf52833</title><link>https://devzone.nordicsemi.com/thread/439204?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2023 09:20:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17e18c3b-676a-4ff2-b0f4-719da81063ae</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We are trying to even out the workload after the summer holidays, so Simon asked if I could take a look at this ticket.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please upload both the central and peripheral applications that you are using?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When you reset both the peripheral devices, and they are not reconnected (2 out of 10 times), do you see the disconnected event in the central device? (It looks like it should print it in the log).&lt;/p&gt;
[quote user=""]3)&lt;span&gt;Sometimes&amp;nbsp;3&amp;nbsp;out of 10 times, the custom board (nrf52833) stops communication with the central automatically so need to reset it. But it never happened with peripheral (DK).&lt;/span&gt;[/quote]
&lt;p&gt;When this happens, do you see a disconnected event either in the central or the peripheral? You say that they stop communicating. What usually triggers the communication? Is it a timer that times out? is it a button press? Is it a UART command?&amp;nbsp;Are you using&amp;nbsp;bt_nus_send() to communicate? Is that still being called? What does it return?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]4)Is there any filter on the Mac address? .Because the Custom board address starts with F7:13 and DK from E2:2B.malfuncationing behaviour observed with central as mentioned in point #&amp;nbsp; 3&amp;nbsp;[/quote]
&lt;p&gt;What do you mean by filtering on Mac address? During scanning/connection, or while being connected?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It is possible to filter on Mac addresses, but it is not really that common, because it would require a designated application for all devices (in mass production). Usually you would filter on advertising data (advertised UUID or an advertising name). When you are connected to multiple devices, you can use the conn pointers from the connected event. I would recommend storing these as long as the connection remains. This means setting it in the connected event, and setting it to NULL in the disconnected event. You can store an array of static struct bt_conn*, much like the central_uart from the ncs\nrf\samples\bluetooth\central_uart does (although it doesn&amp;#39;t store it as an array, as it only handles one connection). Look at how this sample does that, and try to implement something similar.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi-nus peripheral nrf52833</title><link>https://devzone.nordicsemi.com/thread/438852?ContentTypeID=1</link><pubDate>Sat, 29 Jul 2023 15:54:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96c0b245-375a-46ce-88d0-90ce4dd6fc7e</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;Hi Simonr&lt;/p&gt;
&lt;p&gt;Thank you for the response! Please take your time, no issue.&lt;/p&gt;
&lt;p&gt;My setup was that , 1st&amp;nbsp; DK (nrf52833) as Central and 2nd&lt;span&gt;&amp;nbsp;DK (nrf52833) as Peripheral # 1 and the custom board (nrf52833) as&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Peripheral # 2.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Today I observed the following:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1)RSSI difference between both the peripherals. DK RSSI is -55dbm and custom -85dbm roundabout.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;E8:2B is DK&amp;nbsp;&lt;/p&gt;
&lt;p&gt;F7:13 is a custom board&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1690638836561v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/102307/multi-nus-peripheral-nrf52833/438751"]Do the peripherals start advertising again automatically upon a disconnected event? It might be that they&amp;#39;re not since you need to restart the peripherals to see them scanning again.[/quote]
&lt;p&gt;&lt;span&gt;&amp;nbsp;2) yes peripherals start advertising again automatically and advertised after every 10-20 seconds. But no connection from central&lt;/span&gt;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/102307/multi-nus-peripheral-nrf52833/438751"]It could also be that the central just doesn&amp;#39;t time out the connection right away if the peripherals disconnect without sending a disconnect event to the central.[/quote]
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;In that case, will the peripherals start advertising again?&amp;nbsp;How can we confirm that point?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;3)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/102307/multi-nus-peripheral-nrf52833/438751"]Then it will take approximately the conn_sup_timeot before the connection times out, and I presume before the central starts scanning for advertising devices again.[/quote]
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_le_conn_param&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;m_conn_param&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;interval_min&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;120&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;interval_max&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;220&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;timeout&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;100&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;is that the connection time out you are talking about in 100ms, am I right?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;4)I waited for about 20 mins, peripheral started advertising continuously after every 10-20 secs but no connection. Although meanwhile, the central was communicating with the 2nd peripheral(DK) . Central only connected when I reset the central&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;5)When I reset the central the peripherals not advertising, so need to reset the peripherals as well.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Filters matched. Address: E8:2B:FD:17:14:C2 (random) connectable: yes&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;Connection pending&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;Filters matched. Address: F7:13:07:67:2D:04 (random) connectable: yes&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;Stop LE scan failed (err -120)&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;Create conn failed (err -120)&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;Scanning failed to start (err -5)&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;6) Sometimes it works perfectly! and 6 out of 10 tests it works as I explained above.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;[quote userid="75734" url="~/f/nordic-q-a/102307/multi-nus-peripheral-nrf52833/438751"]Both DKs and custom boards are nRF52833 devices, correct?[/quote]
&lt;p&gt;Yes, correct!&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/102307/multi-nus-peripheral-nrf52833/438751"] What revision of the DKs do you have,[/quote]
&lt;p&gt;&lt;span&gt;&lt;span&gt;First is 1.0.0 2019&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;2nd is 1.0.0 2020&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/102307/multi-nus-peripheral-nrf52833/438751"]what revisions of the SoCs on the custom boards are running?[/quote]
&lt;p&gt;&amp;nbsp; nRF52833-QDAA-R&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Thanks &amp;amp; Regards,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Muhammad Usman&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi-nus peripheral nrf52833</title><link>https://devzone.nordicsemi.com/thread/438751?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2023 12:49:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01d89149-de94-4d65-9ec2-7f131343929f</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Due to the summer vacation period we are currently understaffed, so delayed replies must be expected. I am sorry about any inconvenience this might cause.&lt;/p&gt;
&lt;p&gt;A few thoughts as to what this could be.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Do the peripherals start advertising again automatically upon a disconnected event? It might be that they&amp;#39;re not since you need to restart the peripherals to see them scanning again.&lt;/li&gt;
&lt;li&gt;It could also be that the central just doesn&amp;#39;t time out the connection right away if the peripherals disconnect without sending a disconnect event to the central. Then it will take approximately the conn_sup_timeot before the connection times out, and I presume before the central starts scanning for advertising devices again.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;4. There should not be a filter on MAC addresses in this sample project. Both DKs and custom boards are nRF52833 devices, correct? What revision of the DKs do you have, and what revisions of the SoCs on the custom boards are running?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>