<?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 discovery failure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69381/ble-discovery-failure</link><description>Hi Team, 
 We have seen 10 instances in past 2 months where customer mobile phones failed to discover BLE device. This has happened 8 times with Moto G7 power (Android) and twice with iPhone mobile phones. We were able to reproduce this issue locally</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Jan 2021 13:25:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69381/ble-discovery-failure" /><item><title>RE: BLE discovery failure</title><link>https://devzone.nordicsemi.com/thread/289753?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2021 13:25:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a03a3947-bf13-4c4d-a2f1-a00bf0f768df</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Pranesh,&lt;/p&gt;
[quote user="pranesa"]We will capture data again after these changes are deployed to production fleet. In the meantime, we have got the recommendation from our wireless technology team to use burst advertisement to solve this issue[/quote]
&lt;p&gt;Reducing the advertising interval and increasing the timeout time on the phone seems very sensible. Regarding the burst advertising I think no matter what changes you make it is difficult to know if it would improve the situation or not without knowing the scan pattern of the phone when you see this issue.&amp;nbsp;So while I understand that you want to try this approach, I do not immediately understand why it would improve the situation.&lt;/p&gt;
[quote user="pranesa"]We want to send multiple adv. events, say 5 or 10, sent every 20 ms and then repeat it after 1 second. This can&amp;#39;t be implemented by us since we have access to start and stop APIs only, we don&amp;#39;t have control on number of packets sent in a window. Can Nordic implement burst advertisement for us? or is it part of Nordic&amp;#39;s roadmap?[/quote]
&lt;p&gt;Does the nRF have any other connections active at this stage, or is the only radio activity to advertise? If so, then you can count advertising packets by using &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/radio_notif/radio_notification.html"&gt;radio notifications&lt;/a&gt;&amp;nbsp;which is an API that exists in the SoftDevice today.&lt;/p&gt;
&lt;p&gt;Also, I wonder if you really need to know the exact amount of advertising packets? If not, you could just configure advertising with a high duty cycle and keep that for some time, and then reconfigure after the elapsed duration. As you know, a random delay of 0-10 ms is added after a advertising interval, so on average, the time between advertising packets would be the specified advertising interval + 5 ms. So if you advertise for 1 second with 20 ms advertising interval, you would on average get&amp;nbsp;1000 ms / (20 ms - 5 ms) = 66.67 advertising events. Multiplied by 3 for each channel, that would mean 200 advertising packets.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE discovery failure</title><link>https://devzone.nordicsemi.com/thread/289568?ContentTypeID=1</link><pubDate>Sun, 17 Jan 2021 04:56:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5783986f-011f-492c-9bed-ee56c8916cd1</guid><dc:creator>pranesa</dc:creator><description>&lt;p&gt;Hey Einar,&lt;/p&gt;
&lt;p&gt;We have collected more data around this issue, it is now being seen with other device model as well. We plan to do the following:&lt;/p&gt;
&lt;p&gt;1. Move to 152.5ms advertisement interval from 300ms.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Start an SOP to capture more info on other devices in the BLE environment using nRF connect app.&lt;/p&gt;
&lt;p&gt;3. Increase discovery timeout on mobile apps from 6 secs.&lt;/p&gt;
&lt;p&gt;We will capture data again after these changes are deployed to production fleet. In the meantime, we have got the recommendation from our wireless technology team to use burst advertisement to solve this issue. We want to send multiple adv. events, say 5 or 10, sent every 20 ms and then repeat it after 1 second. This can&amp;#39;t be implemented by us since we have access to start and stop APIs only, we don&amp;#39;t have control on number of packets sent in a window. Can Nordic implement burst advertisement for us? or is it part of Nordic&amp;#39;s roadmap?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE discovery failure</title><link>https://devzone.nordicsemi.com/thread/288583?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 10:01:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed8f55ea-e686-4cf6-86a4-21838247f5c1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The crystal is specified at 20 ppm, so that should be fine. You could configure a higher clock accuracy to get more margin, but this is probably not the root cause of what you are seeing.&lt;/p&gt;
&lt;p&gt;Reading the case again I recall you only see this issue on some phones, and only when they also have BLE audio connection active. This would lead to less time to do scanning, so I suspect that is the problem here. Either the phone does not scan at all, or the scan window is short and occurs quite celdom, or it just co-varies in an unfortunate way with the advertising interval on the nRF. If that is the case, the only thing you can do is to reduce the advertising interval and see if that helps. As mentioned you should also pick an interval that is in line with Apple&amp;#39;s recommendations, which also typically work well with Android devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE discovery failure</title><link>https://devzone.nordicsemi.com/thread/288571?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 09:31:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bada1c02-f80b-4595-bab7-9f2293e7c4fd</guid><dc:creator>pranesa</dc:creator><description>&lt;p&gt;ok, do you see any issue with clock accuracy setting (20 ppm)? or is there any other setting that we should look into?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE discovery failure</title><link>https://devzone.nordicsemi.com/thread/288561?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 09:02:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b75ec9d7-9da5-4e2c-81e7-e616d18132cd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. That is also 12.5 pF so it should be good.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE discovery failure</title><link>https://devzone.nordicsemi.com/thread/288559?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 08:58:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1850b8d-ad44-4825-aff3-7efc99145c1c</guid><dc:creator>pranesa</dc:creator><description>&lt;p&gt;Hey Einar,&lt;/p&gt;
&lt;p&gt;We are using STD-MUS-2, confirmed by our manufacturer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE discovery failure</title><link>https://devzone.nordicsemi.com/thread/288547?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 08:18:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c68136a3-b554-4bbe-8db9-f692838ace75</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Pranesh,&lt;/p&gt;
&lt;p&gt;I see your load caps (C27 and C32) are 18 pF. The datasheet of the crystal shows that it exists with both 6, 9 and 12.5 pF load capacitance. I would need the exact part number to know which variant you have. Can you get that for me?&lt;/p&gt;
&lt;p&gt;If you have the part with 12.5 pF (STD-MUA-8), then 18 pF load cap values are good (rule of thumb is&amp;nbsp;C1 = C2 = 2Cl - C_pcb - C_pin, where&amp;nbsp;C_pcb + C_pin is approximately 4 pF).&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE discovery failure</title><link>https://devzone.nordicsemi.com/thread/288524?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 07:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fe50b75-8c94-4227-ac44-df0eca89a2b2</guid><dc:creator>pranesa</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/32.768kHz-Crystal-PCB-layout.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE discovery failure</title><link>https://devzone.nordicsemi.com/thread/288508?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 02:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76a36293-47f6-4968-84b1-6db5f79a359b</guid><dc:creator>pranesa</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;I have attached the external crystal part details and schematics. Please let me know if you need more details.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE discovery failure</title><link>https://devzone.nordicsemi.com/thread/288507?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 02:55:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef08d34a-eddc-45a3-8f39-2e9f92f3b781</guid><dc:creator>pranesa</dc:creator><description>&lt;p&gt;&lt;img alt="The external crystal part number and details" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ExternalCrystal.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="The schematics" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/schematics.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE discovery failure</title><link>https://devzone.nordicsemi.com/thread/288455?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 15:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16ef7362-32b8-4b74-a941-77b6ec5c1991</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="pranesa"]We haven&amp;#39;t done any specific tuning to the clock parameters hence they must be at default values. Can you please let me know the exact configs (clock params and load caps) you want to look at? I will find out schematics and layout in the meantime.[/quote]
&lt;p&gt;I need to know the exact 32.768 crystal part number you use and the value (in pF) of the two load caps. A&amp;nbsp;typical reason for issues like this is a inaccurate LFCLK due to wrongly calculated load capacitors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE discovery failure</title><link>https://devzone.nordicsemi.com/thread/288441?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 15:25:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d542f590-6b8c-4e92-a79f-d40c64f31391</guid><dc:creator>pranesa</dc:creator><description>&lt;p&gt;Sorry for the delay in response. Please find my answers below:&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; Have you logged on the nRF side to see if there is a connect and then a subsequent disconnect, or does the phone never attempt to connect in this state?&lt;/p&gt;
&lt;p&gt;The phone fails to discover the device hence we don&amp;#39;t see any connection or disconnection activity on device.&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;Which LF clock source do you use? internal RC or external crystal?&lt;/p&gt;
&lt;p&gt;We use external crystal. NRF_SDH_CLOCK_LF_ACCURACY is set to 7 which translates to 20ppm.&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; How have you configured the clock parameters? If you use a crystal, then it would be good to see your schematics and layout and know the value of the load caps&lt;/p&gt;
&lt;p&gt;We haven&amp;#39;t done any specific tuning to the clock parameters hence they must be at default values. Can you please let me know the exact configs (clock params and load caps) you want to look at? I will find out schematics and layout in the meantime.&lt;/p&gt;
&lt;p&gt;Thanks again for helping us out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE discovery failure</title><link>https://devzone.nordicsemi.com/thread/286255?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 10:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d70a7a3-5bc3-4e42-bc05-8e0916deae74</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Pranesh,&lt;/p&gt;
&lt;p&gt;If the nRF advertises with an advertising interval of 20 ms and the phone is still not able to connect then there must be another issue. Either the phone has no or virtually no time for scanning, or another possible explanation could be issues with the LF clock. If the LF clock is too inaccurate, it may be difficult to establish and maintain connections.&lt;/p&gt;
&lt;p&gt;I suggest we look into the LF clock part first. If that is not the problem, at least it has been ruled out. Have you logged on the nRF side to see if there is a connect and then a subsequent disconnect, or does the phone never attempt to connect in this state? Which LF clock source do you use? internal RC or external crystal? How have you configured the clock parameters? If you use a crystal, then it would be good to see your schematics and layout and know the value of the load caps.&lt;/p&gt;
&lt;p&gt;Note that I will be of on holiday the rest of the year,&amp;nbsp;so I may not be able to reply again until beginning of January.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE discovery failure</title><link>https://devzone.nordicsemi.com/thread/286211?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 06:28:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27adda55-17ac-40b3-9f3f-482429a80296</guid><dc:creator>pranesa</dc:creator><description>&lt;p&gt;Hey Eniar,&lt;/p&gt;
&lt;p&gt;Thanks for helping us with this issue. We did one experiment locally with advertisement interval set to 20ms instead of 300ms which is set in production. We were able to repro the issue again.&lt;/p&gt;
&lt;p&gt;Many different customer interact with our product on a daily basis. They have different types of mobile phones. Apart from changing advertisement interval and implementing burst advertisement, do you have any other suggestion to resolve this issue? Please let me know if you need any more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE discovery failure</title><link>https://devzone.nordicsemi.com/thread/284520?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 12:31:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1580fdd-22a0-493f-a2ac-71476fb490e9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Pranesh,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It sounds like maybe what is happening here is that when the phone is streaming&amp;nbsp;audio over&amp;nbsp;Bluetooth,&amp;nbsp;there&amp;nbsp;is less time to do&amp;nbsp;scanning. And then most likely, the advertising events of the peripheral does not overlap with the scan window of the phone.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It is possible to do as you suggest, but we usually&amp;nbsp;recommend to follow Apple&amp;#39;s&amp;nbsp;recommendations here, which typically work well also with&amp;nbsp;other devices. Their&amp;nbsp;&lt;/span&gt;recommendation is specified in section 36.5 in&amp;nbsp;&lt;a href="https://developer.apple.com/accessories/Accessory-Design-Guidelines.pdf"&gt;&lt;span&gt;Accessory Design&amp;nbsp;&lt;/span&gt;&lt;span&gt;Guidelines for Apple&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;a href="https://developer.apple.com/accessories/Accessory-Design-Guidelines.pdf"&gt;Devices R13&lt;/a&gt;. Specifically:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/400x0/__key/communityserver-discussions-components-files/4/4162.apple_5F00_adv_5F00_interval_5F00_recomendation.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What apple suggests here is supported by the advertising module, which typically starts of first with fast advertising, and then after a specified amount of time enters slow advertising.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The method you suggest, by using bursts of fast advertising, then waiting and doing bursts&amp;nbsp;again is not explicitly&amp;nbsp;supported by the advertising module. However, there is nothing&amp;nbsp;&lt;/span&gt;preventing you from implementing it by simply configuring fast advertising, and then stoping and starting advertising regularly. Assuming you use the advertising module you configure and start it as normal, then stop it by calling&amp;nbsp;sd_ble_gap_adv_stop(). Then after a designated&amp;nbsp;time start advertising again by calling&amp;nbsp;ble_advertising_start().&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>