<?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>Connection to Android isn&amp;#39;t stable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1952/connection-to-android-isn-t-stable</link><description>I&amp;#39;m having an issue with maintaining a stable connection with the master control panel on an android device. Using the PCA10000 I am able to get a stable connection with a computer and transmit data, but when I move to an android device it isn&amp;#39;t stable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Mar 2014 09:54:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1952/connection-to-android-isn-t-stable" /><item><title>RE: Connection to Android isn't stable</title><link>https://devzone.nordicsemi.com/thread/8405?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2014 09:54:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0da93def-0380-4e36-b667-1e2531e2c4f0</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Take a look at this question: &lt;a target="_blank" href="https://devzone.nordicsemi.com/index.php/what-is-connection-parameters" rel="nofollow"&gt;https://devzone.nordicsemi.com/index.php/what-is-connection-parameters&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If the Central for some reason rejects the parameters you request, you will get this error back. To fix it, you must therefore try to request other parameters.&lt;/p&gt;
&lt;p&gt;However, I think my first reply answered the original question, so to clear up this question, I&amp;#39;d be happy if you could click the &amp;quot;Accept as answer&amp;quot; button below it. If you have any further problems, I suggest you post them separately, to keep each question here as focused as possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection to Android isn't stable</title><link>https://devzone.nordicsemi.com/thread/8404?ContentTypeID=1</link><pubDate>Fri, 28 Mar 2014 16:48:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e32145fb-507e-4cca-b63b-b2a133fce959</guid><dc:creator>Jeremy Hubbard</dc:creator><description>&lt;p&gt;It looks like the error thrown as seen using the sniffer is Error code: Unacceptable Connection Interval (0x3b).  I am seeing that the error event BLE_CONN_PARAMS_EVT_FAILED being called in the debugger.  I am using the Android Master Control Panel app when I see this error.  I am only sending notifications in my program in the nRF51822, what could be causing that error?&lt;/p&gt;
&lt;p&gt;Thanks,
Jeremy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection to Android isn't stable</title><link>https://devzone.nordicsemi.com/thread/8403?ContentTypeID=1</link><pubDate>Fri, 28 Mar 2014 10:51:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:239aa651-c561-4000-b4fa-3d90a420859d</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Have you tried using the sniffer to see what happens on-air?
&lt;a target="_blank" href="https://www.nordicsemi.com/eng/content/download/39099/660783/file/ble-sniffer_win_0.9.5.zip" rel="nofollow"&gt;https://www.nordicsemi.com/eng/content/download/39099/660783/file/ble-sniffer_win_0.9.5.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also, what is the reason when you get the DISCONNECTED event on the nRF51 side? You should also check that it isn&amp;#39;t a connection parameter update that&amp;#39;s failing, i.e. that you&amp;#39;re asking for parameters that the Android device doesn&amp;#39;t accept. If so, you&amp;#39;ll see on_conn_params_evt() being called with evt_type BLE_CONN_PARAMS_EVT_FAILED. Do you see this when running with a debugger?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection to Android isn't stable</title><link>https://devzone.nordicsemi.com/thread/8402?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2014 16:04:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11952693-56cf-4577-aee2-66059f789320</guid><dc:creator>Jeremy Hubbard</dc:creator><description>&lt;p&gt;I have already updated the TWI driver to be softdevice compatible and I can transmit to a computer just fine.  I&amp;#39;m not seeing hard faults.&lt;/p&gt;
&lt;p&gt;Based on the 0x3401 error thread, I modified the error checking  after the ble_lbs_data_send() command to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = ble_lbs_data_send(&amp;amp;m_lbs, data);
if (err_code != BLE_ERROR_GATTS_SYS_ATTR_MISSING 
        &amp;amp;&amp;amp; err_code != NRF_SUCCESS 
        &amp;amp;&amp;amp; err_code != BLE_ERROR_INVALID_CONN_HANDLE 
        &amp;amp;&amp;amp; err_code != NRF_ERROR_INVALID_STATE 
        &amp;amp;&amp;amp; err_code != BLE_ERROR_NO_TX_BUFFERS)
{
    APP_ERROR_CHECK(err_code);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and now I can transmit data, but after the connection is established with the Android device it disconnects every 16.5 seconds, like clockwork.  Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks,
Jeremy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection to Android isn't stable</title><link>https://devzone.nordicsemi.com/thread/8401?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2014 16:45:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:343dc413-545e-4629-ba00-318170491b7e</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;You can read about the 0x3401 error in &lt;a href="https://devzone.nordicsemi.com/index.php/strange-error-code-13313-0x3401-returned-by-sd_ble_gatts_hvx"&gt;this question&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re working with TWI sensors, could it be that you have not fixed your TWI module to be softdevice compatible? If so, you&amp;#39;ll see HardFaults when if the module tries to access the softdevice directly, but this should be fairly easy to see with a debugger, by letting the chip run freely and then halt when the connection is lost. You may have use in taking a look at &lt;a href="https://devzone.nordicsemi.com/index.php/using-i2c-gpiote-interrupt-with-soft-device-enabled"&gt;this question&lt;/a&gt;, and &lt;a href="https://devzone.nordicsemi.com/index.php/using-i2c-gpiote-interrupt-with-soft-device-enabled"&gt;this GitHub example&lt;/a&gt;, the latter if you&amp;#39;re using a second revision chip (FA or later for QFN).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>