<?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>Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31329/nordic-controller-is-not-receveing-the-ble-disconnect-event-from-the-ble-android-application-som-times-if-i-kill-the-app-reproducability-1-out-of-20</link><description>I am using nrf52832 peripheral and ble central with some android application .if an app opens it we get ble disconnect event and if we kill the app ble_disconect will come to the nordic board.it is working normally in most cases.if we forcefully kill</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Mar 2018 08:56:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31329/nordic-controller-is-not-receveing-the-ble-disconnect-event-from-the-ble-android-application-som-times-if-i-kill-the-app-reproducability-1-out-of-20" /><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/125470?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 08:56:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98a5cad9-3a33-42d4-aaf9-c4a99fcbb15a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;First step would be to setup an app_timer that repeatedly toggle an GPIO, to verify you have implemented app_timer correctly, does this work?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Next step would be to start the app_timer on BLE_GAP_EVT_CONNECTED event, and then if there is no PM_EVT_CONN_SEC_SUCCEEDED in&amp;nbsp;pm_evt_handler() within lets say 5seconds, then the app_timer timeout handler can execute&amp;nbsp;sd_ble_gap_disconnect() to force a disconnect.&lt;/p&gt;
&lt;p&gt;You can stop the app_timer on&amp;nbsp;PM_EVT_CONN_SEC_SUCCEEDED and&amp;nbsp;BLE_GAP_EVT_DISCONNECTED events, to make sure the timeout handler does not execute a disconnect if the link is securely encrypted or if the link is already disconnected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/125261?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 06:34:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11d0119c-2e50-47db-8089-be12e71c14b5</guid><dc:creator>ramakrishna</dc:creator><description>&lt;p&gt;hi tank you&amp;nbsp; for the support,&lt;/p&gt;
&lt;p&gt;I have implemented the timer and it is working fine&lt;/p&gt;
&lt;p&gt;now my doubt is why time out is not coming if we are not exachanging any data for more than 4 sec? can u please explain?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/124993?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 13:16:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4f3e296-1a5e-47bf-b2fb-7d2c80f25131</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi, you can always add an application timer that is started on connection event, and then the application timer can disconnect the link, if the link has not successfully encrypted after for instance a few seconds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/124760?ContentTypeID=1</link><pubDate>Fri, 16 Mar 2018 12:32:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67e5c189-dd40-43c0-8411-1514ef0cfc72</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;You could try using high connection interval values, which would slow down everything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/124745?ContentTypeID=1</link><pubDate>Fri, 16 Mar 2018 11:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b734fe37-6495-445d-bd09-02c7296aafb3</guid><dc:creator>ramakrishna</dc:creator><description>&lt;p&gt;how can i delay the link encrption acknowledgement to the android during the connection establishment so that i can create a issue?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/124681?ContentTypeID=1</link><pubDate>Fri, 16 Mar 2018 05:09:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f55e5a6e-0964-47d5-8aa6-99981f71e8ac</guid><dc:creator>ramakrishna</dc:creator><description>&lt;p&gt;Hi Kenneth,I dont have a sniffer i need to buy that...&lt;/p&gt;
&lt;p&gt;from ble snooping log it is going through the fallowing sequence&lt;/p&gt;
&lt;p&gt;1.scanning&lt;/p&gt;
&lt;p&gt;2.connect&lt;/p&gt;
&lt;p&gt;3.paramers update&lt;/p&gt;
&lt;p&gt;4encryption&lt;/p&gt;
&lt;p&gt;5data exachange&lt;/p&gt;
&lt;p&gt;after central has sent connect nordic board leds is on and after that paramter updatation is done no if we kill the blue tooth application at encryption stage&amp;nbsp; in android (some times android is not sending ble disconnect and so is&amp;nbsp; nordic not getting disconnected) and no data tranfer was taking place.&lt;/p&gt;
&lt;p&gt;It is is connected state till we disable the bluetooth in the andorid.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Q 1)at this stage why IN NORDIC&amp;nbsp; time out was not coming even if we are not exchanging any data and getting disconnected.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Q 2)How to disconect the nordic if encryption was nor successfull and if it is there why it is not happening&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i am not changing any thing in the device manager code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/124334?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 10:07:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee092f32-9fce-4498-81ec-fd1728862e33</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Please create an on-air sniffer log.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/124320?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 09:48:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3037f85-6941-442c-92b0-bf7ee16430de</guid><dc:creator>ramakrishna</dc:creator><description>&lt;p&gt;i am using one to one connection only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/124319?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 09:45:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eb6c052-e7e0-49ad-9afa-fabe03fd6daa</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I suggest you make an on-air nRF sniffer log:&lt;br /&gt;&lt;a href="http://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer/(language)/eng-GB"&gt;http://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer/(language)/eng-GB&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That is the only way to check what is actually going on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/124260?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 05:16:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6474500e-07f8-4b29-9d5c-2d596b00aacb</guid><dc:creator>ramakrishna</dc:creator><description>&lt;p&gt;hi,this is the total snooping file i got by opening and killing the application&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hci_5F00_snoop20180313011859.cfa"&gt;devzone.nordicsemi.com/.../hci_5F00_snoop20180313011859.cfa&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;please go through it and if possible try to give your observasions&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/124259?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 05:08:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68a6f910-b0dc-41f4-9846-a64c4e7b7415</guid><dc:creator>ramakrishna</dc:creator><description>&lt;p&gt;hi Kenneth,in my case nordic board is not disconnecting at all,&lt;/p&gt;
&lt;p&gt;i am sharing u some screen shots that i got by using ble snooping in android .&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/workingcase.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/nonworkingcase.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;that time gab shows that ble application was closed and reopened before that case we are getting ble disconnect but in non working case i have not received it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/124165?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 13:00:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b246b152-87be-4e41-b7b7-1e3cae44d72f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi, the intention of the supervisor timeout is to handle cases like this, to ensure that the link is eventually disconnected if for instance the device and peer are out or range or battery is empty. The supervisor timeout is part of the connection request packet and can be updated using connection parameter update request during link is active. In this case it seems the android in some cases does not send a disconnect packet, thereby the peer will wait until supervisor timeout before link is disconnected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/124060?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 05:49:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27eaf09b-5c0f-41b4-8730-f8a8415691aa</guid><dc:creator>ramakrishna</dc:creator><description>&lt;p&gt;In my case nordic&amp;nbsp; was in connected state even if app was killed reason is i have not received a ble_disconnect event. and now if off the bluetooth only then only we are able to connect again to the tablet.&lt;/p&gt;
&lt;p&gt;I am using hrs rtos code.&lt;/p&gt;
&lt;p&gt;why the nordic is not disconnecting even they are not exchanging the data means even after after time out of 4 sec.&lt;/p&gt;
&lt;p&gt;what exactly the role of the supervisor time out?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/123951?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 14:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68507831-a383-4eb7-80e2-0512da354375</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Then the issues is likely a issue with Android, not much the nRF52832 softdevice can do if it doesn&amp;#39;t receive a disconnect packet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/123949?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 14:01:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cb217ab-6445-48a3-b06f-fe89edc37f65</guid><dc:creator>ramakrishna</dc:creator><description>&lt;p&gt;android is not sending disconnect .here in this case i have verified with bluetooth snooping log&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic controller is not receveing the ble disconnect event from the ble android application som times if i kill the app?reproducability 1 out of 20.</title><link>https://devzone.nordicsemi.com/thread/123908?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 12:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4b16607-24f2-4b47-a12e-7dda3cc7143e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;When a device disconnect the link, there will be disconnect packet sent from the device to the peer, and the peer&amp;nbsp; will acknowledge this packet, now the link is considered disconnected on both sides of the link.&lt;/p&gt;
&lt;p&gt;If there is noise in the environment, the acknowledge from the peer may be lost, in such case only the peer will disconnect, while the device will remain in a connection until supervisor timeout occurs. This is according to Bluetooth spec.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>