<?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 UUID programatically</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23726/change-uuid-programatically</link><description>I would like to change UUID programatically,initially we are trying to establish connection between phone and beacon.
We tried to change BLE_GAP_ADV_TYPE_ADV_NONCONN_IND to BLE_GAP_ADV_TYPE_ADV_IND and added m_adv_params.interval = NON_CONNECTABLE_ADV_INTERVAL</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jul 2017 13:06:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23726/change-uuid-programatically" /><item><title>RE: Change UUID programatically</title><link>https://devzone.nordicsemi.com/thread/93324?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2017 13:06:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b4a5701-9f20-4154-b2f9-a4fbc8634e68</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi DMS,
Are you sure you are changing UUID or you are changing advertising type ?&lt;/p&gt;
&lt;p&gt;If your program suddenly stopped working, you should debug it to find what cause the issue. Follow this guide on how to &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt;debug&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change UUID programatically</title><link>https://devzone.nordicsemi.com/thread/93332?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 13:10:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbfef2bd-0bf6-4d12-9b33-4634bc5cc466</guid><dc:creator>DMS</dc:creator><description>&lt;p&gt;__DSB();                                                          /* Ensure all outstanding memory accesses included
buffered write are completed before reset &lt;em&gt;/
SCB-&amp;gt;AIRCR  = (uint32_t)((0x5FAUL &amp;lt;&amp;lt; SCB_AIRCR_VECTKEY_Pos)    |
(SCB-&amp;gt;AIRCR &amp;amp; SCB_AIRCR_PRIGROUP_Msk) |
SCB_AIRCR_SYSRESETREQ_Msk    );         /&lt;/em&gt; Keep priority group unchanged */
this two lines are running forever&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change UUID programatically</title><link>https://devzone.nordicsemi.com/thread/93327?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 12:07:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:babd8f84-71fe-4fdb-9556-a0389688e185</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;still looks like an error handler to me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change UUID programatically</title><link>https://devzone.nordicsemi.com/thread/93331?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 12:05:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6848a0f5-5449-4c27-a5ea-dd47e0391fe2</guid><dc:creator>DMS</dc:creator><description>&lt;p&gt;the loop is running forever __STATIC_INLINE void NVIC_SystemReset(void) in this function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change UUID programatically</title><link>https://devzone.nordicsemi.com/thread/93330?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 11:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f80f552-ce35-45fa-9546-f6d68e18f803</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;That&amp;#39;s one of the calls in there, basically anything which has an APP_ERROR_CHECK() after it may fail, at which point you&amp;#39;re in the error handler spinning forever.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change UUID programatically</title><link>https://devzone.nordicsemi.com/thread/93329?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 11:05:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c66ae33a-8f50-4e91-a1d8-140ddf76e795</guid><dc:creator>DMS</dc:creator><description>&lt;p&gt;err_code = ble_advdata_set(&amp;amp;advdata, &amp;amp;srdata);
APP_ERROR_CHECK(err_code); right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change UUID programatically</title><link>https://devzone.nordicsemi.com/thread/93328?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 10:42:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a6bfb39-880f-4db2-aadf-a679b94a1992</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;go and check the error returns from the calls which set up advertising&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change UUID programatically</title><link>https://devzone.nordicsemi.com/thread/93326?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 10:20:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:297e550b-45c4-45ed-95a2-a66da204054c</guid><dc:creator>DMS</dc:creator><description>&lt;p&gt;m_adv_params.type        = BLE_GAP_ADV_TYPE_ADV_IND;
m_adv_params.p_peer_addr = NULL;                             // Undirected advertisement.
m_adv_params.fp          = BLE_GAP_ADV_FP_ANY;
m_adv_params.interval    = APP_ADV_INTERVAL;
m_adv_params.timeout     = APP_ADV_TIMEOUT_IN_SECONDS;
this was the parameters we added.
are we in right direction towards connection establishment?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change UUID programatically</title><link>https://devzone.nordicsemi.com/thread/93325?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 10:09:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2771ed3c-d607-413b-8daf-664f31671b0e</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;99.9% you put a bad parameter in the structure and the advertising init function returned an error and one of the APP_ERROR_CHECK()s sent you to the application error handler.&lt;/p&gt;
&lt;p&gt;Go put a breakpoint in that and you&amp;#39;ll have a stack trace and an error code and you can work out from there what bad parameter you set.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>