<?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>SCCD not visible in nrfToolbox</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15619/sccd-not-visible-in-nrftoolbox</link><description>I am trying to implement SCCD on S130 v2 sdk11 but this is not in the scope of the tutorial.
I have populated the structure just the same as for CCCD, but I can&amp;#39;t have the descriptor shown in nRF toolbox or in my own android app when using getDescriptors</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Aug 2016 14:04:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15619/sccd-not-visible-in-nrftoolbox" /><item><title>RE: SCCD not visible in nrfToolbox</title><link>https://devzone.nordicsemi.com/thread/59607?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2016 14:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:848c79af-91c6-46d2-8d6b-8099ce3e89ac</guid><dc:creator>jfDEVmoto</dc:creator><description>&lt;p&gt;Thanks for checking, this is definitely one of those good days where we both learned something and improved our knowledge :-)
You have been of great help !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCCD not visible in nrfToolbox</title><link>https://devzone.nordicsemi.com/thread/59608?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2016 13:39:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b663810d-a763-4123-a8b9-c5db7d53de5f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi jfDev,&lt;/p&gt;
&lt;p&gt;I was checking again with our developer, it seems that I was wrong.&lt;/p&gt;
&lt;p&gt;You can create your proprietary descriptor as you already have done. The only limitation of a descriptor compare to a characteristic is that you can&amp;#39;t do notification or indication from a descriptor. Other than that you can do pretty much the same (read/write).&lt;/p&gt;
&lt;p&gt;As you may already know, GATT layer is on top of the ATT layer, so on the ATT layer, service, characteristic and descriptor all are simply attributes.&lt;/p&gt;
&lt;p&gt;I was confused that if the spec limit the descriptor to only the ones defined in the spec or user can define their own. Sorry for the confusion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCCD not visible in nrfToolbox</title><link>https://devzone.nordicsemi.com/thread/59606?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2016 12:50:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b93de43a-0d64-4b11-955f-c8631c08b10c</guid><dc:creator>jfDEVmoto</dc:creator><description>&lt;p&gt;Good to know, however, it seems to work, I am able to create a descriptor with a custom uuid....maybe it is not allowed and will not operate properly, as I have not played with it yet...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCCD not visible in nrfToolbox</title><link>https://devzone.nordicsemi.com/thread/59605?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2016 11:01:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b99cb3b3-9bd3-42cb-a489-12c701579f08</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@JfDev: sd_ble_gatts_descriptor_add can be used to add descriptor to a charactersitic. But it&amp;#39;s not possible to create proprietary descriptor, only the descriptor&amp;#39;s UUIDs defined in the spec are allowed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCCD not visible in nrfToolbox</title><link>https://devzone.nordicsemi.com/thread/59604?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2016 13:11:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc4b8399-16fc-4018-9675-1b43616edf3c</guid><dc:creator>jfDEVmoto</dc:creator><description>&lt;p&gt;Your answer is surprising as I supposed the function  sd_ble_gatts_descriptor_add actually allows to create descriptor attributes for one characteristic.
I have not tried it yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCCD not visible in nrfToolbox</title><link>https://devzone.nordicsemi.com/thread/59603?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2016 13:06:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa0e7e82-01dc-4c77-86e9-d870c0382b5c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t think there is an option to add custom proprietary descriptor with BLE. You would need to describe a new characteristic for your use. You can, for example add the Characteristic User Description, but the use of it is to define in text (UTF-8) information about the characteristic. Not for other purpose.&lt;/p&gt;
&lt;p&gt;sd_ble_gatts_sys_attr_get() is only for the CCCD not all the descriptor. You should use sd_ble_gatts_value_get() to read the descriptor value, like any attribute /characteristic value.&lt;/p&gt;
&lt;p&gt;I would suggest to add a characteristic to the same service to handle the hardware. Or you can add one extra byte in the current characteristic to handle that, it&amp;#39;s up to your design.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCCD not visible in nrfToolbox</title><link>https://devzone.nordicsemi.com/thread/59602?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2016 11:08:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b404a02b-d161-4a02-b3ec-a723d3deb610</guid><dc:creator>jfDEVmoto</dc:creator><description>&lt;p&gt;Thanks for your answer.
I agree with your advise, however, is it possible to add a custom descriptor instead of using a custom characteristic ?
Then do you confirm the descriptor value can be read with sd_ble_gatts_sys_attr_get ?&lt;/p&gt;
&lt;p&gt;I have currently different services, one of them is sensor service with one characteristic per sensor, than I wish to have one descriptor for each sensor char in order to activate the hardware sensor.
I think this is easier for modularity than having a characteristic to activate the hardware sensor. However, having one characteristic to handle all sensors hardware status may be of lower memory overhead but I think it wil be hard to maintain when different versions of the product may have different set of sensor features.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCCD not visible in nrfToolbox</title><link>https://devzone.nordicsemi.com/thread/59601?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2016 10:33:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33324ed5-38af-4784-9ac8-e4664646d502</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi jfDEVmoto,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think the SCCD would fit with what you planed to do with it. The only defined function that the SCCD would do is defined in the spec is &amp;quot;Broadcast&amp;quot; which means the client enable the value of the characteristic to be added to advertising packet if possible. I guess you already figured it out.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not a good idea to use the RFU bit for your purpose.&lt;/p&gt;
&lt;p&gt;If you want to control a hardware on the server, you can simply create a new proprietary characteristic add to the server att table and use it for your purpose.&lt;/p&gt;
&lt;p&gt;If you still want to use the SCCD, you would need to treat it as a normal descriptor, and use getDescriptors and BluetoothGattDescriptor (on Android) to read/write to it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCCD not visible in nrfToolbox</title><link>https://devzone.nordicsemi.com/thread/59600?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2016 10:59:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16473bb1-89bd-405d-95c5-23eff2562408</guid><dc:creator>jfDEVmoto</dc:creator><description>&lt;p&gt;OK, I got it work as I realized it was linked to the broadcast property of the char metadata.&lt;/p&gt;
&lt;p&gt;char_md.char_props.broadcast        = 1;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know about this broacast thing and if this is suitable to my project...&lt;/p&gt;
&lt;p&gt;Then playing with SCCD I wish to use RFU bits for custom purpose (I understand using a custom descriptor is better approach and I will evaluate this later).&lt;/p&gt;
&lt;p&gt;how can I read descriptor value from application ? do I hve to use sd_ble_gatts_sys_attr_get ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>