<?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>Updating Characteristic User Description in BDS generated code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26729/updating-characteristic-user-description-in-bds-generated-code</link><description>Hi, I am trying to determine if there is an error in the generated code or if I am not performing the actions correctly. I am trying to Update Characteristic User Description value in Bluetooth Developer Studio generated code. 
 I am working on a nRF52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Nov 2017 20:57:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26729/updating-characteristic-user-description-in-bds-generated-code" /><item><title>RE: Updating Characteristic User Description in BDS generated code</title><link>https://devzone.nordicsemi.com/thread/105103?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2017 20:57:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af50e267-fef3-4449-b0dd-aa156076d065</guid><dc:creator>SRose</dc:creator><description>&lt;p&gt;I actually got this to work by changing the generated handle used in the generated set function.  The original generated &lt;code&gt;ble_YY_XX_characteristic_user_description_set&lt;/code&gt; function calls the code &lt;code&gt;return sd_ble_gatts_value_set(p_YY-&amp;gt;conn_handle, p_YY-&amp;gt;XX_characteristic_user_description_handles.value_handle, &amp;amp;gatts_value);&lt;/code&gt;  but I never found where this handle was initialized by the generated code.  I changed the code to &lt;code&gt;return sd_ble_gatts_value_set(p_YY-&amp;gt;conn_handle, p_YY-&amp;gt;XX_handles.user_desc_handle, &amp;amp;gatts_value);&lt;/code&gt;  because this is the handle that is used in the generated &lt;code&gt;_init()&lt;/code&gt; function when setting up all the descriptors.  I believe this is a bug in the BDS plugin when generating code for this function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Updating Characteristic User Description in BDS generated code</title><link>https://devzone.nordicsemi.com/thread/105104?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2017 20:51:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a90cd583-d82f-4791-8501-316fb6f464c6</guid><dc:creator>SRose</dc:creator><description>&lt;p&gt;Hi Sigurd,  The parameters for the CUD is
&lt;code&gt;request_XX_characteristic_user_description.read_access = SEC_OPEN; request_XX_characteristic_user_description.write_access = SEC_NO_ACCESS;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;However I am NOT trying to write from the Central(Phone).  I&amp;#39;m trying to update the CUD from the Peripheral (ble device).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Updating Characteristic User Description in BDS generated code</title><link>https://devzone.nordicsemi.com/thread/105102?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 16:31:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42a98ac7-8b47-4b97-b168-2e20359bd2ea</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How does your User Description Security requirement looks like? Have you enabled write_access ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>