<?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>Dear Nordic Semi, please consider allowing CCCD descriptor write using... write?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23557/dear-nordic-semi-please-consider-allowing-cccd-descriptor-write-using-write</link><description>Hello, long story short: 
 
 
 You now must use write request instead of write to write the CCCD descriptor. 
 
 
 Allegedly (according to a nordic employee) both types correspond to respectively write type in android API: 
 WRITE_TYPE_DEFAULT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Jul 2017 05:25:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23557/dear-nordic-semi-please-consider-allowing-cccd-descriptor-write-using-write" /><item><title>RE: Dear Nordic Semi, please consider allowing CCCD descriptor write using... write?</title><link>https://devzone.nordicsemi.com/thread/92528?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 05:25:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bd614bf-41a0-4580-9dd1-0929f87628b5</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;@Aleksander Nowakowski:&lt;/p&gt;
&lt;p&gt;Hello, how&amp;#39;s things going? Have you reached a conclusion yet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dear Nordic Semi, please consider allowing CCCD descriptor write using... write?</title><link>https://devzone.nordicsemi.com/thread/92529?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 08:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6236707-ebae-4734-a96d-f2eccd4a3bbb</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;True. As we were accepting any write type, their tests could have passed. Bjorn will check some things before we claim anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dear Nordic Semi, please consider allowing CCCD descriptor write using... write?</title><link>https://devzone.nordicsemi.com/thread/92536?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 08:26:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d58f7d56-1864-43f3-9d73-03ff70ac49c6</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;@mitch996 I do understand your disillusion but I would claim that &lt;em&gt;&amp;quot;S140 breaking compatibility with Android mainstream&amp;quot;&lt;/em&gt; wasn&amp;#39;t really proven yet;) I have seen Android phones sending Write Request (with Response) before and your Android code + logs don&amp;#39;t show with certainty if decision which GATT Write method type (with or without Response) is made in low level BT stack of Android phones (so probably even outside direct control of phone manufacturer) or in native Android code (so somewhere between Google/AOSP and handset vendors) or up in Android BLE API/app layer (so potentially able to influence by App developers).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dear Nordic Semi, please consider allowing CCCD descriptor write using... write?</title><link>https://devzone.nordicsemi.com/thread/92535?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 08:17:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd6e7928-99f7-4f0f-9709-3bcdae66fb7e</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Write Default is the same, but that&amp;#39;s in Java API. Below they use normal stack constants and Google does it one way, but other manufacturers might have adopted it to their chipsets. As far as i know, old SDs were accepting and write type, no matter what phone sent. I would have to ask our support team to do some investigation and sniffing with the new SD and different phones.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dear Nordic Semi, please consider allowing CCCD descriptor write using... write?</title><link>https://devzone.nordicsemi.com/thread/92534?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 08:09:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93699956-0be1-4c30-a194-27e259da4dc8</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;@Aleksander Nowakowski&lt;/p&gt;
&lt;p&gt;Hello, I&amp;#39;m using a sony xperia phone. I don&amp;#39;t get it, the write default is different in different level of APIs? So you are telling me somehow older versions of android API made the same mistake as old softdevices? And because of that, it worked in the old days? That&amp;#39;s rather a far out notion.&lt;/p&gt;
&lt;p&gt;If you can find a 3rd party API that is easy to use that will be great :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dear Nordic Semi, please consider allowing CCCD descriptor write using... write?</title><link>https://devzone.nordicsemi.com/thread/92533?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 08:05:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10e128ca-23fc-41d7-b344-e5cd30156270</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;@endnode that&amp;#39;s a great point except... I&amp;#39;m fairly sure it&amp;#39;s the same, however even if it&amp;#39;s different I&amp;#39;m positive a 3rd party library/framework came into play which means the official APIs are circumvented and abandoned... and that&amp;#39;s a problem on the S140 SD&amp;#39;s side as it has virtually rendered itself incompatible with the android mainstream.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dear Nordic Semi, please consider allowing CCCD descriptor write using... write?</title><link>https://devzone.nordicsemi.com/thread/92532?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 07:31:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:234af5e8-de8b-4dd4-a27a-fabb8bd2e92c</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;I saw you test on Huawei P10 with 7.0. In the newer versions of Android the writeDescriptor method uses hardcoded write type instead of parents characteristic, which is correct. But maybe they hardcoded it to a wrong type...? I&amp;#39;ll try to search for the source code on AOSP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dear Nordic Semi, please consider allowing CCCD descriptor write using... write?</title><link>https://devzone.nordicsemi.com/thread/92531?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 07:25:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7be395cf-13d0-4465-b4bc-f72eded424a4</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hi, so in my opinion this: &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Toolbox/blob/master/app/src/main/java/no/nordicsemi/android/nrftoolbox/profile/BleManager.java#L733"&gt;github.com/.../BleManager.java&lt;/a&gt; should work. What phone are you testing it on? Write Type Default is the Write Request aka Write With Response. If this doesn&amp;#39;t work... I don&amp;#39;t thing anything can be done on Android.
Just make sure you are writing the correct cccd, set your in its parents characteristic and check the correct sniffer log. Also, as endnode suggested, did you try nRF Connect? I think I&amp;#39;m doing there the same workaround (that would be a zong if I didn&amp;#39;t).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dear Nordic Semi, please consider allowing CCCD descriptor write using... write?</title><link>https://devzone.nordicsemi.com/thread/92530?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 05:59:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e70f234-ced5-47f0-97e6-08398bf7fe55</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Just for the sanity check what Nordic nRF Connect app does when you connect with it to GAP Peripheral, discover services and try manually enable some notifications? Does RF sniffer trace still show the same GATT Write method used and now event generated by S140?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>