<?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>Create optional conf overlay that is triggered by writing to a service/characteristic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91366/create-optional-conf-overlay-that-is-triggered-by-writing-to-a-service-characteristic</link><description>I want to define config values in an optional overlay that is enabled after writing to a custom service/characteristic using NCS. Based on this https://devzone.nordicsemi.com/nordic/b/archives/posts/nrf-connect-sdk-tutorial---part-2-1478313418#h128sk64757ef1a0yr9w1h6gklfucy966</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Sep 2022 10:56:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91366/create-optional-conf-overlay-that-is-triggered-by-writing-to-a-service-characteristic" /><item><title>RE: Create optional conf overlay that is triggered by writing to a service/characteristic</title><link>https://devzone.nordicsemi.com/thread/384300?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2022 10:56:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5736c957-4022-4410-b328-4b3590711912</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;There are several potential options that you could use.&lt;br /&gt;There is a sample in zephyr\samples\bluetooth called&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/c7b5b3c419252b4fd581796c9ae0e4f8d2b8b991/samples/bluetooth/peripheral_dis/src/main.c"&gt;peripheral_dis&lt;/a&gt;&amp;nbsp;where settings_runtime_set can be used for changing values in DIS. The change should take effect immediately. If you would rather prefer not to use settings subsystem and to have more flexibility you might need to change service implementation.&amp;nbsp;&lt;br /&gt;If your device can be in different modes, then this mode can be stored in separate proprietary characteristic. Additional metadata could be added to the characteristic by adding user descriptor to the characteristic. It is also possible to add &amp;quot;custom PnP ID&amp;quot; characteristic to each of existing services using proprietary 128-bit UUID instead of standard16-bit UUID for PnP ID characteristic.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create optional conf overlay that is triggered by writing to a service/characteristic</title><link>https://devzone.nordicsemi.com/thread/384202?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 17:00:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86386367-1ab2-4683-acfb-891b98ead9c5</guid><dc:creator>jclyde</dc:creator><description>&lt;p&gt;In the NRF Connect HID samples prj.conf file there is this snippet&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;CONFIG_BT_DIS_PNP=y
CONFIG_BT_DIS_PNP_VID_SRC=2
CONFIG_BT_DIS_PNP_VID=0x1915
CONFIG_BT_DIS_PNP_PID=0xEEEE
CONFIG_BT_DIS_PNP_VER=0x0100&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As I mentioned my device does not support USB so I do not have a value to put here but there is a use case where a PNP value is required so I want to be able to toggle CONFIG_BT_DIS_PNP between y/n so I am not always advertising a PNP value when I do not need to be.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If that is not possible the my other potential solution was possibly creating 2 separate devices in zephyrs device tree each having their own Device Information Service and I can toggle between which device is actively advertising. But I do not know the feasibility of this solution either.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create optional conf overlay that is triggered by writing to a service/characteristic</title><link>https://devzone.nordicsemi.com/thread/384126?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 11:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a48ca48e-9bde-43b0-b348-0db46ff408eb</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="jclyde"] I&amp;#39;ve only been able to find examples of values assigned in the prj.conf but I would like to be able to change the value of some of the config_bt_dis values&amp;nbsp;or to treat the device as two completely different devices based on which service is in use.[/quote]
&lt;p&gt;Could you provide link to examples? &lt;br /&gt;How would you like to change the values in config_bt_dis?&lt;br /&gt;Could you please elaborate on &amp;quot;... to treat the device as two completely different devices based on which service is in use&amp;quot;?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create optional conf overlay that is triggered by writing to a service/characteristic</title><link>https://devzone.nordicsemi.com/thread/383741?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2022 16:37:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3fc2645-8cdd-42da-9d52-5cfb3662a9dd</guid><dc:creator>jclyde</dc:creator><description>&lt;p&gt;There is one specific instance when my device needs to have a PNP ID, even though I&amp;#39;m not actually using usb, so I wanted to have a value to submit only when this instance occurs&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create optional conf overlay that is triggered by writing to a service/characteristic</title><link>https://devzone.nordicsemi.com/thread/383618?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2022 08:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3091094-a013-4a96-afcf-eea92f35efd2</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you provide an example of what you are trying to achieve?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create optional conf overlay that is triggered by writing to a service/characteristic</title><link>https://devzone.nordicsemi.com/thread/383538?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 23:38:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99fd8a9e-4bcb-4cba-8e24-7787e996a586</guid><dc:creator>jclyde</dc:creator><description>&lt;p&gt;Thank you, Do you know if it would be possible to assign GATT device information then in a custom service? I&amp;#39;ve only been able to find examples of values assigned in the prj.conf but I would like to be able to change the value of some of the config_bt_dis values&amp;nbsp;or to treat the device as two completely different devices based on which service is in use.&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create optional conf overlay that is triggered by writing to a service/characteristic</title><link>https://devzone.nordicsemi.com/thread/383519?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 15:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8af30acc-3c9a-4121-8674-dba68b6dc5e0</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Configuration overlay files are specified and used in the build process and cannot be used in the way that you would want after build process has finished.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>