<?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>Refer to nordic ble central mutilink to modify zephyr ble connect, disconnection will cause problems （on nrf52840）</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69095/refer-to-nordic-ble-central-mutilink-to-modify-zephyr-ble-connect-disconnection-will-cause-problems-on-nrf52840</link><description>Since Zephyr’s official BLE sample code, his BLE central only supports one central to one peripheral So I refer to the BLE central multulink officially provided by nordic to modify the zephyr example The reference files are: \nRF5SDK160098a08e2\examples</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Dec 2020 12:47:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69095/refer-to-nordic-ble-central-mutilink-to-modify-zephyr-ble-connect-disconnection-will-cause-problems-on-nrf52840" /><item><title>RE: Refer to nordic ble central mutilink to modify zephyr ble connect, disconnection will cause problems （on nrf52840）</title><link>https://devzone.nordicsemi.com/thread/285074?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2020 12:47:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:220ce1cb-f9b2-403d-8c26-b1e16c8f5f80</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Poyi,&lt;/p&gt;
&lt;p&gt;The only examples of multilink central in NCS is the dongle for &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf_desktop/README.html"&gt;nRF Desktop&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refer to nordic ble central mutilink to modify zephyr ble connect, disconnection will cause problems （on nrf52840）</title><link>https://devzone.nordicsemi.com/thread/284755?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 11:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2454e77d-59cf-4f6e-890e-98d01ac59c2d</guid><dc:creator>hmw</dc:creator><description>&lt;p&gt;Thank you for your offer&lt;br /&gt;But I currently want to do multilink on central&lt;br /&gt;And it&amp;rsquo;s like only peripherals code&lt;br /&gt;Is there an example of central multilink?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Poyi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refer to nordic ble central mutilink to modify zephyr ble connect, disconnection will cause problems （on nrf52840）</title><link>https://devzone.nordicsemi.com/thread/283591?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 14:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:693aa7b2-a907-4200-9f0b-74f71b68fb3c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I use NCS (nRF Connect SDK) v1.4.0. Try that one. You can find it here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf"&gt;https://github.com/nrfconnect/sdk-nrf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The sample is found in the path:&lt;/p&gt;
&lt;p&gt;NCS\nrf\samples\bluetooth\peripheral_hids_mouse&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refer to nordic ble central mutilink to modify zephyr ble connect, disconnection will cause problems （on nrf52840）</title><link>https://devzone.nordicsemi.com/thread/283397?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2020 21:18:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54937cc7-3d09-4552-b6e7-f42afa920769</guid><dc:creator>hmw</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;CONFIG_BT_MAX_CONN, I have already set it.&lt;br /&gt;In addition, I did not mix nRF5 SDK and nRF Connect SDK (zephyr) together&lt;br /&gt;I referred to the process of nrf5 sdk BLE multilink to make changes, sorry I didn&amp;rsquo;t make it clear&lt;br /&gt;What is your version of zeohyr? I&amp;rsquo;m 2.4.99 and I didn&amp;rsquo;t see the folder peripheral_hids_mouse you mentioned, and I want to use a one central to multiple peripherals&lt;br /&gt;Thank,&lt;/p&gt;
&lt;p&gt;PoYi,Lin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refer to nordic ble central mutilink to modify zephyr ble connect, disconnection will cause problems （on nrf52840）</title><link>https://devzone.nordicsemi.com/thread/283320?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2020 13:27:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:040fb1e2-c481-4b16-98ec-0ba786412204</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If you want to support multiple connections in a zephyr project, you should set the CONFIG_BT_MAX_CONN in prj.conf to whatever number you want to support. Look at how this is set to 1 in the NCS\nrf\samples\bluetooth\peripheral_uart\prj.conf.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Other than that, you shouldn&amp;#39;t mix source code from the nRF5 SDK and nRF Connect SDK (zephyr). They are not compatible.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The application in the peripheral_uart example is intended for only one connection, but you can look at the peripheral_hids_mouse example, which supports two connections, how you can handle multiple connections from your main.c file.&lt;/p&gt;
&lt;p&gt;the peripheral_uart example has one pointer to the connection:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static struct bt_conn *current_conn;&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;while the peripheral_hids_mouse example has an array:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static struct conn_mode {
	struct bt_conn *conn;
	bool in_boot_mode;
} conn_mode[CONFIG_BT_HIDS_MAX_CLIENT_COUNT];&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Edvin&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>