<?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>Phone disconnect nrf51822 immediately</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21495/phone-disconnect-nrf51822-immediately</link><description>Hi guys 
 I want connect nrf51822 (Raytac MDBT40) by my phone(HTC battery one android 4.4.2). 
 I use softdevice 130(ver.2.0.0) and SDK 11 demo code under KEIL ARM 5.
(Nordic Semiconductor\nRF5_SDK_11.0.0_89a8197\examples\ble_peripheral\ble_app_uart</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 May 2017 13:11:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21495/phone-disconnect-nrf51822-immediately" /><item><title>RE: Phone disconnect nrf51822 immediately</title><link>https://devzone.nordicsemi.com/thread/84349?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 13:11:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c99330c9-461e-4395-b4c4-962fd973221b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;ol&gt;
&lt;li&gt;First you connect, then you can optionally pair if you want authenticate the peer and/or encrypt the link&lt;/li&gt;
&lt;li&gt;You set the security requirements on the characteristic values, with BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(), BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM() and so on. I&amp;#39;m guessing you haven&amp;#39;t done this? Then I don&amp;#39;t understand why Android tries to pair at all.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone disconnect nrf51822 immediately</title><link>https://devzone.nordicsemi.com/thread/84348?ContentTypeID=1</link><pubDate>Tue, 02 May 2017 14:14:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0591e917-3d0d-474c-b3e5-dc819d8f329b</guid><dc:creator>pikachu</dc:creator><description>&lt;p&gt;Hi Petter&lt;/p&gt;
&lt;p&gt;I am a little confused.&lt;/p&gt;
&lt;p&gt;1.What is the difference between &amp;quot;connect&amp;quot; with &amp;quot;pair&amp;quot;? One need password, the other one don&amp;#39;t need password?&lt;/p&gt;
&lt;p&gt;2.What is the security requirements in ble_nus.c?&lt;/p&gt;
&lt;p&gt;I look for &amp;quot;the security requirements&amp;quot;,but I don&amp;#39;t know where is it.&lt;/p&gt;
&lt;p&gt;And two ble_nus.c are almost the same in SDK 6 and SDK11.&lt;/p&gt;
&lt;p&gt;Please tell me about it, or detail document information.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone disconnect nrf51822 immediately</title><link>https://devzone.nordicsemi.com/thread/84347?ContentTypeID=1</link><pubDate>Tue, 02 May 2017 09:22:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1775f7ab-62e4-4068-ba72-39a9bbb18a6b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Yes, you can connect, but you can&amp;#39;t pair if your application doesn&amp;#39;t support pairing. Do you even want to pair? Have you changed the security requirements in ble_nus.c? Have you modifed the ble_nus library files?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone disconnect nrf51822 immediately</title><link>https://devzone.nordicsemi.com/thread/84346?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2017 14:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31109c14-6b2a-426b-909b-b4cdc56a8286</guid><dc:creator>pikachu</dc:creator><description>&lt;p&gt;So I can&amp;#39;t connect by phone with new version SDK?&lt;/p&gt;
&lt;p&gt;Or what other ways can I connect nRF51822 by phone with new version SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone disconnect nrf51822 immediately</title><link>https://devzone.nordicsemi.com/thread/84345?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2017 10:10:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d60c421-0fb7-4783-8d1a-1d2edcf1c69d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I tested your code, seems to be working fine when I use nRF Connect.&lt;/p&gt;
&lt;p&gt;But if I try to pair Android will disconnect, which is probably because you don&amp;#39;t support pairing.&lt;/p&gt;
&lt;p&gt;You reply with BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP when you get the BLE_GAP_EVT_SEC_PARAMS_REQUEST event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone disconnect nrf51822 immediately</title><link>https://devzone.nordicsemi.com/thread/84343?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 13:44:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:677cedd3-8723-40ae-bdd0-1c089aa3d5ed</guid><dc:creator>pikachu</dc:creator><description>&lt;p&gt;Hi Petter&lt;/p&gt;
&lt;p&gt;Here is it.
&lt;a href="https://drive.google.com/file/d/0ByhxcveXFCqdQW1ra0I4dXZsaFU/view"&gt;drive.google.com/.../view&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Project path:
\nRF5_SDK_11.0.0_89a8197\examples\ble_peripheral\ble_app_uart&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone disconnect nrf51822 immediately</title><link>https://devzone.nordicsemi.com/thread/84342?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 06:58:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce4f13a9-0e04-48dc-a3a6-520addba2bda</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Ok. A sniffer trace would be very helpful. I can also try to reproduce here, if you share your complete project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone disconnect nrf51822 immediately</title><link>https://devzone.nordicsemi.com/thread/84341?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 02:14:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed3aeb5b-5629-4fb9-b82c-5fbe03a03791</guid><dc:creator>pikachu</dc:creator><description>&lt;p&gt;Hi Petter&lt;/p&gt;
&lt;p&gt;I have clear the flash and try again.&lt;/p&gt;
&lt;p&gt;I get 0x13(BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION) after entering case BLE_GAP_EVT_DISCONNECTED event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone disconnect nrf51822 immediately</title><link>https://devzone.nordicsemi.com/thread/84340?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 11:12:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:350321af-1d31-4d6a-acca-8ac7896bad65</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Resetting the chip will not delete the bond information, you have to clear the flash.&lt;/p&gt;
&lt;p&gt;You can find the reason in p_ble_evt-&amp;gt;evt.gap_evt.params.disconnected.reason when you get the BLE_GAP_EVT_DISCONNECTED event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone disconnect nrf51822 immediately</title><link>https://devzone.nordicsemi.com/thread/84344?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 11:41:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f6912dc-6932-4965-a14b-6eae28c5b52a</guid><dc:creator>pikachu</dc:creator><description>&lt;p&gt;Hi Petter&lt;/p&gt;
&lt;p&gt;I try it after reset chip power and delete phone pairing information.&lt;/p&gt;
&lt;p&gt;Where or what value may I check reason in the code?&lt;/p&gt;
&lt;p&gt;I use &amp;quot;nRF Uart&amp;quot;.&lt;/p&gt;
&lt;p&gt;I will try &amp;quot;nRF Sniffer&amp;quot; as soon as possible.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone disconnect nrf51822 immediately</title><link>https://devzone.nordicsemi.com/thread/84339?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 10:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdb4db8b-73b2-4aa1-8a83-5a2c98354936</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Have deleted bond information on the chip and the phone? What is the disconnect reason that you get with the disconnected event? What app are you using on the phone? nRF Connect? If not, try with that. Could you do a sniffer trace? You can use the nRF Sniffer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>