<?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>how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17662/how-to-check-if-ble-is-connected</link><description>Hello, 
 Is there any way to check if the bluetooth is connected after NVIC Reset?In our project when we get a specific command from the UART, NVIC reset is done.After the reset i want to check if our device (peripheral) is connected and if it is to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Oct 2017 13:03:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17662/how-to-check-if-ble-is-connected" /><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67942?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 13:03:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad326237-32fb-4551-a9de-04f7ed5f6476</guid><dc:creator>Nivetha</dc:creator><description>&lt;p&gt;Sure @Hung. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67944?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 10:44:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d952cabe-74c4-48e2-bb84-9fe433da7f71</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nivetha, I suggest to continue the discussion in your other case &lt;a href="https://devzone.nordicsemi.com/question/173431/connection-alive-by-empty-data-pdu-instead-of-notifications/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67941?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 08:06:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99d212cf-d295-4545-84c7-4d95b22f1e3f</guid><dc:creator>Nivetha</dc:creator><description>&lt;p&gt;yes, is my settings good for connection interval of 10ms? If I switch off the peripheral device during data transmission and switch on again, I expect it to start sending the Adv packets and continue with the data transmission.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67943?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 20:49:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fddd9474-4d73-4ff8-9aa8-0695587a1f7c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure how to interpret your last comment. Is it a question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67940?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 14:32:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da0ad195-d1eb-4ea2-bbdb-46067e0c8104</guid><dc:creator>Nivetha</dc:creator><description>&lt;p&gt;my APP_ADV_INTERVAL is 25ms and advertising timeout is 0.  My scan interval is 50 ms, scan window is 20ms, connection interval is 10ms. Suppose, I reset the central device, I expect it to start scanning after the connection supervision timeout of 1second.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67947?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 13:41:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b98906aa-2d6b-437b-9e1a-027362fafb84</guid><dc:creator>Nivetha</dc:creator><description>&lt;p&gt;Yeah, I got it. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67946?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 13:36:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92d9465a-ce71-4443-83a8-72f3871dbf11</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;To be able to connect after you have disconnected the peripheral must advertise, and the central must scan. The more aggressive you advertise/scan the faster you will be connected. I&amp;#39;m not sure if this answers your questions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67945?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 12:03:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ef4e0be-9f9e-4761-ac1b-9da209f32c5f</guid><dc:creator>Nivetha</dc:creator><description>&lt;p&gt;Hi @Petter. I have a similar question, when the central stops receiving the data or if the peripheral goes out of range and comes in again. How to get reconnected successfully without any delay? i.e peripheral should start adversitising immediately and the central should be able to pick it up. I am working on a medical application where the peripheral is in a patients body who is expected to move in and out. Hence, there will be a loss in the connection and once they are within range, how to enable the connection and data transmission automatically? The connection interval I&amp;#39;m using is 10 ms, nrf52840 DK on peripheral and nrf52840 DK as a central device. Your help is much appreciated. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67933?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 08:31:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8e4db76-ce90-4e42-98a5-d8c41aedd46a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Have I misunderstood your problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67939?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 14:16:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4493834e-0612-4ce5-8dab-b725cd93abd3</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I don&amp;#39;t understand why you are showing me this code. Again, there is no need to check if you are connected after a reset, because you will never be.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67938?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 14:09:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66d298a6-3a8a-4b9a-b817-4136b6b6cad3</guid><dc:creator>martin</dc:creator><description>&lt;p&gt;..........&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67937?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 13:53:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56e455be-905a-41be-9a0f-ce80ef65fbe0</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The central device may still believe it is connected, because it wouldn&amp;#39;t know why the peripheral doesn&amp;#39;t respond. It doesn&amp;#39;t know that the device has been reset, it will just experience that packets are lost. Maybe you can call sd_ble_gap_disconnect() and wait for the BLE_GAP_EVT_DISCONNECTED event before you do the reset? Then the link will be disconnected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67936?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 13:45:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f05b3dbe-1ffb-491d-af13-1c7f5acec066</guid><dc:creator>martin</dc:creator><description>&lt;p&gt;i am using BLE Scanner app which shows me that after the reset i am still connected.When i receive the command from the RS and the reset is done it seems that i am still connected for a small period of time (3-5 sec) after which i am getting disconnect.I was told that this delay must be removed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67935?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 13:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b008486c-6cff-4e5e-b6ee-c4863e240897</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;After a reset you will &lt;strong&gt;not&lt;/strong&gt; be connected to anything.&lt;/p&gt;
&lt;p&gt;If you have a peripheral device you will have to start to advertise and wait for the central device to send a connection request to you before you can be connected again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67932?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 12:08:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a359f5d-7169-4cbd-9bb9-70895824a2a0</guid><dc:creator>martin</dc:creator><description>&lt;p&gt;Hi Petter i tried to explain better my problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check if BLE is connected</title><link>https://devzone.nordicsemi.com/thread/67934?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 09:39:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41026745-3b7a-400a-8e4c-4612470d90a4</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m having trouble understanding you, could you please edit and rephrase your question? What exactly is a master reset?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>