<?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>question of add my own BLE service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3271/question-of-add-my-own-ble-service</link><description>When I add a new server of my own service I got a problem.
when I set 
 BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&amp;amp;cccd_md.write_perm);
 
 I can send data to iOS normal,but when I connect to Android 4.4.4(Nexus7 II) it will return error 0x8 (Invalid state</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 20 Feb 2016 18:19:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3271/question-of-add-my-own-ble-service" /><item><title>RE: question of add my own BLE service</title><link>https://devzone.nordicsemi.com/thread/11955?ContentTypeID=1</link><pubDate>Sat, 20 Feb 2016 18:19:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca94da5e-b330-4b08-b664-44f726208697</guid><dc:creator>Sensors</dc:creator><description>&lt;p&gt;What does it mean for the CCCD to be writeable? Is this to allow the client to turn on and off notifications?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: question of add my own BLE service</title><link>https://devzone.nordicsemi.com/thread/11954?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2015 15:09:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c433b26-5ee6-4013-977f-131ab3a8571d</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;Have the same issue,
from other thread we&amp;#39;ve got link to BT Core 4.2
volume 3, part G, section 3.3.3.3 (Client Characteristic Configuration)
&amp;quot;Authentication and authorization may be required by the server to write the configuration
descriptor. The Client Characteristic Configuration declaration shall be
readable and writable.&amp;quot;&lt;/p&gt;
&lt;p&gt;It sounds a little bit tricky, because of quote &amp;quot;...may be required by the server to write...&amp;quot;
So if server requires auth from CCCD, but on device configured as  &lt;code&gt;BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;cccd_md.write_perm);&lt;/code&gt;
or vice versa the communication will crash?
In my case the mode &lt;code&gt;BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&amp;amp;cccd_md.write_perm);&lt;/code&gt;
needed to preserve device from enabling notifications by not authorized server. And it works on some android devices but not all. Even more it could change behaviour on same device after reconnection.
Please help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: question of add my own BLE service</title><link>https://devzone.nordicsemi.com/thread/11953?ContentTypeID=1</link><pubDate>Mon, 28 Jul 2014 03:08:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dc724e3-29f2-4c7e-be4e-ddea5c82b1fd</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure why the IAS service is not working, but the CCCD &lt;em&gt;must&lt;/em&gt; be writable and readable per the Core Spec, and you will get an error when trying to add it with different permissions. You want to change the permissions of the attr_md variable, which is linked to the attribute itself and not the CCCD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>