<?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>Dual peripheral feature?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18843/dual-peripheral-feature</link><description>I see from the release notes of s132 4.0.0-2.alpha that it adds: 
 Support for 20 links in total with freely selectable role (Central/Peripheral) for each link. 
 I want to try this feature, but I can’t find any example for this in SDK 12.2.0 or SDK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Apr 2017 13:21:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18843/dual-peripheral-feature" /><item><title>RE: Dual peripheral feature?</title><link>https://devzone.nordicsemi.com/thread/72784?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2017 13:21:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97b5aaef-7e3f-4265-9bc8-362ab2048ca4</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;0x7 is NRF_ERROR_INVALID_PARAM - Invalid Client RX MTU size supplied, see documentation above sd_ble_gattc_exchange_mtu_request(). I see that you call sd_ble_gap_adv_start(&amp;amp;adv_params, 0), with conn_cfg_tag = 0? I think you need to use the tag you used in ble_stack_init(). So it should be something like sd_ble_gap_adv_start(&amp;amp;adv_params, CONN_CFG_TAG)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual peripheral feature?</title><link>https://devzone.nordicsemi.com/thread/72783?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 21:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a1c9a90-b682-41e3-8a3f-d79afafd7723</guid><dc:creator>rct42</dc:creator><description>&lt;p&gt;Petter, if you would be able to look into this it would be much appreciated! What I&amp;#39;ve found so far is that the dual peripheral example does not handle the ATT MTU requests (compared to the ble_app_uart example). I&amp;#39;ve modified your example a little bit, and here&amp;#39;s the &lt;a href="https://www.dropbox.com/s/p60rq7l6j272r17/multi_uart.zip?dl=0"&gt;modified project&lt;/a&gt;. In order to run this example, unzip the v13.0.0 SDK (nRF5_SDK_13.0.0_04a0bfd.zip), create a folder called &amp;quot;test&amp;quot; under examples/, then put the &amp;quot;multi_uart&amp;quot; project in this &amp;quot;test&amp;quot; folder. I have also captured the RTT messages between the &amp;quot;ble_app_uart&amp;quot;/&amp;quot;ble_app_uart_c&amp;quot; and &amp;quot;multi_uart&amp;quot;/&amp;quot;ble_app_uart_c&amp;quot; in a file called &amp;quot;multi_uart_debug.txt&amp;quot;. The current issue on the &amp;quot;multi_uart&amp;quot; is &amp;quot;sd_ble_gattc_exchange_mtu_request() returned unexpected value 0x7&amp;quot;. Suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual peripheral feature?</title><link>https://devzone.nordicsemi.com/thread/72782?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 15:15:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0c28f84-d837-4cff-a50c-3663989960d6</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Sorry for the delayed reply. I don&amp;#39;t remember what I tested this with, but I don&amp;#39;t think I used ble_app_uart_c. Is this still an issue? Let me know, and I&amp;#39;ll look into it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual peripheral feature?</title><link>https://devzone.nordicsemi.com/thread/72779?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2017 03:07:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19bfcaa0-b836-4a6f-a8a8-d93aaf9736d9</guid><dc:creator>rct42</dc:creator><description>&lt;p&gt;Petter,&lt;/p&gt;
