<?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>Turning on log warning function</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86023/turning-on-log-warning-function</link><description>Hi all, 
 I am trying to realize a function that changing from connectable advertising mode to beacon advertising mode upon request with my nrf52840-DK. while I am able to stop advertising from connectable advertising mode with sd_ble_gap_adv_stop(),</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Mar 2022 08:55:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86023/turning-on-log-warning-function" /><item><title>RE: Turning on log warning function</title><link>https://devzone.nordicsemi.com/thread/359533?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 08:55:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b13a7555-0c40-4ba8-92be-de4438e6e052</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, the softdevice can support up to 20 concurrent connections. This is achieved by establishing one connection at a time. I.e. you re-start connectable advertising as soon as a connection is established to allow the next device to connect. This sequence can be repeated until you have reached the max. number of connections.&lt;/p&gt;
&lt;p&gt;Below are some resources which are relevant to Bluetooth:&lt;/p&gt;
&lt;p&gt;- &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy"&gt;https://devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;- &lt;span&gt;&lt;a title="S140 SoftDevice Specification" href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/s140.html?cp=4_7_4_0"&gt;S140 SoftDevice Specification&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;- &lt;a href="https://www.novelbits.io/"&gt;https://www.novelbits.io/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;- &lt;a href="https://www.bluetooth.com/specifications/specs/core-specification-5-3/"&gt;https://www.bluetooth.com/specifications/specs/core-specification-5-3/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But don&amp;#39;t hesitate to ask us when you have questions. We are here to help &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Turning on log warning function</title><link>https://devzone.nordicsemi.com/thread/359487?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 05:39:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e432f01a-3574-4bd4-9aeb-f5ebd938fcef</guid><dc:creator>willai</dc:creator><description>&lt;p&gt;I have another question upon the issue.&lt;br /&gt;&lt;br /&gt;I did some reading and found that s140 softdevice supports&amp;nbsp;&lt;span&gt;up to 20 concurrent connections. And I also read some thread talking about that max one connection with central would be supported.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;As you mentioned the softdevice does not support&amp;nbsp;&lt;span&gt;multiple advertisement, what if i start the beacon advertisement after the connect with a central device is established? Would it be possible?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;I am kind of new to BLE/Bluetooth. I am sorry if I am asking a stupid question. Please directly me to some reading or resource if possible so that I can do the reading on my own instead of having you explaining to me that much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Turning on log warning function</title><link>https://devzone.nordicsemi.com/thread/359056?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 09:52:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04f8a76f-dbf2-43bc-8c81-6436f3fabfcb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The initial value adv_handle value is always set to BLE_GAP_ADV_SET_HANDLE_NOT_SET. Here from ble_advertising_init():&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1647856170742v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It then gets set to &amp;#39;0&amp;#39; when the advertisement set has been configured through the &lt;span&gt;&lt;a title="sd_ble_gap_adv_set_configure" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.3.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=4_7_4_1_2_1_3_3#ga9969047f4e7485c3f856c841978cc31a"&gt;sd_ble_gap_adv_set_configure&lt;/a&gt;&lt;/span&gt;() function (notice that p_adv_handle is an in,out argument):&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1647856300676v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Turning on log warning function</title><link>https://devzone.nordicsemi.com/thread/359037?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 08:58:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0397933b-3465-4dfb-b9c6-c47374a4264b</guid><dc:creator>willai</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;! It works by changing&amp;nbsp;&lt;span&gt;m_adv_handle&amp;nbsp;to 0.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;By the way, in the initialization of&amp;nbsp;&lt;span&gt;connectable advertising mode, I didn&amp;#39;t see the value of adv_handle being set&amp;nbsp;(See&amp;nbsp;ble_advertising_init() in ble_advertising.c). Is the value by default equals to 0?&lt;br /&gt;&lt;br /&gt;While you mentioned&amp;nbsp;the same advertising handle for both your connectable and non-connectable advertisements, could you explain it a bit so that I could understand a bit more about the situation I was in please?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Turning on log warning function</title><link>https://devzone.nordicsemi.com/thread/359018?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 08:17:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf87fb5f-47af-467a-b668-a54dccb7b0a8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I guess the problem is that m_adv_handle is set to BLE_GAP_ADV_SET_HANDLE_NOT_SET when you call sd_ble_gap_adv_set_configure(). The Softdevice does not support multiple advertisement sets, which means you have to re-use the same advertising handle for both your connectable and non-connectable advertisements.&amp;nbsp; Try to set m_adv_handle to &amp;#39;0&amp;#39; instead.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>