<?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>A question about CCCD</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3290/a-question-about-cccd</link><description>when I add my own service and add characteristic, a odd phenomenon confuse me. 
 When I set cccd_md.write_perm: 
 BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;cccd_md.write_perm);
 
 My ble device can&amp;#39;t be bond with iphone4s
But when I set it like this: 
 BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Jul 2014 07:30:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3290/a-question-about-cccd" /><item><title>RE: A question about CCCD</title><link>https://devzone.nordicsemi.com/thread/12002?ContentTypeID=1</link><pubDate>Wed, 30 Jul 2014 07:30:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b653c346-1b56-492e-8a72-514899dde096</guid><dc:creator>wlgrd</dc:creator><description>&lt;p&gt;I was pretty close though ;) Thanks user9384&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A question about CCCD</title><link>https://devzone.nordicsemi.com/thread/12001?ContentTypeID=1</link><pubDate>Wed, 30 Jul 2014 07:28:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b97ff39f-f5af-4b03-8c3b-733a7c0bc0ee</guid><dc:creator>Knut Eldhuset</dc:creator><description>&lt;p&gt;SET_OPEN means that the descriptor can be read on an unencrypted link. ENC_NO_MITM means that the descriptor can be read only on an encrypted link, with or without MITM protection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A question about CCCD</title><link>https://devzone.nordicsemi.com/thread/12000?ContentTypeID=1</link><pubDate>Wed, 30 Jul 2014 07:14:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0911a73-b169-4147-a8cb-a5bb214b5056</guid><dc:creator>wlgrd</dc:creator><description>&lt;p&gt;So everything works fine with iOS, connection in Android works but it cannot write to the CCCD? I guess there is something wrong with your Android bonding procedure.&lt;/p&gt;
&lt;p&gt;I &lt;em&gt;think&lt;/em&gt; that &lt;strong&gt;SET_OPEN&lt;/strong&gt; means no protection at all and all data is visible on air for everyone to see. &lt;strong&gt;ENC_NO_MITM&lt;/strong&gt; means that the data exchange is encryptet based on a generated Short Term Key (STK) but no passkey (keyboard, OOB like NFC) is used, so transactions are still vulnerable to Man In The Middle attacks. In other words, if someone is sniffing the packet transactions during connection, they can easily read out the key exchange and decrypt your data.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Setting this open for everyone to edit, in case I say something terribly wrong&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>