&lt;p&gt;Firstly thanks for the example. I&amp;#39;m aware that it is not an official release and hasn&amp;#39;t been fully tested. Having said that, could you please confirm that the dual peripheral example was tested with the &amp;quot;ble_central\ble_app_uart_c&amp;quot; example in the v13.0.0 SDK? I can confirm that I&amp;#39;m able to get the system working with the Nordic UART v2.0 Android app, but for me the ble_app_uart_c never is able to connect to the &amp;quot;Nordic UART Service&amp;quot;. Meanwhile, if I use the &amp;quot;ble_peripheral/ble_app_uart&amp;quot; in place of the dual peripheral example, I am able to get both the ble_app_uart_c and the Android app connecting and sending/receiving data from it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual peripheral feature?</title><link>https://devzone.nordicsemi.com/thread/72780?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2017 14:01:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d50f42cb-e6ad-4ae5-8075-6146ff9832c5</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v5.0.0/group___b_l_e___g_a_t_t_s___h_v_x___s_y_s___a_t_t_r_s___m_i_s_s_i_n_g___m_s_c.html?cp=2_3_1_0_0_2_4_3_4"&gt;This&lt;/a&gt; explaines how to handle this error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual peripheral feature?</title><link>https://devzone.nordicsemi.com/thread/72781?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2017 04:21:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf4f7c35-390e-4330-b165-710f48cae406</guid><dc:creator>rct42</dc:creator><description>&lt;p&gt;I&amp;#39;m also evaluating this example project and have made some slight modifications (running on a PCA10056, extended to N-peripherals, echo out the RX data to all connected peripherals). However, I get an error of 0x3401 (BLE_ERROR_GATTS_SYS_ATTR_MISSING) when the call is made to sd_ble_gatts_hvx. Is this error on the peripheral side (firmware), or on the central side (NRF UART v2.0), or both? Note that this occurs when when I have two NRF UART v2.0 central devices connected. It is able to echo back the data to a single NRF UART v2.0 central. I have yet to try three central devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual peripheral feature?</title><link>https://devzone.nordicsemi.com/thread/72778?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 13:01:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdf40d69-2cbf-484e-9c57-fbce6014a4b7</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Sorry if I was unclear, the feature will definately make it :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual peripheral feature?</title><link>https://devzone.nordicsemi.com/thread/72777?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 12:50:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:997e9698-c915-4512-9e2c-58170312bfa3</guid><dc:creator>Harm</dc:creator><description>&lt;p&gt;Good to hear, I was afraid that this feature would not make it to a stable version. I&amp;#39;ll use S132 4.0.0-2.alpha for now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual peripheral feature?</title><link>https://devzone.nordicsemi.com/thread/72776?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 12:47:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f144a18a-5079-4dbd-bf04-2e149fa5e68c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It is possible with the nRF52, currently with S132 4.0.0-2.alpha, and with S132 4.0.0 and S132 5.0.0 when they are released.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual peripheral feature?</title><link>https://devzone.nordicsemi.com/thread/72775?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 12:09:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:896f33c4-7576-449b-a4a8-8471893aea0a</guid><dc:creator>Harm</dc:creator><description>&lt;p&gt;That&amp;#39;s unfortunate. I am seeking a solution where all my nRF52 devices can do the following simultaneously: 1. peripheral role and being connected to a central (e.g. phone/laptop with Web Bluetooth API ) 2. connect to one of the other nRF52 wirelessly. I see there is are ble_central_and_peripheral examples which I could use for one nRF52, the other nRF52 would then need to act as 2 peripherals. Is this possible with the nRF52? Texas Instruments supports multi-role...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual peripheral feature?</title><link>https://devzone.nordicsemi.com/thread/72774?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 09:56:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bf10a77-3427-4ace-afb3-c81c9c2a8360</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;This feature is not supported by S132 5.0.0-1.alpha.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual peripheral feature?</title><link>https://devzone.nordicsemi.com/thread/72773?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 09:47:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40479988-6210-4bcb-b56e-36d8cc6064f5</guid><dc:creator>Harm</dc:creator><description>&lt;p&gt;Do you have an example for the nRF52832 13.0.0-1.alpha SDK and softdevice 5.0.0-1.alpha? This example does not compile in that environment with armgcc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual peripheral feature?</title><link>https://devzone.nordicsemi.com/thread/72772?ContentTypeID=1</link><pubDate>Sat, 07 Jan 2017 15:58:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77395b31-9204-4227-8b4f-ea4aaff43f6e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Actually S132 4.0.0-2.alpha is not compatible with SDK 12.2.0 or SDK 13.0.0-1.alpha, but I made a &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dual_5F00_peripheral.zip"&gt;minimalistic example&lt;/a&gt; that demonstrates the dual peripheral feature.&lt;/p&gt;
&lt;p&gt;I used ble_app_uart as a starting point, but I modified it so that two centrals can connect. Then if one client writes into the UART RX characteristic, the data will be notified to the other client, and vice versa.&lt;/p&gt;
&lt;p&gt;I added some logging to make it easy to see the reason, if anything is not working, for example that you haven’t connected two centrals, that you haven’t set the CCCDs to be able to receive notifications, and so on. So I recommend using a terminal on the PC.&lt;/p&gt;
&lt;p&gt;Please add a comment if you have trouble getting it to work.&lt;/p&gt;
&lt;p&gt;The example is not an official release, and is only tested with Keil and PCA10040, and this testing was very superficial.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>