<?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>SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27126/sdk14-nus-multilink-issue</link><description>Dear lovely people! 
 Setup: sdk14 / s132 v5 / nrf52832 
 Just like with the previous SDKs, I tried to make a multilink nus central fw.
The periph device runs my code based on the ble_app_uart example, the central device runs my code based on the ble_app_uart_c</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 May 2018 16:50:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27126/sdk14-nus-multilink-issue" /><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/133886?ContentTypeID=1</link><pubDate>Tue, 29 May 2018 16:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66c9d53d-7699-4aa2-a9d9-c1dd389605f9</guid><dc:creator>ScottNordic</dc:creator><description>&lt;p&gt;Hi Petter,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am trying the same thing that Adam was. However, when using Adam&amp;#39;s code with your recommended changes, I get&amp;nbsp;&amp;lt;error&amp;gt; app: ERROR 4 [NRF_ERROR_NO_MEM]&lt;/p&gt;
&lt;p&gt;Do I have to increase the available memory somewhere?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Scott&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/133882?ContentTypeID=1</link><pubDate>Tue, 29 May 2018 15:41:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a12534b-cf4f-4b4d-bc88-ccf10ba8906f</guid><dc:creator>ScottNordic</dc:creator><description>&lt;p&gt;Hi Adam,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have the changes you made to the UART Peripheral code by chance? Were there any major changes?&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: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/127975?ContentTypeID=1</link><pubDate>Thu, 12 Apr 2018 08:24:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27f0311d-7575-4499-add0-d9feb06fafcf</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;It was my problem for a long time until I read this forum . Good luck :D&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106774?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 03:33:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:047e8293-8c9e-4229-a759-df58a987460f</guid><dc:creator>Enzo</dc:creator><description>&lt;p&gt;aha , I get it ,function on_hvx() need add code:ble_nus_c_evt.conn_handle=p_ble_evt-&amp;gt;evt.gattc_evt.conn_handle;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106773?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 03:19:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc92ef71-7b11-4da9-8e97-85f15ff65b22</guid><dc:creator>Enzo</dc:creator><description>&lt;p&gt;Hi Petter,it&amp;#39;s me again..I have a question about function ble_nus_c_evt_handler.When i get BLE_NUS_C_EVT_DISCOVERY_COMPLETE event the p_ble_nus_evt-&amp;gt;conn_handle is 0 for first peripheral ,1 for second peripheral. But when i get BLE_NUS_C_EVT_NUS_TX_EVT event it still be 0 .I cannot distinguish which device comes from the message.
CODE:
case BLE_NUS_C_EVT_DISCOVERY_COMPLETE:
err_code = ble_nus_c_handles_assign(p_ble_nus_c, p_ble_nus_evt-&amp;gt;conn_handle, &amp;amp;p_ble_nus_evt-&amp;gt;handles);
err_code = ble_nus_c_tx_notif_enable(p_ble_nus_c);
break;
case BLE_NUS_C_EVT_NUS_TX_EVT:
ble_nus_chars_received_uart_print(p_ble_nus_evt-&amp;gt;p_data, p_ble_nus_evt-&amp;gt;data_len);
break;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106771?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 15:26:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c5c50da-d876-447f-afc1-cbb9b1e5048c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Great that it could be of help Enzo :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106781?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 09:55:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd0c4d17-b2f0-46e6-bc6f-887530dfe4c5</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Great! Let me know if there is anything else that I can help you with.&lt;/p&gt;
&lt;p&gt;Not sure, I&amp;#39;ll have to look into it a bit. But as I said, as long as you are only doing device discovery on one device at the time, one instance should be enough from my understanding.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106780?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 09:26:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af3678f5-8be4-4094-9bc6-a70139a1704d</guid><dc:creator>Adam Varga</dc:creator><description>&lt;p&gt;Thank you so much Petter, this solved the issue! Do you think that this is the way it should be done in every multilink project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106770?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 09:16:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3fcd4ae-548d-400f-8349-0ff3b887898c</guid><dc:creator>Enzo</dc:creator><description>&lt;p&gt;Thanks Petter.
I&amp;#39;m having the same problem just today.After I see your answer ,I change BLE_DB_DISCOVERY_ARRY_DEF back to BLE_DB_DISCOVERY_DEF .It work success with one central and two peripheral.(cause i only have three boards)
Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106779?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 18:25:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c516aac-1041-40d0-97e3-3d757f222cc3</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I tried your project. I believe you get into trouble because of&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;BLE_DB_DISCOVERY_ARRAY_DEF(m_db_disc, NRF_SDH_BLE_CENTRAL_LINK_COUNT);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I would try with just&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;BLE_DB_DISCOVERY_DEF(m_db_disc);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I don&amp;#39;t think you need so many ble_db_discovery_t instances, at least not if you are connecting and doing service discovery with one peripheral at the time, which I recommend you do first. I see that it is done that way in the multilink example, but I&amp;#39;m not convinced it is necessary.&lt;/p&gt;
&lt;p&gt;I will try to look into this a bit further, but this is what I got for now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106776?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2017 12:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54db92f8-7c11-4d14-b66b-6d2ca04a38aa</guid><dc:creator>Adam Varga</dc:creator><description>&lt;p&gt;Thank you Petter in advance!
I only modified the nus header in its original location.
Modified header file: &lt;a href="https://www.dropbox.com/s/aihfhoh5fy8fxqs/ble_nus_c.h?dl=0"&gt;download&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Even connecting to 1 peripheral causes this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106775?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2017 12:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a1952d9-2871-46d5-bda3-e6a6964257dc</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;ll have a look, but have you modified any of the libraries? Because then I need those as well, or share you complete SDK. What do I need to do to reproduce this behavior? Just let one peripheral connect? Or several?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106769?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 15:05:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c1dc439-3a0c-40f9-b8f2-f969e20b7d11</guid><dc:creator>Adam Varga</dc:creator><description>&lt;p&gt;Dear Petter,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still clueless about this topic so I uploaded my project and I ask for more help.
I wanted to make it as straightforward for you as possible. Since I want to make a combination of the multilink and the nus examples, I used the multilink example as my starting point and added the other required functions from the nus example project. The main.c file is very easy to diff to see what I changed.&lt;/p&gt;
&lt;p&gt;Obviously, to make it work, you need to place it to the same place as the original project (nRF5_SDK_14.2.0_17b948a/examples/ble_central/).&lt;/p&gt;
&lt;p&gt;Link: &lt;a href="https://www.dropbox.com/s/70rzl0n34l05x8s/ble_app_multilink_central.rar?dl=0"&gt;modified multilink example&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you so much if you can allocate some time for my issue. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106772?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 07:23:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f5cb722-e39a-4d14-b84a-3d3d6b8911fc</guid><dc:creator>strengthstrong</dc:creator><description>&lt;p&gt;You solved it, can you tell me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106768?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 06:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c17c97eb-d8bf-439d-a453-2bfcb4f7b481</guid><dc:creator>strengthstrong</dc:creator><description>&lt;p&gt;i am having the same  problem, can you help me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106767?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 13:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:650acca1-0792-4689-a1f5-4e763d56a953</guid><dc:creator>Adam Varga</dc:creator><description>&lt;p&gt;Nevermind Petter, by giving up I meant that I had more important stuff to do so I just didn&amp;#39;t want to spend more time with this :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106766?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 11:42:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69c8d9d8-cc65-4506-88e5-758ba4f9d9e2</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, it seems I haven&amp;#39;t made myself clear, I didn&amp;#39;t mean for you to wait for me to make an example. What I meant is that you should continue to try yourself, and if I have time to spare I will make an example. I will of course try to help you if you get into trouble.&lt;/p&gt;
&lt;p&gt;If you can&amp;#39;t figure out why you get BLE_NUS_C_EVT_DISCOVERY_COMPLETE three times, you can upload your complete project so I can test it here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106777?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 15:53:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59b811f6-e77b-4135-8c0a-1c3b640b84cb</guid><dc:creator>Adam Varga</dc:creator><description>&lt;p&gt;Nothing yet. I gave up and still waiting for a proper answer :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106765?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 13:25:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:663cad78-4b0f-4203-8fcb-57ffc2635c96</guid><dc:creator>michaeld</dc:creator><description>&lt;p&gt;I&amp;#39;m having the same problem. Any news on this Adam Varga?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106778?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2017 13:29:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0bb0ddb-223d-4d5e-bdec-270a3f76e8fa</guid><dc:creator>Adam Varga</dc:creator><description>&lt;p&gt;That&amp;#39;s correct.
Thanks for your time in advance Petter!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 NUS Multilink issue</title><link>https://devzone.nordicsemi.com/thread/106764?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2017 13:29:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32be3cb5-f73e-411b-805e-cf7aef80b3de</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You receive BLE_NUS_C_EVT_DISCOVERY_COMPLETE three times even though you only have one connection? Doesn&amp;#39;t seem like the correct behavior. I can see if I find the time to make an example for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>