<?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 link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47745/multi-link-central-uart-with-multiple-peripheral</link><description>hi... 
 I have modified the multi link central to multi link central uart , i can able to connect with 8 peripherals . One central getting connected with multiple peripheral, data are getting transfer between them. Now i want to differentiate the multiple</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jun 2019 07:30:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47745/multi-link-central-uart-with-multiple-peripheral" /><item><title>RE: multi link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/195010?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 07:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:527c6546-510a-4600-8884-5ef603761e60</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t had time to work on this example yet, no.&amp;nbsp;Until August I have various business trips and vacation coming up, so it is hard to predict when I will be able to look at this unfortunately.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I you check in again with me in a couple of weeks I will try to provide an updated schedule.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best&amp;nbsp; regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/194757?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 06:53:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a79c222-1f46-4e0c-bdeb-761e03110cbe</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;have you tried ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/192558?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 07:02:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c266c44f-656a-4d88-8456-ed9ac18616fb</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Sure thing, I will do my best to help with your questions &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 link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/192245?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 08:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d98263e9-2afa-42d6-bea4-195c2c8a627f</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;ok i will also try on my best , if i have any doubt i will ask you .Help me in this case&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/192239?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 07:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94f3df4a-f1d6-46eb-b0b5-b96c1092f9dd</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;I can try to provide a sample showing how to send a message from one link to the other, but it will have to be a side project that I work on when I have some free time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is hard to say when I will have time to provide it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/191994?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 09:40:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:997be6e0-7a3a-4a4e-ac13-80ee33221e1a</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;providing sample code will be better for understanding . where i should declare and how the data will transferred between them . where i should enter the data&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/191989?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 09:29:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce5154cb-500a-4e94-8477-1f246e9c8bdc</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;Thankyou Torbjorn , but how to do that , how the messages will passed from one to another .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/191960?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 08:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd5ffbb3-e67d-4ccb-b5af-bde31eedbfc5</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes, this is possible.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the central side you have to identify the different peripherals by the different items in the&amp;nbsp;&lt;em&gt;m_lbs_c &lt;/em&gt;array, where the connection handle of the device corresponds to the index in the array (as I explained in my previous reply).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to&amp;nbsp;use the BLE address to identify the device on the terminal side this is also possible, but then the central will have to do the translation between BLE address and connection handle when receiving messages.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In other words you will need to store a map in memory that maps between BLE address and connection handle.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/191354?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 12:29:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f56f9e8a-2b93-41c6-9f9e-278576f68348</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;Hi, Torbjorn&amp;nbsp;&lt;/p&gt;
