<?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>BLE Disconnects immediately after connection - disconnect reason 0x2A</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27086/ble-disconnects-immediately-after-connection---disconnect-reason-0x2a</link><description>I am using nRF 52 DK with Softdevice s132 v4.0.2 and app ble_app_uart from sdk 13.0.0 
 When i try to connect using nRF Toobox running from my Nexus 6p Android phone Segger traces from the DK shows device connected event followed by immediate &amp;quot;device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Nov 2017 14:57:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27086/ble-disconnects-immediately-after-connection---disconnect-reason-0x2a" /><item><title>RE: BLE Disconnects immediately after connection - disconnect reason 0x2A</title><link>https://devzone.nordicsemi.com/thread/106526?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 14:57:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99a1e300-9500-4431-9ef8-2754fc162dd3</guid><dc:creator>aircheese</dc:creator><description>&lt;p&gt;I just fix the problem by adding &lt;code&gt;case BLE_GAP_EVT_PHY_UPDATE_REQUEST:&lt;/code&gt; to my  &lt;code&gt;void ble_evt_handler&lt;/code&gt; The reason is the update of conn parameter didnt got a handle. My code was copied from thingy, but i found the solution when i finally decided to write my own codes.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;        case BLE_GAP_EVT_PHY_UPDATE_REQUEST:
    {
        rt_kprintf(&amp;quot;PHY update request.&amp;quot;);
        ble_gap_phys_t const phys =
        {
            .rx_phys = BLE_GAP_PHY_AUTO,
            .tx_phys = BLE_GAP_PHY_AUTO,
        };
        err_code = sd_ble_gap_phy_update(p_ble_evt-&amp;gt;evt.gap_evt.conn_handle, &amp;amp;phys);
        APP_ERROR_CHECK(err_code);
    } break;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Disconnects immediately after connection - disconnect reason 0x2A</title><link>https://devzone.nordicsemi.com/thread/106525?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 11:13:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dbeae61-7abf-48f9-accd-40faa3b8b084</guid><dc:creator>aircheese</dc:creator><description>&lt;p&gt;Hi,
