<?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>BLE Switching between beacon and UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48099/ble-switching-between-beacon-and-uart</link><description>Hi ,I&amp;#39;m using nRF52832 Bluetooth DK and (SDK15.3.0) , I am trying to switch between beacon mode and uart mode without the need to reset button , e.g with reset button from p0.21:I tried changing the mode if reset source from button reset p0.21 then go</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Jun 2019 07:38:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48099/ble-switching-between-beacon-and-uart" /><item><title>RE: BLE Switching between beacon and UART</title><link>https://devzone.nordicsemi.com/thread/191519?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2019 07:38:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aab1a91b-0ee2-45f5-9b60-c9fc7637872a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You might want to take a look at this thread - and the linked threads - about switching between Connectable &amp;amp; Non-connectable advertising:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47391/sdk-15-3-0-restart-non-connectable-advertising-after-timeout"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/47391/sdk-15-3-0-restart-non-connectable-advertising-after-timeout&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note that most of the SDK 15.3.0 examples use the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_ble_advertising.html" rel="noopener noreferrer" target="_blank"&gt;Advertising Module&lt;/a&gt;&lt;span&gt;&amp;nbsp;- and this does &lt;em&gt;&lt;strong&gt;not&lt;/strong&gt; &lt;/em&gt;support&amp;nbsp;&lt;/span&gt;Non-connectable advertising:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47391/sdk-15-3-0-restart-non-connectable-advertising-after-timeout/188008#188008"&gt;devzone.nordicsemi.com/.../188008&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, as &lt;a href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt; says, you have to do it &amp;quot;manually&amp;quot; with the SoftDevice&lt;strong&gt; sd_...&lt;/strong&gt; calls.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Switching between beacon and UART</title><link>https://devzone.nordicsemi.com/thread/191503?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2019 06:38:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f44b04b-0dc8-4072-947c-58a1e3acf5a3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You need to stop advertisements by calling&amp;nbsp;&lt;/span&gt;&lt;a title="sd_ble_gap_adv_stop" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=2_3_1_1_0_2_1_2_4#gaa88eea8e9e95dd96a7633e2c62f3ce16"&gt;sd_ble_gap_adv_stop&lt;/a&gt;&lt;span&gt;,&amp;nbsp; change the advertisement data with&amp;nbsp;&lt;/span&gt;&lt;a title="sd_ble_gap_adv_data_set" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=2_3_1_1_0_2_1_2_2#gaddbb12e078d536ef2e93b41d77ff6243"&gt;sd_ble_gap_adv_data_set&lt;/a&gt;&lt;span&gt;, and finally restart advertisements with&amp;nbsp;&lt;/span&gt;&lt;a title="sd_ble_gap_adv_start" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=2_3_1_1_0_2_1_2_3#ga241191b3fa20a5c20a60a088240a1dfa"&gt;sd_ble_gap_adv_start&lt;/a&gt;&lt;span&gt;. See the ble_app_beacon example for how to set up the advertisement data to the non-connectable mode and for example the ble_app_uart example to set up connectable mode.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Switching between beacon and UART</title><link>https://devzone.nordicsemi.com/thread/191365?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 12:44:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eb5ce8d-d677-44d3-98ae-febe51e514be</guid><dc:creator>pan2</dc:creator><description>&lt;p&gt;Thank you Simon,i&lt;span class="st"&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt; tried ... can you give me a simple example that explain the steps how to transform from mode beacon to connected mode&amp;nbsp; without any problem ? , What is the&amp;nbsp; function should be stopped ? What is&amp;nbsp;the function should be activated?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Switching between beacon and UART</title><link>https://devzone.nordicsemi.com/thread/190788?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 12:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b008e3c-fb5d-4e8c-8795-2c71a9fc52bc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am struggling to understand what exactly you want. Do you want to switch between UART and Beacon advertising without resetting? In that case, take a look at the ble_app_uart example, and try modifying it to act as a beacon instead of a connectable Bluetooth peripheral.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to change between these two peripherals using a button, that shouldn&amp;#39;t be so hard implementing into the ble_app_uart example either.&lt;/p&gt;
&lt;p&gt;If you want to set the reset button as another button on your DK, that is not possible.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>