&lt;p&gt;actually i am trying to do a task ,&lt;/p&gt;
&lt;p&gt;1.peripherals want to talk to each other (like chating) ,using termite .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. peripheral can&amp;#39;t send the data to other peripheral , in case of that i want to use the central as intermediate in between the peripherals .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. here&amp;nbsp; many peripherals are present , if one want to send the data to particular peripheral&amp;nbsp; device .&lt;/p&gt;
&lt;p&gt;i have some suggestion&amp;nbsp;&lt;/p&gt;
&lt;p&gt;can i send the data using mac address or connection handle ?&lt;/p&gt;
&lt;p&gt;EXAMPLE&amp;nbsp; if peripheral A wants to send the data to peripheral C , then peripheral A pass the data to central using mac address or connection handle and it should tell to central to convey this data to peripheral C and peripheral C will receive and so on .&lt;span&gt;can we do this ? these things to be achieved without changing the code often .&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;once the peripherals got connected to central , whoever in connection they should communicate with all of peripherals(using mac address or connection handle )&amp;nbsp; in termite .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&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 in advance&lt;/span&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 link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/190997?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 08:27:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85d9b599-f213-4c14-93d6-7550117d71e4</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;If you are using the multi link central example there is actually an array provided for you already, to keep track of the services of each of the connected devices:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;BLE_LBS_C_ARRAY_DEF(m_lbs_c, NRF_SDH_BLE_CENTRAL_LINK_COUNT);&amp;nbsp;&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Essentially you will get an array called m_lbs_c, of type ble_lbs_c_s (defined on line 146 of ble_lbs_c.h).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since the connection handle starts at 0 and increments by 1 for each connected device, the connection handle is used as an index into the array. The first connected device will update&amp;nbsp;&lt;span&gt;m_lbs_c[0], the second device&amp;nbsp;m_lbs_c[1] and so forth.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;By default the conn_handle field in the m_lbs_c elements will be initialized to&amp;nbsp;BLE_CONN_HANDLE_INVALID (0xFFFF), but once they are connected the conn_handle will be updated to represent the conn_handle of the connection.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you want you could extend this struct to contain more information on the device, such as a device name or similar that you want to use to address individual devices.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When sending data over a link you will send a pointer to the m_lbs_c element, such as you can see in the led status send function:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;uint32_t ble_lbs_led_status_send(ble_lbs_c_t * p_ble_lbs_c, uint8_t status);&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;br /&gt;Torbjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/190016?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 05:31:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60504792-b32b-42f6-a219-9ef9d1f11693</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;i am not familiar that much in programming . can you explain me with sample code , i want to send to data by using connection handle . i want to put all connected devices in an array so i can able to transmit the data to particular device&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/189887?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 12:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ead3c97-aa4f-467b-a79a-058d063f3292</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When a device establishes a connection you will receive the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.1/structble__gap__evt__connected__t.html"&gt;BLE_GAP_EVT_CONNECTED&lt;/a&gt; event on the peripheral and central side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Inside this event you can read the connection handle from the p_ble_evt-&amp;gt;evt.gap_evt-&amp;gt;conn_handle variable.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then you can update your local variable associating connection handle with the device from there.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/189758?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 06:44:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f865bf97-28bd-4a7c-bab7-d20e14973381</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;connection handle are created by the softdevice right , so how to put the connection handle in an array ,by that way i can able&amp;nbsp; to get the particular peripheral to send the data , is it possible ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;pavi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/189624?ContentTypeID=1</link><pubDate>Tue, 28 May 2019 12:08:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e174b166-a1fc-4bca-b02a-5d685cae13f2</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;can we able&amp;nbsp; send the message to&amp;nbsp; particular device (peripheral to peripheral )by manually , similar like this central has been connected 4 peripherals ( A--B---C--D)by using name of the peripheral .In this case peripheral A wants to send the message to the peripheral D, similarly peripheral D wants to send the message to peripheral B , C . so communication has to be done randomly .,whoever in connection in central&amp;nbsp; from end to end , (A B C D ) peripherals&amp;nbsp; have to send the data to each other .is it possible ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;can we resolve by using connection handle .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A--- HAS 0X01 connection handle&amp;nbsp;&lt;/p&gt;
&lt;p&gt;B----HAS 0X02 connection handle&amp;nbsp;&lt;/p&gt;
&lt;p&gt;C----HAS 0X03 connection handle so on&lt;/p&gt;
&lt;p&gt;example if A want to send the data to C&amp;nbsp;&lt;/p&gt;
&lt;p&gt;can i able to enter manually like ------ A (0X01) , hello to B(0x02)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;or else is there any other way to communicate the peripheral to peripheral&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;pavi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/189439?ContentTypeID=1</link><pubDate>Tue, 28 May 2019 05:37:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:925fd4e3-3e8a-4675-8e5b-62eacfbdf9ef</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;Thank your explanation , how to send the data via uart using connection handle of specific device&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards ,&lt;/p&gt;
&lt;p&gt;pavi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi link central uart with multiple peripheral</title><link>https://devzone.nordicsemi.com/thread/189378?ContentTypeID=1</link><pubDate>Mon, 27 May 2019 14:35:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a51eb23-93df-4607-9fbf-38fd790bdbb0</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Every link on the central side will be identified by a unique connection handle, which is a 16-bit value that starts at 0 and is incremented for each additional link.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want you can map the connection handle to something else, such as the BLE address or a device name, but whenever you want to send something to a specific device you need to use the connection handle of that device to address it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is important to know that each device could get a different connection handle each time it connects to the central, so the central will have to update the connection handle/BLE address map continuously as devices are disconnected and connected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is also important to know that the connection handle for a link is not necessarily the same on the peripheral and central side (a peripheral with only one link to a master will only use connection handle 0).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>