<?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 does not connect to a specific phone</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91643/ble-does-not-connect-to-a-specific-phone</link><description>Hello everyone 
 In the company I work for, we make a special kind of dongles which are able to connect to smartphones through BLE and transfer data. 
 I have 4 of these dongles and only one of them does not connect to my smartphone which is a Samsung</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Oct 2022 15:58:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91643/ble-does-not-connect-to-a-specific-phone" /><item><title>RE: BLE does not connect to a specific phone</title><link>https://devzone.nordicsemi.com/thread/391272?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 15:58:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a20ed9b1-e6d6-4847-98ed-17105dae9d8a</guid><dc:creator>Vahidreza</dc:creator><description>&lt;p&gt;Thank you very much dear Hung.&lt;/p&gt;
&lt;p&gt;I added that delete_bonds() function in the dongle startup function and the issue is solved now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE does not connect to a specific phone</title><link>https://devzone.nordicsemi.com/thread/391104?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 07:59:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcef3ec3-09a0-44c0-b20a-cac9953b8eeb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Vahidreza,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From what I can see what happened was that the central tried to encrypt the link because it has been bonded with the phone before but the phone has removed the bond information. The central reject the connection after the phone reject the encryption request.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666079696134v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The problem with the dongle is that it&amp;#39;s not possible to completely erase its flash unless you connect a debugger to it. The dongle is not designed as a development board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to erase the bond information , what you need to do is to make a feature on your firmware to erase bond information. It&amp;#39;s similar to this function in ble_app_hrs:&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666079907731v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;On the sniffer trace where there was no problem, the central didn&amp;#39;t try to re-encrypt the link because they has not bonded before.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE does not connect to a specific phone</title><link>https://devzone.nordicsemi.com/thread/391015?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 14:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae7bf768-ef15-482f-95d9-9fc98e44d676</guid><dc:creator>Vahidreza</dc:creator><description>&lt;p&gt;Hi Hung&lt;/p&gt;
&lt;p&gt;Sorry for the mistake I made. I sent you another sniffing result. I also included a result in which the connection is not terminated just in case it might be helpful.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://drive.google.com/file/d/11LDnYtlfPHLW1wqqSKY-aDiA4hRsiyKc/view?usp=sharing"&gt;drive.google.com/.../view&lt;/a&gt;&lt;/p&gt;
[quote userid="2121" url="~/f/nordic-q-a/91643/ble-does-not-connect-to-a-specific-phone/390912"] I assume you are using the dongle as advertiser/peripheral and the phone as central ?&amp;nbsp;[/quote]
&lt;p&gt;No. The dongle is central and the phone is&amp;nbsp;peripheral/advertiser.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE does not connect to a specific phone</title><link>https://devzone.nordicsemi.com/thread/390912?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 08:01:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d62a3b9b-6955-4f5c-af50-355b29ebc913</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Vahidreza,&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t seems that you have selected the dongle to follow the connection.&amp;nbsp;&lt;br /&gt;You should select the advertiser in the drop down menu like this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:359px;max-width:631px;" height="359" src="https://devzone.nordicsemi.com/resized-image/__size/1262x718/__key/communityserver-discussions-components-files/4/pastedimage1665993580469v1.png" width="631" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After that the sniffer will follow only one single advertiser , only after that it can follow the connection. I assume you are using the dongle as advertiser/peripheral and the phone as central ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE does not connect to a specific phone</title><link>https://devzone.nordicsemi.com/thread/390866?ContentTypeID=1</link><pubDate>Sat, 15 Oct 2022 14:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec10556a-e4cc-424d-9ffe-ce16b66dd589</guid><dc:creator>Vahidreza</dc:creator><description>&lt;p&gt;Hello dear Hung&lt;/p&gt;
&lt;p&gt;Sorry for the late answer. There is the sniffing result:&amp;nbsp;&lt;a href="https://drive.google.com/file/d/1CrbuOfb7twBdngnim3MckESPStJILOVX/view?usp=sharing"&gt;drive.google.com/.../view&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This issue also was occurred on another dongle with an iPhone but it was only once. One of my fiends is also facing this issue with an Android Smart Phone and another dongle sometimes. But I have this issue all the time with this dongle and my Phone as I described in the ticket description.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE does not connect to a specific phone</title><link>https://devzone.nordicsemi.com/thread/384720?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 08:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4d85bf5-482b-4b8b-a297-2b8889de37e1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Vahidreza,&lt;/p&gt;
&lt;p&gt;We would need to have a look at the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;sniffer trace&lt;/a&gt; to see what went wrong, specifically on which side terminate the connection.&amp;nbsp;&lt;br /&gt;Please use one of the dongle /DevKit and sniff the connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>