<?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>Softdevice crashes/disappears after connection speed test</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21085/softdevice-crashes-disappears-after-connection-speed-test</link><description>Hi guys,
i was testing the connection speed from android in conjunction with advertisement time to see what will work better in my production code. 
 The result were: 
 
 ~3s on 100ms adv time 
 ~7s on 300ms adv time 
 
 I have some other sensor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Apr 2017 08:49:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21085/softdevice-crashes-disappears-after-connection-speed-test" /><item><title>RE: Softdevice crashes/disappears after connection speed test</title><link>https://devzone.nordicsemi.com/thread/82420?ContentTypeID=1</link><pubDate>Mon, 10 Apr 2017 08:49:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:966cb2eb-a55f-4984-9a20-229cc0a2cc4f</guid><dc:creator>schef</dc:creator><description>&lt;p&gt;I have managed to get the sniffer up and running. I will report back after i have some more info.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice crashes/disappears after connection speed test</title><link>https://devzone.nordicsemi.com/thread/82419?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2017 12:14:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6f27a23-ca37-4295-ae6b-13a38506d570</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I need to summarize what I have understood:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The problems happens when android phone connects and disconnects but nRF52 doesn&amp;#39;t get the disconnect event: In this case there should be a BLE_GAP_EVT_TIMEOUT event in the nRF52. Could you double check the behavior using our sniffer?&lt;/li&gt;
&lt;li&gt;Airplane mode works also but not disable bluetooth: Does the problem not occur when using airplane mode with Bluetooth enabled?&lt;/li&gt;
&lt;li&gt;It disconnects 7 seconds right after turning airplane mode on. It looks like normal disconnect event: In this case the nRF52 should understand that there has been a disconnect through the BLE_GAP_EVT_TIMEOUT event.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice crashes/disappears after connection speed test</title><link>https://devzone.nordicsemi.com/thread/82418?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 12:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:138b0465-7135-418a-8174-891c0a6a6748</guid><dc:creator>schef</dc:creator><description>&lt;p&gt;I don&amp;#39;t get any timeout event. It disconnects 7 seconds right after turning airplane mode on. It looks like normal disconnect event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice crashes/disappears after connection speed test</title><link>https://devzone.nordicsemi.com/thread/82417?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 12:33:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a214e9e1-e7c3-4014-8605-f5eeb77526cd</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;In the the cases where it doesn&amp;#39;t work, the nRF52 doesn&amp;#39;t receive the disconnect command from the phone, could you use the sniffer to check if the disconnect command actually was transmitted?&lt;/p&gt;
&lt;p&gt;If the nRF52 doesn&amp;#39;t receive a disconnect event, it will try to send packets until connection supervision timeout. How does your code handle the timeout event BLE_GAP_EVT_TIMEOUT? Does the nRF52 starts to advertise upon a timeout event?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice crashes/disappears after connection speed test</title><link>https://devzone.nordicsemi.com/thread/82416?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 12:25:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22ad828c-1514-4633-90d2-6883b37c7826</guid><dc:creator>schef</dc:creator><description>&lt;p&gt;Airplane mode works also but not disable bluetooth.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice crashes/disappears after connection speed test</title><link>https://devzone.nordicsemi.com/thread/82415?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 12:15:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08a5ebfc-7cce-41f6-bfea-f0d591752e2b</guid><dc:creator>schef</dc:creator><description>&lt;p&gt;I have some more folowup:
This happens when android phone connects and disconnects but nrf52 doesnt get the disconnect event. So it is in some kind of middle state. After we reboot the android phone the disconnect event occures but not after i turn off the bluetooth on android.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice crashes/disappears after connection speed test</title><link>https://devzone.nordicsemi.com/thread/82414?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 11:59:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88bf66c5-e687-4e3e-9327-ecfd0f00b7e7</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Yes, that&amp;#39;s true. When the chip is not in debug mode and an error is caught by APP_ERROR_CHECK, the chip should reset.&lt;/p&gt;
&lt;p&gt;Could you upload your code so that we can test it here? Which version of the SDK and S132 do you use? If you don&amp;#39;t want your code to be public, you can create a new support case on myPage from www.nordicsemi.com, upload the code there, and link to this thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice crashes/disappears after connection speed test</title><link>https://devzone.nordicsemi.com/thread/82413?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 11:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45c1bcb4-076c-4814-a211-102c7e52841b</guid><dc:creator>schef</dc:creator><description>&lt;p&gt;I used an example for a starting point which uses APP_ERROR_CHECK(err_code).
The app isn&amp;#39;t in debug mode any more so i guess that it should restart if anything goes wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice crashes/disappears after connection speed test</title><link>https://devzone.nordicsemi.com/thread/82412?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 11:26:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cca0cead-7379-4186-b4d4-e4e5b24741a8</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;When starting to advertise, do you check the error code returned by sd_ble_gap_adv_start()?&lt;/p&gt;
&lt;p&gt;Before starting to advertise, do you wait for BLE_GAP_EVT_DISCONNECT before calling sd_ble_gap_adv_start()?&lt;/p&gt;
&lt;p&gt;Do you generally check the error codes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice crashes/disappears after connection speed test</title><link>https://devzone.nordicsemi.com/thread/82409?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 11:20:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00246421-2f62-445f-b599-6d058dfe849b</guid><dc:creator>schef</dc:creator><description>&lt;p&gt;samsung galaxy s6 - 6.0.1 - crashed softdevice on nrf52&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice crashes/disappears after connection speed test</title><link>https://devzone.nordicsemi.com/thread/82411?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 10:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cb9af79-208c-43bc-939b-e9f321ff6461</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Okay, I see. Which phones and Android version are problematic? And which phones and Android version work fine?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice crashes/disappears after connection speed test</title><link>https://devzone.nordicsemi.com/thread/82410?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 09:16:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2d4ae34-c0db-4e84-b39f-274c24bd4c77</guid><dc:creator>schef</dc:creator><description>&lt;p&gt;The android makes 100 connections and immediately after it connects it disconnects. I know that characteristics discovery takes some time also.&lt;/p&gt;
&lt;p&gt;On some mobile phones after making this test the device stops to advertise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice crashes/disappears after connection speed test</title><link>https://devzone.nordicsemi.com/thread/82408?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 09:04:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9974b8c3-c4ea-49ce-852a-7a788cc2a34d</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;From what I understand, you are measuring the time it takes to connect when a device is advertising.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1)&lt;/strong&gt; The longer a connection interval is, the longer time it will take for a scanner to pick up the signals. Especially if the scanner is not scanning continuously. It is hard to know if Android is scanning continuously.  To create a continuous scanner, you can for example use &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver/tree/master/examples"&gt;pc-ble-driver&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2)&lt;/strong&gt; How does the production code work? Does it disconnect immediately after a connect? And after 100 connections, the devices stop to advertise?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>