<?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>Advertising Failure After Multiple Pairing Requests and Cancels</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113160/advertising-failure-after-multiple-pairing-requests-and-cancels</link><description>Hello everyone, 
 I&amp;#39;m using the Bluetooth Peripheral sample UART and have noticed an issue. 
 When I perform a lot of sequential pairing requests followed by cancels from my phone to my device, after around 3 or 4 requests/cancels, it stops advertising</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Jul 2024 20:30:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113160/advertising-failure-after-multiple-pairing-requests-and-cancels" /><item><title>RE: Advertising Failure After Multiple Pairing Requests and Cancels</title><link>https://devzone.nordicsemi.com/thread/494904?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 20:30:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dac743e6-a8b0-4b3a-bed8-2a74aa330ac9</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Please check with the RTT log. It will disconnect immediately&amp;nbsp;&lt;span&gt;when hitting &amp;quot;cancel&amp;quot; from Android and then start to&amp;nbsp;advertise.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising Failure After Multiple Pairing Requests and Cancels</title><link>https://devzone.nordicsemi.com/thread/494662?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 21:09:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f33f11dd-a482-4dc5-ab75-790f1e273066</guid><dc:creator>Ih3b</dc:creator><description>&lt;p&gt;Yes, I know about the timeout, but when hitting &amp;quot;cancel&amp;quot; from Android, normally it doesn&amp;#39;t need the timeout anymore..Or do you mean by doing that spam the device accumulates the timeout ? &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising Failure After Multiple Pairing Requests and Cancels</title><link>https://devzone.nordicsemi.com/thread/494661?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 21:06:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc20f9b9-0cbd-478e-acea-ac38fa2a859f</guid><dc:creator>Ih3b</dc:creator><description>&lt;p&gt;Actually, what exactly happens is this:&lt;/p&gt;
&lt;p&gt;When I open Bluetooth on my Android and search for the device to pair, I find it.&lt;/p&gt;
&lt;p&gt;I click on it and then hit &amp;quot;pair,&amp;quot; then I cancel the ongoing request through the Android device.&lt;/p&gt;
&lt;p&gt;I keep doing this quickly in a row without stopping (like spamming the device with quick pair requests and cancellations).&lt;/p&gt;
&lt;p&gt;After a certain amount of time, I don&amp;#39;t find my device publishing its advertising frames anymore.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising Failure After Multiple Pairing Requests and Cancels</title><link>https://devzone.nordicsemi.com/thread/494647?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 17:17:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47a5e239-edd5-49a5-a4c7-bafaa947c611</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]I&amp;#39;m using the Bluetooth Peripheral sample UART and have noticed an issue.[/quote]
&lt;p&gt;I think it&amp;#39;s&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;Bluetooth: Peripheral UART&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;How can I handle it? Is there any function to get the current status of advertising? Otherwise, is it okay to call this function one more time in the disconnection callback?&lt;/p&gt;
&lt;p&gt;This function is called only once in the main.&lt;/p&gt;[/quote]
&lt;p&gt;I cannot reproduce this. One possible situation is you press &amp;quot;pair&amp;quot; on the phone unaware, and then the device is waiting for your confirmation by the button. During that period, the device will not advertise until the&amp;nbsp;&lt;span&gt;confirmation&amp;nbsp;timeout. Then, it will disconnect and restart to advertise.&amp;nbsp;You can check the RTT log.&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>