<?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>Pair device address and BT_Characteristic Notify enable disable use unwanted flash space in NCS v1.4.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78112/pair-device-address-and-bt_characteristic-notify-enable-disable-use-unwanted-flash-space-in-ncs-v1-4-2</link><description>Hi, 
 I have develop the Code based on HID_KEYBOARD AND NUS code 
 here i also need to ADD NVS and DFU to nrf52840 device 
 1. Pair device address is stored in what manner. I am not able to read and delete the pair data. Is there any document for bond</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Aug 2021 12:20:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78112/pair-device-address-and-bt_characteristic-notify-enable-disable-use-unwanted-flash-space-in-ncs-v1-4-2" /><item><title>RE: Pair device address and BT_Characteristic Notify enable disable use unwanted flash space in NCS v1.4.2</title><link>https://devzone.nordicsemi.com/thread/324840?ContentTypeID=1</link><pubDate>Fri, 13 Aug 2021 12:20:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2468379b-91b4-429f-9782-d199a0db1cbb</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;You can use&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/reference/bluetooth/gap.html?highlight=bt_unpair#c.bt_unpair"&gt;bt_unpair&lt;/a&gt;&amp;nbsp;for that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pair device address and BT_Characteristic Notify enable disable use unwanted flash space in NCS v1.4.2</title><link>https://devzone.nordicsemi.com/thread/324497?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 13:14:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a02a07-170d-49fb-8e68-610f659e6336</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;Susheel,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I will work out on this CCCD .&lt;/p&gt;
