<?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>Check the host&amp;#39;s connection status on the peripheral device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98966/check-the-host-s-connection-status-on-the-peripheral-device</link><description>Hello, I am using version 17.1 of the SDK and Combine 3 things: multiperipheral + ble_app_uart + ble_hid_keyboard. 
 Currently, there are 2 peripheral device connections available on the host (Andrioid Phone). 
 What I want to do is, if I have an A Peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Apr 2023 23:10:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98966/check-the-host-s-connection-status-on-the-peripheral-device" /><item><title>RE: Check the host's connection status on the peripheral device</title><link>https://devzone.nordicsemi.com/thread/422386?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 23:10:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b16787fb-e501-4daa-9185-c171e93d1c7e</guid><dc:creator>Hanss</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1682464503414v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I tracked it down, I realized that the error was occurring in on_adv_evt in advertising_init, so I commented it out and it worked fine.&lt;br /&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check the host's connection status on the peripheral device</title><link>https://devzone.nordicsemi.com/thread/422318?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 13:37:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8de5d04-38f9-46fe-8b3d-fca67cd92257</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;If you are in a connection,&amp;nbsp;&lt;span&gt;peripheral and central connected. And the&amp;nbsp;peripheral starts connectable-advertising&amp;nbsp;again, and&amp;nbsp;an additional&amp;nbsp;central connects, you will get a&amp;nbsp;BLE_GAP_EVT_CONNECTED event in the&amp;nbsp;ble_evt_handler.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check the host's connection status on the peripheral device</title><link>https://devzone.nordicsemi.com/thread/422149?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2023 22:41:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ee59c75-30db-40e0-8ea8-f7015ab64655</guid><dc:creator>Hanss</dc:creator><description>&lt;p&gt;Okay, let&amp;#39;s change the question.&lt;br /&gt;With the peripheral device and host connected, use connection request comes from another host, where do you detect it?&lt;br /&gt;I don&amp;#39;t think it&amp;#39;s detected in the ble_evt_handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check the host's connection status on the peripheral device</title><link>https://devzone.nordicsemi.com/thread/421963?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2023 08:38:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0049e835-b203-46d9-824d-068edb4bd43f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You get the BLE_GAP_EVT_CONNECTED event, with address, etc, when a device connects, and likewise a BLE_GAP_EVT_DISCONNECTED when a device disconnects. The application needs to keep track of this.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;ble_conn_state library could help keep track of this.&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_ble_conn_state.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_ble_conn_state.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check the host's connection status on the peripheral device</title><link>https://devzone.nordicsemi.com/thread/421908?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2023 00:05:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b651d843-c7c6-4e7b-aecf-3cf517e0d126</guid><dc:creator>Hanss</dc:creator><description>&lt;p&gt;The reason for combining the three is that when you connect a &amp;#39;b&amp;#39; p&lt;span&gt;eripheral&amp;nbsp;&lt;/span&gt;while &amp;#39;a&amp;#39; &lt;span&gt;p&lt;/span&gt;&lt;span&gt;eripheral&amp;nbsp;&lt;/span&gt;is connected, i disconnect &amp;#39;a&amp;#39; &lt;span&gt;p&lt;/span&gt;&lt;span&gt;eripheral&amp;nbsp;&lt;/span&gt;and connect only &amp;#39;b&amp;#39; &lt;span&gt;p&lt;/span&gt;&lt;span&gt;eripheral&amp;nbsp;&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;I would like to know how I can check if device &amp;#39;A&amp;#39; is currently connected to device &amp;#39;B&amp;#39; on a peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check the host's connection status on the peripheral device</title><link>https://devzone.nordicsemi.com/thread/421791?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2023 13:59:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:222a2454-f48c-4ec9-a824-6c30c918464c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can use&amp;nbsp;&lt;span&gt;sd_ble_gap_disconnect() to disconnect a link.&lt;/span&gt;&lt;/p&gt;
[quote user=""]Combine 3 things: multiperipheral + ble_app_uart + ble_hid_keyboard.[/quote]
&lt;p&gt;&lt;span&gt;If&amp;nbsp;you only want 1 device to be connected, then maybe you don&amp;#39;t need to functionality provided by &amp;quot;multiperipheral&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>