<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Bluetooth peripheral CTS and ANCS examples behaviour on reconnect with iOS central</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/87545/bluetooth-peripheral-cts-and-ancs-examples-behaviour-on-reconnect-with-ios-central</link><description>Hi, 
 I am testing NRF CTS and ANCS examples using iOS 14.7 (iPhone 6s) and 14.8(iPhone 10) and Zephyr 1.9.1. The peripheral (target) is a custom wearable running on nrf52840 
 Both examples work fine on first run after pairing and bonding. However, they</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Wed, 01 Jun 2022 10:42:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/87545/bluetooth-peripheral-cts-and-ancs-examples-behaviour-on-reconnect-with-ios-central" /><item><title>RE: Bluetooth peripheral CTS and ANCS examples behaviour on reconnect with iOS central</title><link>https://test-devzone.nordicsemi.com/thread/370399?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 10:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47da8ef2-c001-4f09-9bbf-8223a353c607</guid><dc:creator>user6207</dc:creator><description>&lt;p&gt;Alex,&lt;/p&gt;
&lt;p&gt;I do not think CTS and ANCS client (peripheral) examples can do anything special to reconnect automatically. This has to happen from the central/IOS side (since it is the only initiator) in this case.&lt;/p&gt;
&lt;p&gt;The two examples (CTS/ANCS) both are advertising after disconnects which is the only thing they can do and hope the peer sends an initiator request on disconnect.&lt;/p&gt;
[quote user="astomi"]but reconnects&amp;nbsp;manually if I click on &amp;#39;Nordic_CTS&amp;#39; device in iOS Bluetooth settings[/quote]
&lt;p&gt;I am not 100% sure on the auto reconnect feature on IOS, but I think with the paired devices the IOS will automatically try to reconnect when it finds the adv packet from a known paired device.&lt;/p&gt;
&lt;p&gt;For the paired devices, if you still feel that the behavior of the reconnect is sandom, I strongly suspect this behavior being on the IOS side. We just need a BLE trace to see what happens in air traffic to know how different the IOS side is behaving when its behavior is not consistent.&lt;/p&gt;
[quote user="astomi"]Is there an article somewhere on how to setup a sniffer?&amp;nbsp;[/quote]
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_sniffer_ble%2FUG%2Fsniffer_ble%2Fintro.html"&gt;nRF Sniffer documentation&lt;/a&gt; should be helpful, I hope.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth peripheral CTS and ANCS examples behaviour on reconnect with iOS central</title><link>https://test-devzone.nordicsemi.com/thread/369863?ContentTypeID=1</link><pubDate>Sun, 29 May 2022 21:41:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29cf229e-c8d4-495a-acfc-91da722b6f0b</guid><dc:creator>user113304</dc:creator><description>&lt;p&gt;Susheel,&amp;nbsp;&lt;br /&gt;I decided to go back to square 1 and to test CTS and ANCS behaviour in isolation. I am running a vanilla CTS example now and it is fairly consistent - it won&amp;#39;t reconnect automatically from either side, but reconnects&amp;nbsp;manually if I click on &amp;#39;Nordic_CTS&amp;#39; device in iOS Bluetooth settings. Is it a problem with advertisement settings?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth peripheral CTS and ANCS examples behaviour on reconnect with iOS central</title><link>https://test-devzone.nordicsemi.com/thread/369862?ContentTypeID=1</link><pubDate>Sun, 29 May 2022 21:33:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6905cddf-c5be-4700-b1dd-94ad532835c7</guid><dc:creator>user113304</dc:creator><description>&lt;p&gt;Is there an article somewhere on how to setup a sniffer?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth peripheral CTS and ANCS examples behaviour on reconnect with iOS central</title><link>https://test-devzone.nordicsemi.com/thread/369861?ContentTypeID=1</link><pubDate>Sun, 29 May 2022 21:30:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3d537e8-7e1a-45fe-aab8-ed9d63c81fcb</guid><dc:creator>user113304</dc:creator><description>&lt;p&gt;To answer my own question -&amp;nbsp;&lt;span&gt;Characteristic Value Indication/Service Changed characteristic&amp;nbsp;is&amp;nbsp;included in ANCS example, I don&amp;#39;t see any callback activity though but that is another story&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth peripheral CTS and ANCS examples behaviour on reconnect with iOS central</title><link>https://test-devzone.nordicsemi.com/thread/366856?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 08:45:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65413c7b-f0e4-4add-b426-c973f6f0364e</guid><dc:creator>user6207</dc:creator><description>[quote user=""]Both seem to handle BT on/off in CTS case fine but never in ANCS case - discovery always fails.[/quote]
&lt;p&gt;Can you provide a sniffer trace to show us what exactly in discovery fails here. There will be others also in this forum who can help us interpreting this with more info.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth peripheral CTS and ANCS examples behaviour on reconnect with iOS central</title><link>https://test-devzone.nordicsemi.com/thread/366603?ContentTypeID=1</link><pubDate>Fri, 06 May 2022 07:31:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:960d94c9-1337-46de-8af3-ad57c92a8b2e</guid><dc:creator>user113304</dc:creator><description>&lt;p&gt;Thanks Susheel,&lt;br /&gt;I doubt merging has any effect as a standalone CTS example (I just call time update periodically instead of the button press) behaves in the same manner. Yes, adding a 5 second delay seems to improve the likelihood of reconnect but not solving the issue. At first, 14.8 iOS reconnected successfully but stopped working again on further attempts. As I mentioned in OP, tracking CTS availability should be a better option as Apple suggested but I would appreciate some guidance/example here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth peripheral CTS and ANCS examples behaviour on reconnect with iOS central</title><link>https://test-devzone.nordicsemi.com/thread/366202?ContentTypeID=1</link><pubDate>Wed, 04 May 2022 11:37:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2e920ec-edbf-4151-8c41-13bde949f8ea</guid><dc:creator>user6207</dc:creator><description>&lt;p&gt;I have not seen this two merged into one, so the timing on when and how you can use CTS after a connection is difficult for me to answer. Probably your application can try to wait for some time (add some delay) after the connection and before the discovery happens so that after the delay we can assume that CTS is available? Not sure, just thinking out loud here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>