<?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>Which SDK example shall I use?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23201/which-sdk-example-shall-i-use</link><description>Hi,
I am a newbie in nRF51 application. I am busy with a project which required the peripheral to communicate with the central once per second. Just to make sure that the peripheral is not lost. The project requires to save as much power as possible</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jul 2017 09:05:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23201/which-sdk-example-shall-i-use" /><item><title>RE: Which SDK example shall I use?</title><link>https://devzone.nordicsemi.com/thread/91250?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 09:05:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac8335ff-96b3-4358-b6c0-7669453fb47c</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;And btw. that &amp;quot;send its UUID&amp;quot; doesn&amp;#39;t make much sense in BLE GATT but I guess you will learn it... simply send &amp;quot;something&amp;quot; over your custom GATT Service&amp;amp;Characteristic (= these will have UUIDs, but that&amp;#39;s different story)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which SDK example shall I use?</title><link>https://devzone.nordicsemi.com/thread/91249?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 09:03:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3af0bb5b-8d50-4adb-b6ab-b569cbc9bc92</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;&amp;quot;Whisper&amp;quot; mode seems to be lowest Tx Power setting (-30 or -40dBm depending on nRF5x platform) so simply use particular SD function (or update registers directly if you don&amp;#39;t use Nordic stack). Just be ready for really really low maximum distance achievable with reasonably reliable link (= low packet loss) especially indoors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which SDK example shall I use?</title><link>https://devzone.nordicsemi.com/thread/91253?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 08:04:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9493f6fe-33eb-4a9d-8d01-c528f34e6fd9</guid><dc:creator>Daliwan</dc:creator><description>&lt;p&gt;By the way, how can I use whisper mode? Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which SDK example shall I use?</title><link>https://devzone.nordicsemi.com/thread/91254?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 07:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:438a34f3-c464-4aa7-8b73-84a53198b38d</guid><dc:creator>Daliwan</dc:creator><description>&lt;p&gt;Thank you very much. Now my plan is to use the UART example, but don&amp;#39;t sent any data, just keep the peripheral connected the central. The peripheral will send its information, only its UUID or so every interval. If they disconnect with each other, then an alarm occurs. I think maybe this is the simplest and most power efficient solution for my simple case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which SDK example shall I use?</title><link>https://devzone.nordicsemi.com/thread/91251?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2017 08:52:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c080a105-345d-4bab-b32e-e9353015dcba</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;(2/2)... you can on Central side do other processing (e.g. scan for other broadcasters or handle some connection link). Also with advertising only you have no reliability on data transferred. With connection link approach you are sure that data will either pass over the link or it will timeout (which will notify both sides that something is wrong, timeout can be configured by connection parameters to certain extend). It should also be more power savvy on Central side then continuous scanning. However if you have some limitation on Central side (e.g. that you can maintain only one link at the time) it can prevent you from doing other things. Final decision largely depends on what devices you have on both sides, what capabilities (in terms of BLE stack) they have and what other use cases they need to support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which SDK example shall I use?</title><link>https://devzone.nordicsemi.com/thread/91252?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2017 08:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:087a2ec3-aec5-4645-b2ee-0afbcc9ac4fc</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Have you see Nordic Soft Device API? There is &lt;code&gt;channel_mask&lt;/code&gt; parameter supplied inside &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v4.0.2/structble__gap__adv__params__t.html"&gt;&lt;code&gt;p_adv_params&lt;/code&gt; structure &lt;/a&gt; to &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v4.0.2/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=2_3_0_1_1_2_1_2_3#ga241191b3fa20a5c20a60a088240a1dfa"&gt;&lt;code&gt;sd_ble_gap_adv_start&lt;/code&gt; function&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To the rest of your question: you cannot avoid advertising phase because without advertising there is no BLE connection. Once the connection is established the advertising is typically turned OFF and only link events are carried ON. Both methods have advantages and disadvantages, mainly in fact that for broadcasting only you need (preferably) scan all the time on Observer (Central) side (eats lot of power if you care...) but on the other hand (1/x)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which SDK example shall I use?</title><link>https://devzone.nordicsemi.com/thread/91255?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2017 03:09:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:080aebc2-dce0-4d5c-a205-3e3c1d817442</guid><dc:creator>Daliwan</dc:creator><description>&lt;p&gt;Dear Jan,
Thank you very much for your help. In my case, the power efficiency is the first thing to consider. It seems that Adv in one channel is the most suitable way to me. But I don&amp;#39;t know how to realize it. Can you give me some example for that? I also wonder if I can bond it to a central once and later just use communication mode, without advertising. It will not send any big information, but only show its ID to say it is nearby is enough. Is it possible? Which is better, the Adv method and communication method if both of them use only one channel? Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which SDK example shall I use?</title><link>https://devzone.nordicsemi.com/thread/91248?ContentTypeID=1</link><pubDate>Sun, 02 Jul 2017 11:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08b2a4c0-6222-4429-8af6-c037a3b0cb29</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi Daliwan,&lt;/p&gt;
&lt;p&gt;You can restrict advertising to single channel if this is your concern. Note that if you use non-connectable/scannable advertisement then SoftDevice (BLE stack) completely skips receiving phase which has significant power consumption spike so by using adv. only solution will be probably the most power efficient. Indeed you are losing reliability (the other side must have 100% scanning duty cycle if possible and because Nordic Soft Devices currently cannot restrict scanning to single adv. channel (= they are rotating channels 37/38/39 with fixed &amp;quot;scanning interval&amp;quot;) you might anyway decide to advertise on all 3 channels (or you need to fine-tune other parameters on both sides - if possible - to achieve desired data rate/periodicity).&lt;/p&gt;
&lt;p&gt;However if information transfer is critical then you should go with some connection-based solution with long connection interval (you can go way beyond 1s). It will consume slightly more energy but you will be sure that packets get re-transmitted if Central device misses it.&lt;/p&gt;
&lt;p&gt;If power consumption is the biggest problem for you and you are ready for custom HW design you can go with some &amp;quot;extreme&amp;quot; architecture where nRF5x chip is powered off (or in SYSTEM OFF deep sleep mode) and is woken up once per second by some low-power external RTC chip (there are components which run in 1-50nA range which is much less then nRF5x in SYSTEM ON sleep mode).&lt;/p&gt;
&lt;p&gt;Depending on the approach you can choose either beacon example (advertising only) or some Peripheral/Central examples such as Nordic BLE UART Service (NUS) or general BLE template (depends if you want to support things like BLE Security Manager with pairing/bonding mechanisms).&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>