<?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>Service changed leading to disconnection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113002/service-changed-leading-to-disconnection</link><description>We have a device that does not support bonding, however the services changed and so we want to notify devices that may have cached the previous attribute table. To do this, we are sending service changed when service changed indications are enabled the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jul 2024 11:09:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113002/service-changed-leading-to-disconnection" /><item><title>RE: Service changed leading to disconnection</title><link>https://devzone.nordicsemi.com/thread/493876?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 11:09:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53dd7180-3d80-4f87-bf3c-58e54219d9a1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Correct. iOS will then repeat the service discovery on every connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service changed leading to disconnection</title><link>https://devzone.nordicsemi.com/thread/493875?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 11:07:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfc78a9e-ddbf-4ee8-b6e0-0417687fd211</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;Ok so have the service changed characteristic present, but don&amp;rsquo;t send an indication, and iOS will not cache when unbonded?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service changed leading to disconnection</title><link>https://devzone.nordicsemi.com/thread/493868?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 10:54:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0da0ec4a-7229-4226-9516-e04aa53e25f6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It does. So, I&amp;#39;m afraid your only option is to manually clear the cache after changing the firmware in order to allow the iPhone to discover that the service changed characteristic has been added.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service changed leading to disconnection</title><link>https://devzone.nordicsemi.com/thread/493861?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 10:41:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baa19fbc-4a00-41e5-9eee-216acba0e062</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;We didn&amp;rsquo;t have service changed before. Does that mean that iOS can cache it? Yes we have seen it with multiple phones.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service changed leading to disconnection</title><link>https://devzone.nordicsemi.com/thread/493858?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 10:35:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d125d4f0-5e86-448b-95e2-43a58d72b3af</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Strange. I have not experienced this myself, nor do I recall seeing any reports about it. The specification is quite clear on this too (the nRF5 SDK does not support the mentioned &amp;#39;Hash Database&amp;#39; characteristic):&lt;/p&gt;
&lt;p&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/pastedimage1721038598559v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The only case I can think of where this would be expected is if the device was programmed initially with an application that did not include the Service changed characteristic.&lt;/p&gt;
&lt;p&gt;Have you seen this with multiple iphones?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service changed leading to disconnection</title><link>https://devzone.nordicsemi.com/thread/493852?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 10:12:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:219f0232-8046-4c2c-832c-f8cc112b0687</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;Ok it sounds like an iOS bug then. It does seem to cache attributes without bonding, we have to toggle bluetooth off and on to get it to refresh, which is why I was trying to get service changed working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service changed leading to disconnection</title><link>https://devzone.nordicsemi.com/thread/493841?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 09:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4744a82-8c54-4b52-928a-a713f385e3c6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The log indicates that the connection was terminated by the iPhone. I&amp;#39;m not sure exactly why it does this. But as you may know, there is no attribute caching when the Service Changed characteristic is present and there is no trusted relationship between the devices (i.e., no bond), so it should be redundant to send a Service Changed notification on connection as the phone will have just performed the service discovery anyway. Is the attribute table being updated during connections in your case?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>