<?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 central and receiving data from peripherals</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102615/multi-nus-central-and-receiving-data-from-peripherals</link><description>Hello. 
 I modified multi-nus central example to connect with four peripheral devices. I don&amp;#39;t use uart at all, I don&amp;#39;t need it, I don&amp;#39;t need routing, I just send 16B frames beetween central and peripherals. It works fine, I can connect, send data to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jun 2024 07:54:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102615/multi-nus-central-and-receiving-data-from-peripherals" /><item><title>RE: Multi-NUS central and receiving data from peripherals</title><link>https://devzone.nordicsemi.com/thread/488035?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 07:54:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f8e8e22-7672-4f16-a100-fc228cc31682</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi ropz, as the topic is quite different, I recommend opening a new DevZone case for it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-NUS central and receiving data from peripherals</title><link>https://devzone.nordicsemi.com/thread/488007?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 04:27:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d418ca6-1737-4665-82b6-966c089653fb</guid><dc:creator>ropz</dc:creator><description>&lt;p&gt;Hi, PW I want to know how to subscribe from several peripherals and send data to several peripherals. And how to create several discovery manager for when I add another function: bt_gatt_dm_start It will show that it cannot start discovery err:-120. Do you know how to solve this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-NUS central and receiving data from peripherals</title><link>https://devzone.nordicsemi.com/thread/441770?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 07:42:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d20ea920-5624-4c17-b02b-8580745c959f</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/pw"&gt;PW&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;I found a&amp;nbsp;method that could be more proper. You can use the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.1/zephyr/connectivity/bluetooth/api/connection_mgmt.html#c.bt_conn_get_dst"&gt;bt_conn_get_dst()&lt;/a&gt;&lt;/span&gt;&amp;nbsp;API&amp;nbsp;with &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.1/nrf/libraries/bluetooth_services/services/nus_client.html#c.bt_nus_client.conn"&gt;the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;conn&lt;/span&gt; field in &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;struct bt_nus_client&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This method works&amp;nbsp;for other use cases where you don&amp;#39;t have a client structure as well. In such cases, the address of &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;struct bt_conn&lt;/span&gt; is not as reliable, because it can be recycled for another connection by the BLE stack.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-NUS central and receiving data from peripherals</title><link>https://devzone.nordicsemi.com/thread/440426?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2023 08:37:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9798d8a-e708-4959-b274-c31bb4ca49e0</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;No need, a quick detour like this is just fine &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-NUS central and receiving data from peripherals</title><link>https://devzone.nordicsemi.com/thread/440421?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2023 08:15:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35e1b8b9-56ed-4ea3-83ea-17e1be73175b</guid><dc:creator>PW</dc:creator><description>&lt;p&gt;OK. Please delete&amp;nbsp;your answer.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-NUS central and receiving data from peripherals</title><link>https://devzone.nordicsemi.com/thread/440415?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2023 08:05:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76ad6939-3f8c-4892-9638-d797007c8740</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Let me&amp;nbsp;answer this quickly, but for follow-ups, please consider opening a new question. We usually prefer to have each DevZone question focused on a topic.&lt;/p&gt;
&lt;p&gt;There will be time slots for each connection, and collision should not be a concern.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-NUS central and receiving data from peripherals</title><link>https://devzone.nordicsemi.com/thread/440364?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2023 19:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c57b9299-b02b-4271-abb1-e47ced2f1c72</guid><dc:creator>PW</dc:creator><description>&lt;p&gt;Thanks. I used:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint8_t my_index = bt_conn_index(nus-&amp;gt;conn);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have general question about BLE multi-nus&lt;/span&gt;&lt;span&gt;. What about collision&lt;/span&gt;&lt;span&gt;? I have one client and several servers&lt;/span&gt;&lt;span&gt;, they send data in random time&lt;/span&gt;&lt;span&gt;. Is there any time slots for each of connection&lt;/span&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 central and receiving data from peripherals</title><link>https://devzone.nordicsemi.com/thread/440191?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 20:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f54ceea3-edf1-47ae-b86b-1481168639c4</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi PW,&lt;/p&gt;
&lt;p&gt;In the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;.received&lt;/span&gt; callback&amp;nbsp;function, you can use &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.4.1/samples/bluetooth/central_uart/src/main.c#L83-L86"&gt;the&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;struct bt_nus_client *&lt;/span&gt; parameter&lt;/a&gt; to differentiate between peripherals.&lt;/p&gt;
&lt;p&gt;The idea is that for each peripheral&amp;nbsp;there is&amp;nbsp;a NUS Client structure. Using the address of the client structure, you can differentiate between connections.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>