<?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>nRF UART service with multiple peripherals</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21824/nrf-uart-service-with-multiple-peripherals</link><description>I want to have an application similar to UART in the SDK example, with multiple peripherals. 
 I tried to modified existing UART example, but cannot make the central node to support multiple peripherals because softdevice_enable() only accepts 1 central</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 May 2017 09:08:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21824/nrf-uart-service-with-multiple-peripherals" /><item><title>RE: nRF UART service with multiple peripherals</title><link>https://devzone.nordicsemi.com/thread/85727?ContentTypeID=1</link><pubDate>Mon, 15 May 2017 09:08:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae1c0b0a-f34a-4ed5-b7c2-84e69a3cc962</guid><dc:creator>djqtsg</dc:creator><description>&lt;p&gt;By following the post &lt;a href="https://devzone.nordicsemi.com/question/109740/mismatch-between-connection-handles-in-ble_nus/?answer=109939#post-id-109939"&gt;link text&lt;/a&gt;, I have made it partially work.&lt;/p&gt;
&lt;p&gt;Now the central node can have two connections to peripheral nodes and even able to receive from the two P nodes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART service with multiple peripherals</title><link>https://devzone.nordicsemi.com/thread/85726?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 09:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bbfbad1-8207-4e21-a5c9-48f82ff962ef</guid><dc:creator>djqtsg</dc:creator><description>&lt;p&gt;my code have DLE feature:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;	//Configure the memory pools available for application packets
	ble_conn_bw_counts_t conn_bw_counts = {
			.tx_counts = {.high_count = 1, .mid_count = 0, .low_count = 0},
			.rx_counts = {.high_count = 1, .mid_count = 0, .low_count = 0}
	};
		
	//Configure conn_bw_counts in enable_params (along with others) 
	ble_enable_params.common_enable_params.p_conn_bw_counts = &amp;amp;conn_bw_counts;
	ble_enable_params.common_enable_params.vs_uuid_count = 1;
	ble_enable_params.gatts_enable_params.attr_tab_size = BLE_GATTS_ATTR_TAB_SIZE_DEFAULT;
	ble_enable_params.gatts_enable_params.service_changed = 0;
	ble_enable_params.gap_enable_params.periph_conn_count = PERIPHERAL_LINK_COUNT; //PERIPHERAL_LINK_COUNT   0   &amp;lt; Number of peripheral links used by the application. When changing this number remember to adjust the RAM settings
	ble_enable_params.gap_enable_params.central_conn_count = CENTRAL_LINK_COUNT; //CENTRAL_LINK_COUNT      1  &amp;lt; Number of central links used by the application. When changing this number remember to adjust the RAM settings
	ble_enable_params.gap_enable_params.central_sec_count = 1;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I will try to modify the original UART code and see what happens. Thx.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART service with multiple peripherals</title><link>https://devzone.nordicsemi.com/thread/85725?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 09:26:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaded1b7-4530-4287-9da7-e639ecbc5b11</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You should not get 0x07 only by increasing the CENTRAL_LINK_COUNT define. This should give a 0x04 NO_MEM error, if you have not changed the RAM settings to make room for the increased softdevice RAM usage. Have you made any other changes to the code?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/109740/mismatch-between-connection-handles-in-ble_nus/?answer=109939#post-id-109939"&gt;This answer&lt;/a&gt; shows how to add support for multiple peripherals in the UART central example. It does not provide a complete example, but it is a good starting point to get it up and running.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART service with multiple peripherals</title><link>https://devzone.nordicsemi.com/thread/85724?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 09:04:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64d66259-bfec-49b0-9746-823cd1ed65be</guid><dc:creator>djqtsg</dc:creator><description>&lt;p&gt;I want a central able to talk to multiple peripheral.&lt;/p&gt;
&lt;p&gt;That link you gave leads to a dual peripheral application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART service with multiple peripherals</title><link>https://devzone.nordicsemi.com/thread/85723?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 08:44:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcf42b54-68d8-4530-b6f5-1ec83b0f108e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, I might have misunderstood your initial question. Which example exactly are you using? Are you creating a central which can connect to multiple peripherals, or do you want a peripheral that can connect to multiple centrals?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART service with multiple peripherals</title><link>https://devzone.nordicsemi.com/thread/85722?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 08:06:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb1fe285-9655-41d3-b034-c79079ed157c</guid><dc:creator>djqtsg</dc:creator><description>&lt;p&gt;I am using SDK 12.0.0, SoftDevice version is S132.&lt;/p&gt;
&lt;p&gt;The error code is 0x07, Invalid Parameter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART service with multiple peripherals</title><link>https://devzone.nordicsemi.com/thread/85721?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 07:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce287d3e-7c58-4e38-89f6-605d394d923e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;ul&gt;
&lt;li&gt;Which SDK and Softdevice versions are you using?&lt;/li&gt;
&lt;li&gt;What error do you get when setting &amp;quot;central link count &amp;gt; 1&amp;quot;?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You might have to change the RAM settings to allow higher link count. &lt;a href="https://devzone.nordicsemi.com/question/110020/dual-peripheral-feature/?answer=110021#post-id-110021"&gt;This answer&lt;/a&gt; contains an example of how to add dual peripheral feature to the UART example (it&amp;#39;s based on alpha softdevice and SDK, but you should be able to see what changes have been made.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>