<?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>Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66982/change-of-adv-data-in-sdk-17</link><description>Hello 
 
 We have an application that ADV every second and is based on SDK 14. 
 We are currently attempting to move to SDK 17. What I have noticed is that if I change and ADV data during advertisement by the help of new API function ble_advertising_advdata_update</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Oct 2020 13:10:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66982/change-of-adv-data-in-sdk-17" /><item><title>RE: Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/thread/274906?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 13:10:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5be0521a-2fe1-4c0e-9792-1a31f5fce14e</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="KTM"]&lt;p&gt;I got to the root cause of the problem.&lt;/p&gt;
&lt;p&gt;I hit HardFault handler in the function&amp;nbsp;sd_ble_gap_adv_set_configure&lt;/p&gt;
&lt;p&gt;If I call the function from our main loop - I do not hit any breakpoint and everything works smoothly.&lt;/p&gt;[/quote]
&lt;p&gt;Great observation, thank you for clarifying!&amp;nbsp;&lt;/p&gt;
[quote user="KTM"]I hit an error. Is there any restriction or when the&amp;nbsp;&lt;span&gt;sd_ble_gap_adv_set_configure is called or context of the caller?&lt;/span&gt;[/quote]
&lt;p&gt;Nothing beyond what is written in&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v6.1.1%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=ga9969047f4e7485c3f856c841978cc31a"&gt;the sd_ble_gap_adv_set_configure documentation&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user="KTM"]One more question: by logger you mean rtt viewer&amp;nbsp;right?[/quote]
&lt;p&gt;That depends - have you configured the logger module to use the RTT backend?&lt;br /&gt;In that case, yes, I do mean RTT viewer or the&amp;nbsp;&lt;em&gt;Debug Terminal&amp;nbsp;&lt;/em&gt;in SES ( please not that you need to define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED to 0 for&amp;nbsp;&lt;em&gt;Debug Terminal&lt;/em&gt; to work ).&lt;br /&gt;Are you seeing any output on your RTT Viewer at all, when your program is running?&lt;br /&gt;While you may continue debugging as you currently are, I would&amp;nbsp;&lt;em&gt;highly&amp;nbsp;&lt;/em&gt;recommend making use of the logger module, since this will drastically ease debugging.&lt;br /&gt;If you are not seeing any logger outputs, then we should solve that problem before continuing the advdata_update issue - since having a logger working will make all future debugging easier.&lt;/p&gt;
[quote user="KTM"]And one more observation is that when I disabled usage of man specific data at all and just call for the update of ADV data with the same parameters that I initialised at the beginning I still crash - which may be points to the direction of contexts...[/quote]
&lt;p&gt;Yes, I too would say this points in the direction of the context.&lt;br /&gt;What context is the advdata update function called from in your regular program? Could you change the priority of the interrupt that triggers the update, to see if this affects your issue?&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/thread/274769?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 06:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9890c222-a6f1-415f-b1e7-f032c1a136fe</guid><dc:creator>KTM</dc:creator><description>&lt;p&gt;And one more observation is that when I disabled usage of man specific data at all and just call for the update of ADV data with the same parameters that I initialised at the beginning I still crash - which may be points to the direction of contexts...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/thread/274765?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 06:01:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36e3c5d3-5f5a-4111-8332-2b057d00ceaf</guid><dc:creator>KTM</dc:creator><description>&lt;p&gt;One more question: by logger you mean rtt viewer&amp;nbsp;right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/thread/274764?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 05:58:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45f1acdf-5abe-44a6-b6eb-8932b8e4abd5</guid><dc:creator>KTM</dc:creator><description>&lt;p&gt;I just wanted to state it more clear - if the function&amp;nbsp;BLE_update_advertise is being called at the context of main loop - no problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/thread/274763?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 05:54:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e65b07f-5b8b-48d1-86f7-8feebec00d28</guid><dc:creator>KTM</dc:creator><description>&lt;p&gt;Ok&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I got to the root cause of the problem.&lt;/p&gt;
&lt;p&gt;I hit HardFault handler in the function&amp;nbsp;sd_ble_gap_adv_set_configure&lt;/p&gt;
&lt;p&gt;If I call the function from our main loop - I do not hit any breakpoint and everything works smoothly.&lt;/p&gt;
&lt;p&gt;However when I use our regular flow:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2020_2D00_10_2D00_14-at-8.53.23.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I hit an error. Is there any restriction or when the&amp;nbsp;&lt;span&gt;sd_ble_gap_adv_set_configure is called or context of the caller?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/thread/274535?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 09:08:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cdbb721-4b2e-4728-b0db-aa105400c478</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="KTM"]No[/quote]
&lt;p&gt;Thank you for clarifying this. Are you seeing anything being written to your logger at all when your program is running?&lt;/p&gt;
[quote user="KTM"]But I managed to take a GATTS example app (ble peripheral) and cal the function and did not observe any kind of delay I do in our app. So probably this is a problem on my side[/quote]
&lt;p&gt;I too would think this - I have successfully tested this function myself, and I know of other cases in which it has been used successfully - so the question becomes what is causing this, and how to remedy it.&amp;nbsp;I suspect that you might be inputting invalid parameters to the update function - however, this should result in an error message being written to your logger ( since you have DEBUG defined in the preprocessor defines ). If you are not seeing anything at all in the logger output when the device resets, then we need to take a closer look at that first, and resolve the seemingly separate logger issue.&lt;/p&gt;
[quote user="KTM"]Sorry bothering you and thanks a lot for help[/quote]
&lt;p&gt;It is no problem at all, I am happy to help and not bothered at all by this. If you would like, I can still help you resolve this issue - but you need tell me more about your application, and what behavior you are seeing / not seeing.&lt;br /&gt;The more specific and elaborate you are, the easier it is for me to help you in a timely manner.&lt;br /&gt;&lt;br /&gt;Should you not want to continue this support ticket, you may also close it at any time.&lt;br /&gt;In that case, feel free to open a new ticket in the future if you should encounter any issues or questions!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/thread/274528?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 08:59:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eeb4ba0e-327d-414f-9cf1-24f46828bc4d</guid><dc:creator>KTM</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/66982/change-of-adv-data-in-sdk-17/274469#274469"]Are you seeing anything at all being written to your logger when this behavior occurs?[/quote]
&lt;p&gt;No&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But I managed to take a GATTS example app (ble peripheral) and cal the function and did not observe any kind of delay I do in our app. So probably this is a problem on my side&lt;/p&gt;
&lt;p&gt;Sorry bothering you and thanks a lot for help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/thread/274469?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 07:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02a037b2-1137-41c2-a5b4-28837e5a7484</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Then I must concur that it sounds like the device is resetting, most likely due to an error being generated in / by the update function.&lt;/p&gt;
[quote user="Karl Ylvisaker"]Are you seeing anything at all being written to your logger when this behavior occurs?[/quote]
&lt;p&gt;&amp;nbsp;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/thread/274422?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 16:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:494c8c63-9858-45f2-8851-dafecc857cd8</guid><dc:creator>KTM</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/66982/change-of-adv-data-in-sdk-17/274344#274344"]did you hit this breakpoint, did you hit it a first time when starting the application, and then&amp;nbsp;&lt;em&gt;again&amp;nbsp;&lt;/em&gt;when attempting to update the advertising data?[/quote]
&lt;p&gt;Exactly&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/thread/274344?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 13:28:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84c0bde4-a2d6-46d3-9c59-ecc4accc9bba</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="KTM"]&lt;p&gt;I put a break point in the main on the first line.&lt;/p&gt;
&lt;p&gt;I hit it so I assume there was a reset due to some error&lt;/p&gt;[/quote]
&lt;p&gt;Breakpoints before having enabled the SoftDevice is fine - since it will not assert if it is not enabled and active.&lt;br /&gt;To clarify my last comment: you might very well use breakpoints to debug your application - the first part will behave as usual: when a breakpoint is encountered, the CPU is halted, and the debugger shows you the contents of different registers ol. at that time.&lt;br /&gt;However, the difference comes when the SoftDevice is active at this time, and thus does not get to run when it needs to in order to maintain a connection or other timing-critical obligations. This will cause the SoftDevice to assert the moment it is given back control of the CPU ( which happens as soon as you click &amp;quot;resume&amp;quot; on the debugger ). So, long story short: You may indeed use breakpoints, but it will cause the device to reset immediately when you leave an encountered breakpoint.&lt;/p&gt;
[quote user="KTM"]&lt;p&gt;I hit it so I assume there was a reset due to some error&lt;/p&gt;
&lt;p&gt;This is a way I figure out that there is probably a device reset...&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;When did you hit this breakpoint, did you hit it a first time when starting the application, and then&amp;nbsp;&lt;em&gt;again&amp;nbsp;&lt;/em&gt;when attempting to update the advertising data?&lt;/p&gt;
[quote user="KTM"]Also within a function&amp;nbsp;&lt;span&gt;ble_advertising_advdata_update&amp;nbsp;I put a point after&amp;nbsp;sd_ble_gap_adv_set_configure call (i.e. on return) and never hit this line so&amp;nbsp;I guess that the reset comes from&amp;nbsp;sd_ble_gap_adv_set_configure&lt;/span&gt;[/quote]
&lt;p&gt;As mentioned, this will work - you should encounter the breakpoint as usual - but the SoftDevice will assert immediately upon resuming the program.&lt;/p&gt;
[quote user="KTM"]How would you suggest to debug that?[/quote]
&lt;p&gt;I would make sure that all SDK function that returns error codes are accounted for, and that their returned error values&amp;nbsp;&lt;strong&gt;&lt;em&gt;always&amp;nbsp;&lt;/em&gt;&lt;/strong&gt;is passed to an APP_ERROR_CHECK, to see if the code is anything other than NRF_SUCCESS.&lt;br /&gt;This way, you should see the exact error printed by your logger - along with which function that returned it - if an error different than NRF_SUCCESS is returned.&lt;br /&gt;Are you seeing anything at all being written to your logger when this behavior occurs?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/thread/274325?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 12:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:664a9208-65c2-4c46-821a-7fa907f0b055</guid><dc:creator>KTM</dc:creator><description>&lt;p&gt;I put a break point in the main on the first line.&lt;/p&gt;
&lt;p&gt;I hit it so I assume there was a reset due to some error&lt;/p&gt;
&lt;p&gt;This is a way I figure out that there is probably a device reset...&lt;/p&gt;
&lt;p&gt;Also within a function&amp;nbsp;&lt;span&gt;ble_advertising_advdata_update&amp;nbsp;I put a point after&amp;nbsp;sd_ble_gap_adv_set_configure call (i.e. on return) and never hit this line so&amp;nbsp;I guess that the reset comes from&amp;nbsp;sd_ble_gap_adv_set_configure&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How would you suggest to debug that?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/thread/274311?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 12:24:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baafeb2e-f130-4130-a860-a8b8ec7ba99b</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="KTM"]&lt;p&gt;I override simply a data in the&amp;nbsp;ble_advertising_init_t with the new one and call to the&amp;nbsp;&lt;span&gt;ble_advertising_advdata_update&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;(To my understanding this shall be ok since soft device copies ADV data into internal buffer)&lt;/p&gt;
&lt;p&gt;Am I wrong?&lt;/p&gt;[/quote]
&lt;p&gt;No, your understanding here is correct - because the ble_advertising_advdata_update function from SDK v.17 does the copying for you. If you were using an older SDK, such as v.16, you would have had to provide separate buffers for the updated data ( which you might have read other tickets about on the forum ), but this is not the case with SDK v.17.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="KTM"]&lt;p&gt;Idid some more testing and as soon as mark out the call to the function:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ble_advertising_advdata_update&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am not hitting main. Otherwise I do have a reset(hitting main)&lt;/p&gt;[/quote]
&lt;p&gt;I am sorry, but I do not understand what you are saying here - you said in your previous reply that &lt;em&gt;ble_advertising_advdata_update&lt;/em&gt; always returns NRF_SUCCESS, are you now seeing another error code returned?&lt;br /&gt;I suspect that the 1 - 2 second delay between updates is a result of a device reset, which again might be caused by an error cod ebeing returned somewhere.&lt;/p&gt;
[quote user="KTM"]It looks like a crash is within sd_ble_gap_adv_set_configure in the function&amp;nbsp;&lt;span&gt;ble_advertising_advdata_update&lt;/span&gt;[/quote]
&lt;p&gt;How do you pinpoint this? Using error codes, or using breakpoints?&lt;br /&gt;Please be advised that you may not use breakpoints with a running SoftDevice. The breakpoints will halt the CPU, and the SoftDevice will be unable to perform its timing-critical tasks in time, before you release the CPU again, this will cause the SoftDevice to assert immediately upon leaving the breakpoint.&lt;br /&gt;Are you seeing anything written to your log before the crash? Could you also elaborate what exactly you mean when you say that it looks like it crashes?&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/thread/274253?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 10:09:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ba795fa-35a5-4cb4-b617-e89ea042cf79</guid><dc:creator>KTM</dc:creator><description>&lt;p&gt;Idid some more testing and as soon as mark out the call to the function:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ble_advertising_advdata_update&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am not hitting main. Otherwise I do have a reset(hitting main)&lt;/p&gt;
&lt;p&gt;It looks like a crash is within sd_ble_gap_adv_set_configure in the function&amp;nbsp;&lt;span&gt;ble_advertising_advdata_update&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;What can cause a crash their?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/thread/274229?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 08:49:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d55aaaf-06c9-4bd2-9ad8-512c8debb112</guid><dc:creator>KTM</dc:creator><description>&lt;p&gt;Hello Karl&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I ma not hitting app_error_handler and do run with DEBUG (turned it on)&lt;/p&gt;
&lt;p&gt;The error code returned by the function&amp;nbsp;ble_advertising_advdata_update is NRF_SUCCESS&lt;/p&gt;
&lt;p&gt;However I do see in the over the air behaviour a delay&lt;/p&gt;
&lt;p&gt;The timer is our internally implemented timer which expires every second and from the timer I call to the function&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ble_advertising_advdata_update(&amp;amp;m_advertising, &amp;amp;advdata, NULL); (We do not need any scan response data)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I override simply a data in the&amp;nbsp;ble_advertising_init_t with the new one and call to the&amp;nbsp;&lt;span&gt;ble_advertising_advdata_update&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;(To my understanding this shall be ok since soft device copies ADV data into internal buffer)&lt;/p&gt;
&lt;p&gt;Am I wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of ADV data in SDK 17</title><link>https://devzone.nordicsemi.com/thread/274218?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 08:15:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83621e9a-0de9-4d21-bf53-11a981d5ea24</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]We are currently attempting to move to SDK 17. What I have noticed is that if I change and ADV data during advertisement by the help of new API function&amp;nbsp;ble_advertising_advdata_update I see that there will be a delay of ±2 seconds (I see it in air trace) during which there will be no ADV at all.[/quote]
&lt;p&gt;This does sound strange. Is your call to ble_advertising_advdata_update returning any error codes at any point?&lt;br /&gt;The updating of advertising data can be done between every advertisement, and should take effect before the next advertising, or at worst before the second advertising.&lt;/p&gt;
[quote user=""]Even when I configured ADV interval to be 100 milli and data rate change is 1 time at a second I see a delay of 2 seconds over the air until an updated data takes place.[/quote]
&lt;p&gt;How are you queueing the updating of the data, through a timer?&lt;br /&gt;&lt;br /&gt;Could you make sure that you have DEBUG defined in your preprocessor defines, like shown in the included image?&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5852.enabling_5F00_debug_5F00_SES.PNG" /&gt;&lt;br /&gt;1 - 2 seconds sounds like you application might be encountering an error and / or resetting. Could you verify if this occurs, that the device resets in this timespan?&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>