<?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>Connect one pheripheral to two central</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65827/connect-one-pheripheral-to-two-central</link><description>Hi 
 how to connect one peripheral to two central and after connection established sent the data to both central? 
 I am using nrf52, soft device 132 . 
 i am able to make connection and send data from one peripheral to one central using ble_app_uart</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Sep 2020 09:37:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65827/connect-one-pheripheral-to-two-central" /><item><title>RE: Connect one pheripheral to two central</title><link>https://devzone.nordicsemi.com/thread/270026?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 09:37:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:742fccc2-7a2d-4efa-b1f3-f4463c7ebfb0</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure what the issue is. This is exactly what is done in the example I linked in my previous comment. Please try the example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect one pheripheral to two central</title><link>https://devzone.nordicsemi.com/thread/269931?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2020 16:14:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25241670-c131-4347-a491-b94e5dea4af5</guid><dc:creator>meghna</dc:creator><description>&lt;p&gt;Q.What i am trying to implement?&lt;/p&gt;
&lt;p&gt;A. i am making a ble remote(peripheral) and there is two device (central).I want, when i press button on peripheral(remote) then it should reflect on both central(camera device/speaker device like volume up/down and many more) as per requirement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect one pheripheral to two central</title><link>https://devzone.nordicsemi.com/thread/269930?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2020 16:09:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a98b4ba-d33c-4015-a7c8-688b2c5189bf</guid><dc:creator>meghna</dc:creator><description>&lt;p&gt;In multi peripheral example there is no implementation for sending data from peripheral to central but in ble_app_uart there is direct function for sending data..&lt;/p&gt;
&lt;p&gt;I am able to make connection between one peripheral and two central using ble_app_uart code(peripheral) by making below changes in code .&lt;/p&gt;
&lt;p&gt;ble_app_uart(main.c) - :&lt;/p&gt;
&lt;p&gt;static void on_connected(const ble_gap_evt_t * const p_gap_evt)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ret_code_t&amp;nbsp; err_code;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t&amp;nbsp;&amp;nbsp;&amp;nbsp; periph_link_cnt = ble_conn_state_peripheral_conn_count(); // Number of peripheral links.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_LOG_INFO(&amp;quot;Connection with link 0x%x established.&amp;quot;, p_gap_evt-&amp;gt;conn_handle);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Assign connection handle to available instance of QWR module.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (uint32_t i = 0; i &amp;lt; NRF_SDH_BLE_PERIPHERAL_LINK_COUNT; i++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //if (m_qwrs[i].conn_handle == BLE_CONN_HANDLE_INVALID)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // err_code = nrf_ble_qwr_conn_handle_assign(&amp;amp;m_qwrs[i], p_gap_evt-&amp;gt;conn_handle);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APP_ERROR_CHECK(err_code);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;bsp_board_led_on(CONNECTED_LED);&lt;br /&gt;&amp;nbsp;&amp;nbsp; if (periph_link_cnt == NRF_SDH_BLE_PERIPHERAL_LINK_COUNT)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bsp_board_led_off(ADVERTISING_LED);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Continue advertising. More connections can be established because the maximum link count has not been reached.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; advertising_start();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t err_code;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch (p_ble_evt-&amp;gt;header.evt_id)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case BLE_GAP_EVT_CONNECTED:&lt;br /&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; {&lt;br /&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; on_connected(&amp;amp;p_ble_evt-&amp;gt;evt.gap_evt);&lt;br /&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; }&lt;br /&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; break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //NRF_LOG_INFO(&amp;quot;Connected&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //err_code = bsp_indication_set(BSP_INDICATE_CONNECTED);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //APP_ERROR_CHECK(err_code);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //m_conn_handle = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //err_code = nrf_ble_qwr_conn_handle_assign(&amp;amp;m_qwr, m_conn_handle);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //APP_ERROR_CHECK(err_code);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //break;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Can you please suggest is this right way or not?After making connection i am not able sent data between peripheral to central .How to sent data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect one pheripheral to two central</title><link>https://devzone.nordicsemi.com/thread/269890?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2020 13:21:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98186b39-7a8e-41b0-950d-3e8c4ec0ba7c</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="meghna"]I am using ble_app_uart {ble_peripheral code}[/quote]
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I wrote earlier, you should use ble_app_multiperipheral on the peripheral side. You can find it in the experimental folder under the&amp;nbsp;ble_peripheral examples folder. No changes are needed.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect one pheripheral to two central</title><link>https://devzone.nordicsemi.com/thread/269862?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2020 12:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e73190a2-3462-4cf5-b983-8051f72bc6d3</guid><dc:creator>meghna</dc:creator><description>&lt;p&gt;Can you please tell me which example code you have used for connecting one peripheral to two central.&lt;/p&gt;
&lt;p&gt;and what changes you have done for making connection one peripheral with two central.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am using ble_app_uart {ble_peripheral code} and ble_app_uart_c{ble_central code].&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect one pheripheral to two central</title><link>https://devzone.nordicsemi.com/thread/269780?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2020 08:22:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d88fda0-e4ac-43aa-bbea-adbbe9a8358b</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I just the tested the example and it should work without changing anything. Are you running the ble_app_central applications on the centrals?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect one pheripheral to two central</title><link>https://devzone.nordicsemi.com/thread/269599?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 09:50:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9338ae20-a0c9-4e3b-8b40-7c0cd6257198</guid><dc:creator>meghna</dc:creator><description>&lt;p&gt;HI i want to connect one peripheral to two central and i made below changes in sdk_config.h but still not able to connect two central with one peripheral.&lt;/p&gt;
&lt;p&gt;// &amp;lt;o&amp;gt; NRF_SDH_BLE_PERIPHERAL_LINK_COUNT - Maximum number of peripheral links. &lt;br /&gt;#ifndef NRF_SDH_BLE_PERIPHERAL_LINK_COUNT&lt;br /&gt;#define NRF_SDH_BLE_PERIPHERAL_LINK_COUNT 2&lt;br /&gt;#endif&lt;br /&gt;&lt;br /&gt;// &amp;lt;o&amp;gt; NRF_SDH_BLE_CENTRAL_LINK_COUNT - Maximum number of central links. &lt;br /&gt;#ifndef NRF_SDH_BLE_CENTRAL_LINK_COUNT&lt;br /&gt;#define NRF_SDH_BLE_CENTRAL_LINK_COUNT 0&lt;br /&gt;#endif&lt;br /&gt;&lt;br /&gt;// &amp;lt;o&amp;gt; NRF_SDH_BLE_TOTAL_LINK_COUNT - Total link count. &lt;br /&gt;// &amp;lt;i&amp;gt; Maximum number of total concurrent connections using the default configuration.&lt;br /&gt;&lt;br /&gt;#ifndef NRF_SDH_BLE_TOTAL_LINK_COUNT&lt;br /&gt;#define NRF_SDH_BLE_TOTAL_LINK_COUNT 2&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any other changes required for connection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect one pheripheral to two central</title><link>https://devzone.nordicsemi.com/thread/269186?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 13:35:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c0cf6dc-e2cf-482f-b5c2-5f1c6d7e51ef</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;See the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/ble_sdk_app_multiperipheral.html?cp=7_1_4_2_2_26"&gt;multi-peripheral example&lt;/a&gt; in the SDK. It implements exactly this behavior.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>