<?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>The right flow to change the advertising data during run-time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22419/the-right-flow-to-change-the-advertising-data-during-run-time</link><description>I&amp;#39;m working on the product using the nRF51422 QFAAE00 , SD110_nrf51_8.0.0, SDK 10.0.0. My product has the advertising flow as below 
 
 
 The device advertises forever with advdata updated during run-time by using ble_advertising_init() 
 
 
 If</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 May 2017 13:34:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22419/the-right-flow-to-change-the-advertising-data-during-run-time" /><item><title>RE: The right flow to change the advertising data during run-time</title><link>https://devzone.nordicsemi.com/thread/88161?ContentTypeID=1</link><pubDate>Tue, 30 May 2017 13:34:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dd7979c-33ef-4414-91c7-35911ad51018</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;If you want continuous advertising, advertising should always be started after is has been stopped.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right flow to change the advertising data during run-time</title><link>https://devzone.nordicsemi.com/thread/88160?ContentTypeID=1</link><pubDate>Tue, 30 May 2017 12:26:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2addd4b4-3238-49bb-b314-a8f1f1190d96</guid><dc:creator>Hai Nguyen</dc:creator><description>&lt;p&gt;Can you give the right flow for my situation? I have to run in many days the issue happens. My product is useless if the phone can not connect and user can not reset the device&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right flow to change the advertising data during run-time</title><link>https://devzone.nordicsemi.com/thread/88159?ContentTypeID=1</link><pubDate>Tue, 30 May 2017 11:31:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64d6e5fa-c318-4f27-b6b7-f328243cf3df</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;In my opinion, it is crucial to check the flow of advertising start/stop in the firmware, to make sure that there is no corner cases that are treated differently.&lt;/p&gt;
&lt;p&gt;In addition, you can use logging over UART for debugging when advertising is started/stopped.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right flow to change the advertising data during run-time</title><link>https://devzone.nordicsemi.com/thread/88164?ContentTypeID=1</link><pubDate>Tue, 30 May 2017 09:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97843148-99fb-41de-8fdd-f33fb5e924b6</guid><dc:creator>Hai Nguyen</dc:creator><description>&lt;p&gt;Thanks for your suggestion, but it happens rarely so it&amp;#39;s difficult to debug. Do you have any suggestion for workaround or how to check the advertising or not in SD?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right flow to change the advertising data during run-time</title><link>https://devzone.nordicsemi.com/thread/88163?ContentTypeID=1</link><pubDate>Tue, 30 May 2017 09:06:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67a56ffc-ad01-40c7-8969-dba0debd88d6</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I would recommend you to double check the flow, check when advertising is started.&lt;/p&gt;
&lt;p&gt;To find out which order incoming BLE events are handled see &lt;code&gt;ble_evt_dispatch()&lt;/code&gt; in main.c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right flow to change the advertising data during run-time</title><link>https://devzone.nordicsemi.com/thread/88162?ContentTypeID=1</link><pubDate>Tue, 30 May 2017 07:23:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d88321ac-b01d-428e-b57f-5b038d563f02</guid><dc:creator>Hai Nguyen</dc:creator><description>&lt;p&gt;It&amp;#39;s no problem. I got it from examples, it seems the sd automatically to start the advertisement again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right flow to change the advertising data during run-time</title><link>https://devzone.nordicsemi.com/thread/88158?ContentTypeID=1</link><pubDate>Tue, 30 May 2017 07:12:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3875017e-c7e1-4b7c-bfc9-97c21ae61b77</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;From what I can see, the advertising is stopped upon a disconnect and not started again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>