<?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 Characteristic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97239/service-changed-characteristic</link><description>Hi, 
 I am currently using the nRf52832 for ble development in our project. Currently we are facing issues with the service changed characteristic in between firmware upgrades. While the service changed behaves exactly as mentioned in the bluetooth specification</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Mar 2023 06:55:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97239/service-changed-characteristic" /><item><title>RE: Service changed Characteristic</title><link>https://devzone.nordicsemi.com/thread/413146?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 06:55:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e438ae82-5b09-47bf-9ebc-6d0bac825d35</guid><dc:creator>clock_work97</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;That&amp;#39;s it! It looks pretty obvious now that you mention it! I think you might have solved the problem. I have scheduled for a call with the app team to clarify about the &amp;quot;&lt;strong&gt;polling on read scenario&lt;/strong&gt;&amp;quot;. Will give my inputs after the call but I think this is the main issue. Thank you so much! This was very helpful!! Just give me a&amp;nbsp; day&amp;#39;s time and I shall verify your reply as the answer. Once again thank you very much :D&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service changed Characteristic</title><link>https://devzone.nordicsemi.com/thread/413078?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 15:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f111216-d5d1-43b9-bbb3-bf59b3b31dd0</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Asmaitha,&lt;/p&gt;
&lt;p&gt;My initial thought when you said it works on iOS but not on Android is that it is more likely to be the Android device that is having trouble.&lt;br /&gt;Your confirmation that all the tests are done with one brand of phone further&amp;nbsp;makes it more likely that the phone is doing something wrong.&lt;/p&gt;
&lt;p&gt;As we can see in the log, the opcode in question is regarding a read operation.&lt;/p&gt;
&lt;p&gt;If we check the Bluetooth Core Specification,&amp;nbsp;we can then see that the Service Changed Characteristic is not meant to be read by the Client. It is only meant to indicate to the Client.&lt;/p&gt;
&lt;p&gt;From Bluetooth Core Specification 5.3, Vol 3, Part G, Section 7.1:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;This Characteristic Value shall be configured to be indicated using the Client Characteristic Configuration descriptor by a client. Indications caused by changes to the Service Changed Characteristic Value shall be considered lost if the client has erroneously not enabled indications in the Client Characteristic Configuration descriptor (see [Vol 3] Part F, Section 3.3.3).&lt;/em&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&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/pastedimage1677770265108v1.png" alt=" " /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This makes sense, because only the Server knows when changes in the Server happen. If we leave it to the Client to poll the Server, then it might miss when a change happened,&amp;nbsp;which could result in malfunctions, such as trying to read a characteristic that has been removed.&lt;/p&gt;
&lt;p&gt;This also checks out with my thought above, that the Client (the phones in your case) is doing something wrong.&lt;/p&gt;
&lt;p&gt;Is your Android application actively reading the Service Changed Characteristic?&lt;/p&gt;
&lt;p&gt;If not, could you please share the model of the devices, the software version on the device, and the sniffer trace?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service changed Characteristic</title><link>https://devzone.nordicsemi.com/thread/413023?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 12:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f5a2867-a7f5-42e0-9238-4dc28c9d3b01</guid><dc:creator>clock_work97</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Our product is aiming for the medical&amp;nbsp;market, hece before we do a full fledge release, we will be doing&amp;nbsp;multiple&amp;nbsp;enclosed field trials and for these field trials, we have decided to go ahead with samsung phones Hence the app in question works only with samsung phones.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you suggest what the &amp;quot;&lt;strong&gt;Invalid usage of this characteristic with this opcode&lt;/strong&gt;&amp;quot; warning be a side effect of?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service changed Characteristic</title><link>https://devzone.nordicsemi.com/thread/413014?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 12:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c009de30-672f-4ae4-a736-c1c31435e28e</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Asmaitha,&lt;/p&gt;
&lt;p&gt;Given the nature of Android, have you made this observation with multiple devices? Or only one specific model or models from a specific manufacturer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service changed Characteristic</title><link>https://devzone.nordicsemi.com/thread/412955?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 10:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9f9c58e-7a4d-4f09-b204-7625a83c65b7</guid><dc:creator>clock_work97</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;I will try to get the full log from our internal app team.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Upon receiving the service changed characteristic indication. When the service discovery is done, we do not get the newly exposed services from the server.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service changed Characteristic</title><link>https://devzone.nordicsemi.com/thread/412950?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 10:18:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33e947a5-7582-4d47-846c-6e51f6850d59</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Asmaitha,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you please share the full sniffer log?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What in details is the problem you are seeing on Android? Do you have a debug log from your Android app?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hieu&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>