Same here while i am using SD132 V5 on NRF52 + Xiaomi 6. disconnected at 40s every time.
Did you manage to find a solution?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Disconnects immediately after connection - disconnect reason 0x2A</title><link>https://devzone.nordicsemi.com/thread/106530?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 08:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:130498f4-fffc-4769-9019-6f31215b626d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Yes, it will probably decrease the maximum throughput. But the LL packet length is more important than the ATT MTU.&lt;/p&gt;
&lt;p&gt;See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v4.0.2/group___b_l_e___g_a_t_t_s___m_t_u___e_x_c_h_a_n_g_e.html?cp=2_3_0_1_1_2_4_3_1"&gt;this&lt;/a&gt; and &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v4.0.2/group___b_l_e___g_a_p___d_a_t_a___l_e_n_g_t_h___u_p_d_a_t_e___p_r_o_c_e_d_u_r_e___m_s_c.html?cp=2_3_0_1_1_2_1_3_6"&gt;this&lt;/a&gt; MSCs for more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Disconnects immediately after connection - disconnect reason 0x2A</title><link>https://devzone.nordicsemi.com/thread/106529?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2017 07:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3892439f-f505-4afd-9983-7df5bd3353a0</guid><dc:creator>frank zhang</dc:creator><description>&lt;p&gt;Hi Petter,  this issue is caused by NRF_BLE_GATT_MAX_MTU_SIZE = 158.
Here  I changed NRF_BLE_GATT_MAX_MTU_SIZE to 23, the connection will be OK.
I want to know does this change impact nrf_uart&amp;#39;s transmission speed? Or can we add some code to negotiate ble_cfg.conn_cfg.params.gatt_conn_cfg.att_mtu&amp;#39;s value when setting up connection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Disconnects immediately after connection - disconnect reason 0x2A</title><link>https://devzone.nordicsemi.com/thread/106528?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 08:05:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1efaacf-1a9a-416b-9b71-e24205d4d176</guid><dc:creator>frank zhang</dc:creator><description>&lt;p&gt;No, I have no Nexus 6P. And I find that even my board send ack to nrf_uart_v20 in Huawei/xiaomi cellphone, sometimes it sill will be disconnected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Disconnects immediately after connection - disconnect reason 0x2A</title><link>https://devzone.nordicsemi.com/thread/106524?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 07:50:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa543278-e17c-4e93-a32d-c706238a52c1</guid><dc:creator>frank zhang</dc:creator><description>&lt;p&gt;I have tried with Nexus 7/Android 6.0, it works fine.
But if I use Huawei/Xiaomi cellphone connect with nrf_uart_v20, it will be disconnected in 40-41 seconds(very accurate)。 And if I send a command from nrf_uart to my board and board reply an ack, the connection  will be OK. If no reply, the connection will be disconnected.&lt;/p&gt;
&lt;p&gt;These cellphone work fine with old SDK5-6-7 and NRF51822.&lt;/p&gt;
&lt;p&gt;Here I just give you some information, I believe many other developers has met same problem.&lt;/p&gt;
&lt;p&gt;please help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Disconnects immediately after connection - disconnect reason 0x2A</title><link>https://devzone.nordicsemi.com/thread/106527?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 14:58:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2432be70-d5ba-4115-90f2-5dd9848356d0</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;@frank zhang, are you also testing with Nexus 6P? I tested with a Nexus 5X with Android 7.1.2, it seems to be working fine. I&amp;#39;ll try to get a hold a 6P.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Disconnects immediately after connection - disconnect reason 0x2A</title><link>https://devzone.nordicsemi.com/thread/106523?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 09:56:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ad45aad-8ab9-46ff-9056-41492ef6ac4f</guid><dc:creator>frank zhang</dc:creator><description>&lt;p&gt;I met the same issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Disconnects immediately after connection - disconnect reason 0x2A</title><link>https://devzone.nordicsemi.com/thread/106522?ContentTypeID=1</link><pubDate>Sun, 30 Apr 2017 16:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ce47df1-81fa-4fdb-96d4-c61f13561ec7</guid><dc:creator>Abi K</dc:creator><description>&lt;p&gt;Yes. I used an unmodified example from the sdk.
Nexus 6p Android version - 7.1.2
Yes. Same issue happens using nRF Connect as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Disconnects immediately after connection - disconnect reason 0x2A</title><link>https://devzone.nordicsemi.com/thread/106520?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2017 10:20:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ef5f524-d14b-4bd5-a87f-521743cec731</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Thank you. I&amp;#39;m not entirely sure what is happening. Will try to reproduce. You are using the unmodifed example from the SDK right? What Android version are you running on the Nexus 6P? Does the same thing happen if you use nRF Connect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Disconnects immediately after connection - disconnect reason 0x2A</title><link>https://devzone.nordicsemi.com/thread/106519?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 17:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48df0e4f-fb5f-4306-8bc2-0e689f460ed5</guid><dc:creator>Abi K</dc:creator><description>&lt;p&gt;I have not been able to get wireshark to work for me. I have to uninstall and reinstall Wireshark. But here are the capture logs - &lt;a href="https://drive.google.com/open?id=0BzKS-Gor5t5obDJjc0YzRkktcjg"&gt;link text&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,
Abi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Disconnects immediately after connection - disconnect reason 0x2A</title><link>https://devzone.nordicsemi.com/thread/106518?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 07:24:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:659e8ba7-d962-45e3-800a-c22f09b99bdd</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You need a separate board to run the sniffer, the following are supported:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nRF51822 Evaluation Kit (PCA10001) and a mini USB cable&lt;/li&gt;
&lt;li&gt;nRF51422 Evaluation Kit (PCA10003) v3.0.0 or later and a mini USB cable&lt;/li&gt;
&lt;li&gt;nRF51822 Development Kit dongle (PCA10000)&lt;/li&gt;
&lt;li&gt;nRF51-DK (PCA10028) v1.0.0 or later and a micro USB cable&lt;/li&gt;
&lt;li&gt;nRF51 Dongle (PCA10031)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;See &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer"&gt;this&lt;/a&gt; for more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Disconnects immediately after connection - disconnect reason 0x2A</title><link>https://devzone.nordicsemi.com/thread/106517?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 01:05:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:719a521b-6da4-4f7d-ac45-7238132d14a8</guid><dc:creator>Abi K</dc:creator><description>&lt;p&gt;I am running the ble_app_uart app on the DK. Can i run the sniffer on top of that? From the docs it looks like the sniffer is an independent app on the DK. Please elaborate&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Disconnects immediately after connection - disconnect reason 0x2A</title><link>https://devzone.nordicsemi.com/thread/106521?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2017 11:56:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d715ad92-8e4b-4b05-a45f-fa440a6617a3</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Can you do a sniffer trace of the connection? You can use nRF Sniffer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>