&lt;p&gt;How to delete paired data permanently. the pairing data is controlled by softdevice itself isn&amp;#39;t it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pair device address and BT_Characteristic Notify enable disable use unwanted flash space in NCS v1.4.2</title><link>https://devzone.nordicsemi.com/thread/324492?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 13:08:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7842cd90-bb04-4668-8e6e-db043f071632</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;You cannot set it to enabled by default unless the devices are already bonded and the bonded device previously enabled the CCCD. Changing this behavior in gatt might need more changes than a one liner and I am not sure if it will be in compliance with the spec.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pair device address and BT_Characteristic Notify enable disable use unwanted flash space in NCS v1.4.2</title><link>https://devzone.nordicsemi.com/thread/324436?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 10:37:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2dee375-f795-43d0-bfb3-f8fb10bc17c2</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;How to enable the required CCCD enable automatically from the device it is . means by default CCCD will be enable when the power is up or after ble connection established . &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pair device address and BT_Characteristic Notify enable disable use unwanted flash space in NCS v1.4.2</title><link>https://devzone.nordicsemi.com/thread/324434?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 10:35:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e869c4d-2256-416e-af9f-516cf272ec25</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;Sure, I will check this and update you shortly&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pair device address and BT_Characteristic Notify enable disable use unwanted flash space in NCS v1.4.2</title><link>https://devzone.nordicsemi.com/thread/324433?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 10:30:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6c50035-86d5-4fa9-9ab7-e9c6ba0f937f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;This is a custom requirement so you need to change the GATT behavior for it.&lt;/p&gt;
[quote user="Sunil vignesh"]is it possible to write only CCCD enable to flash storage ?[/quote]
&lt;p&gt;&amp;nbsp;You then need to change the gatt.c-&amp;gt;bt_gatt_attr_write_ccc and change the below if condition&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	/* Update cfg if don&amp;#39;t match */
	if (cfg-&amp;gt;value != ccc-&amp;gt;value) {
		gatt_ccc_changed(attr, ccc);

#if defined(CONFIG_BT_SETTINGS_CCC_STORE_ON_WRITE)
		gatt_ccc_conn_enqueue(conn);
#endif
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;to this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	/* Update cfg if don&amp;#39;t match */
	if (cfg-&amp;gt;value != ccc-&amp;gt;value) {
		gatt_ccc_changed(attr, ccc);

#if defined(CONFIG_BT_SETTINGS_CCC_STORE_ON_WRITE)
    if (cfg-&amp;gt;value)
		gatt_ccc_conn_enqueue(conn);
#endif
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Haven&amp;#39;t tested, but i think it should work as you intend it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pair device address and BT_Characteristic Notify enable disable use unwanted flash space in NCS v1.4.2</title><link>https://devzone.nordicsemi.com/thread/324256?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 13:00:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a8d23a9-7582-4bf6-92d3-6e1046a09b95</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;Have you check this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pair device address and BT_Characteristic Notify enable disable use unwanted flash space in NCS v1.4.2</title><link>https://devzone.nordicsemi.com/thread/324067?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 15:18:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52a4aa50-81e6-4b61-85f8-ef777994cae9</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;Yes, I found that using SMP the pairing data is written. &lt;/p&gt;
&lt;p&gt;How to delete completely the pair data.&lt;/p&gt;
[quote userid="6207" url="~/f/nordic-q-a/78112/pair-device-address-and-bt_characteristic-notify-enable-disable-use-unwanted-flash-space-in-ncs-v1-4-2/324012#324012"]I found that some data is writing on the flash . Its like increase the size of the flash . i need to control the unwanted storage . how it is possible[/quote]
&lt;p&gt;I found that CCCD &lt;strong&gt;CONFIG_BT_SETTINGS_CCC_STORE_ON_WRITE&lt;/strong&gt; is enabled because when power cycle the device . its auto connect but not giving key report (ble_keyboard).&lt;/p&gt;
&lt;p&gt;beacuse of enabling &lt;strong&gt;CONFIG_BT_SETTINGS_CCC_STORE_ON_WRITE&lt;/strong&gt; it writes the CCCD enable and disable to flash storage.&lt;/p&gt;
&lt;p&gt;is it possible to write only CCCD enable to flash storage ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pair device address and BT_Characteristic Notify enable disable use unwanted flash space in NCS v1.4.2</title><link>https://devzone.nordicsemi.com/thread/324012?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 12:48:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a356df03-aff0-4acd-b485-c06f487fdda7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sunil,&lt;/p&gt;
&lt;p&gt;Pairing data is written to the flash by controller as the SMP requests it. I do not know the internals of the size but most likely a page is reserved for this. I think it might be possible to increase the number of pages that the controller uses but might not be possible to remove it over all if you want&amp;nbsp;bonding/pairing to work.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I found that some data is writing on the flash . Its like increase the size of the flash . i need to control the unwanted storage . how it is possible[/quote]
&lt;p&gt;&amp;nbsp;It is possible for you to trace the calls back to the caller of the flash write functions if you put breakpoints to the flash API and start your application in debugger. For now, I do not have those internal details readily avaailable..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pair device address and BT_Characteristic Notify enable disable use unwanted flash space in NCS v1.4.2</title><link>https://devzone.nordicsemi.com/thread/323717?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 11:47:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a0fbbb8-a912-4e26-9537-b4876c694b46</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;any update?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pair device address and BT_Characteristic Notify enable disable use unwanted flash space in NCS v1.4.2</title><link>https://devzone.nordicsemi.com/thread/323064?ContentTypeID=1</link><pubDate>Tue, 03 Aug 2021 11:02:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cf28ee9-baea-4119-8686-90bb98769f48</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;1. I want to use ble_hid_keyboard program. where i need to implement DFU and Flash storage to store some data&lt;/p&gt;
&lt;p&gt;As i know from board management file the storage location starts at&amp;nbsp; F8000 and size is 8000 if so. does DFU dual bank is working or not is any address collusion will occur or not i need to understand . and&amp;nbsp; i have tested the NVS code in that data store is based on ID not direct address . and it use extra 8 byte each id while write / read also in delete . and it have restriction that one page complete and then it move to another page .&lt;/p&gt;
&lt;p&gt;My requirement is&lt;/p&gt;
&lt;p&gt;page size - 4096 bytes&lt;/p&gt;
&lt;p&gt;allocate&lt;/p&gt;
&lt;p&gt;1st page for bond management&lt;/p&gt;
&lt;p&gt;2nd page for sensor1 data 1KB&lt;/p&gt;
&lt;p&gt;3rd page for sensor 2 data 2KB&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;if i need i can delete the 2nd page and rewrite it . if i need to delete bond then i rewrite on 1st page&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. why those service enable function are stored in flash . i found these in ble_peripheral_uart and also in BAS service enable and disable function.&lt;/p&gt;
&lt;p&gt;how to stop writing this in flash&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3. Any example codes are there for direct address flash storage&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;if bond management is based on softdevice means how to control it . and function to delete the bond functionality&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pair device address and BT_Characteristic Notify enable disable use unwanted flash space in NCS v1.4.2</title><link>https://devzone.nordicsemi.com/thread/323051?ContentTypeID=1</link><pubDate>Tue, 03 Aug 2021 10:30:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f52235b0-9f58-4f13-92c1-e0c8c0425e33</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Sunil,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;You are using a bit of an older version of NCS, read more on &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrf/gs_assistant.html"&gt;latest v1.6.1&lt;/a&gt;&amp;nbsp;(at the time of this writing)&lt;/p&gt;
[quote user=""]1. Pair device address is stored in what manner. I am not able to read and delete the pair data. Is there any document for bond management[/quote]
&lt;p&gt;&amp;nbsp;I am assuming that the bond management is done inside the Softdevice controller and no details about how it does that seems to be documented. What is your exact need for knowing this detail? What are you trying to achieve?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I found that some data is writing on the flash . Its like increase the size of the flash . i need to control the unwanted storage . how it is possible[/quote]
&lt;p&gt;&amp;nbsp;You can easily understand this by setting the brearkpoints at the flash activity API and starting the program in debug mode. The function call stack will give you the contexts of those flash acitivity.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]3. I have use storage that to be start F8000 and size is 8000 . is it possible to write and read the data in page wise ( entering direct address to write and read data).[/quote]
&lt;p&gt;&amp;nbsp;It should possible to do that using the HAL drivers which are OS agnostic drivers. These &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/master/drivers/include/nrfx_nvmc.h"&gt;HAL NVMC drivers&lt;/a&gt;&amp;nbsp;use direct address to access flash but you should be very careful not to conflict you access with other modules in the RTOS system that think they own that flash page.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>