<?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>characteristic user description is always shown as writable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47822/characteristic-user-description-is-always-shown-as-writable</link><description>Hi, 
 I am working with a custom board based on nRF52840. I am using SDK 15.0 and softdevice 6.0.0. 
 I have two custom services that have user descriptions on all characteristics. I have ensured that wr_aux is set to 0 in the extended properties. However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 May 2019 22:22:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47822/characteristic-user-description-is-always-shown-as-writable" /><item><title>RE: characteristic user description is always shown as writable</title><link>https://devzone.nordicsemi.com/thread/189991?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 22:22:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4051c36-dfc5-49cf-b82d-f0ab3503acff</guid><dc:creator>paul</dc:creator><description>&lt;p&gt;Thanks Hung,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; essentially set_security_req applies the security setting macros to the two permission variables in the user_description metadata. I am already doing the equivalent:&lt;/p&gt;
&lt;p&gt;BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&amp;amp;desc_md.read_perm);&lt;br /&gt; BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&amp;amp;desc_md.write_perm);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So I guess you are right in saying that nrfConnect probably has a bug.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: characteristic user description is always shown as writable</title><link>https://devzone.nordicsemi.com/thread/189880?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 12:31:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0d28bc7-c14e-44c6-a94a-e3fc187603f8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;To change the permission, you set this value:&amp;nbsp;user_descr_attr_md.read_perm.&amp;nbsp;Have a look inside characteristic_add() in ble_srv_common.c , we set the value of that in:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;set_security_req(p_char_props-&amp;gt;p_user_descr-&amp;gt;read_access, &amp;amp;user_descr_attr_md.read_perm);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: characteristic user description is always shown as writable</title><link>https://devzone.nordicsemi.com/thread/189725?ContentTypeID=1</link><pubDate>Tue, 28 May 2019 22:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c32bd2f4-c0d5-4eec-8555-329705eb9413</guid><dc:creator>paul</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; thanks for this. I am seeing the behavior on the Android version of nrfConnect. I haven&amp;#39;t seen how to get the same functionality on the PC version on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;char_md.char_ext_props.wr_aux is documented as: &amp;quot;Writing the&amp;nbsp;Characteristic&amp;nbsp;User&amp;nbsp;Description&amp;nbsp;descriptor permitted.&amp;quot; hence my setting of it. I also set the metadata for the description - pointed to in the same struct to no access.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How are you supposed to set the permission?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers Paul&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: characteristic user description is always shown as writable</title><link>https://devzone.nordicsemi.com/thread/189608?ContentTypeID=1</link><pubDate>Tue, 28 May 2019 11:34:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abcc6cbe-7aee-40f7-9e2e-899ba96f1642</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Paul,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It could be a bug inside our nRFConnect code. Which nRFConnect were you testing with ? If you were testing with the nRFConnect on PC, could you try the same with nRFConnect on Android/iOS.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please be aware that setting&amp;nbsp;char_md.char_ext_props.wr_aux is only control the properties of the characteristic. What more important is the permission of the characteristic/user description of the characteristic. The permission decides if the attribute can be written or not. The property is only providing information, as a reference.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>