<?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>Easiest way to make a Long Range Beacon with nRF52840?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50464/easiest-way-to-make-a-long-range-beacon-with-nrf52840</link><description>I&amp;#39;ve just got my hands on a nRF52840 DK and need to quickly evaluate it as a bluetooth 5 beacon in long range mode. 
 I assume I can just modify an example project to make this happen. If that&amp;#39;s the case, what&amp;#39;s the best example to start from and what</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Aug 2019 12:24:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50464/easiest-way-to-make-a-long-range-beacon-with-nrf52840" /><item><title>RE: Easiest way to make a Long Range Beacon with nRF52840?</title><link>https://devzone.nordicsemi.com/thread/203579?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 12:24:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df300f27-14a7-465b-bba8-dd60c8b7604c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The same&amp;nbsp;.hex&amp;nbsp;will probably&amp;nbsp;run fine on the 5284 DK, but you need to connect another USB cable to the nRF USB port to get the log messages.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Below is the source code if you want to see the changes I made. It&amp;#39;s based onthe usbd_ble_uart example in sdk 15.3.0 (\examples\peripheral\usbd_ble_uart)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/usbd_5F00_ble_5F00_uart_5F00_lr_5F00_scanner.zip"&gt;devzone.nordicsemi.com/.../usbd_5F00_ble_5F00_uart_5F00_lr_5F00_scanner.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to make a Long Range Beacon with nRF52840?</title><link>https://devzone.nordicsemi.com/thread/203563?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 11:50:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76d425a8-b740-4f1f-99c3-0769042beaed</guid><dc:creator>CraigE</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to reproduce this from examples, to run on the nRF52840 DK, but I am really struggling.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please talk me through the steps you took to achieve this? I feel there is a lot of specific advice on these forums across many many varying SDKs/soft devices, but a distinct lack of tutorials in anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to make a Long Range Beacon with nRF52840?</title><link>https://devzone.nordicsemi.com/thread/201933?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 14:32:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:915c2f1f-4b0a-4342-b34b-b5307baa481d</guid><dc:creator>CraigE</dc:creator><description>&lt;p&gt;Thank you! This is exactly the kind of tool I was looking for!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to make a Long Range Beacon with nRF52840?</title><link>https://devzone.nordicsemi.com/thread/201922?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 13:49:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0125aa1b-8e39-495a-924f-a77e0285531a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It should work with those parameters. You&amp;nbsp;may&amp;nbsp;change the output power after you have added the adv. set as well to increase the range further. The output power is 0 dBm by default.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;eg.,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err_code = sd_ble_gap_adv_set_configure(&amp;amp;m_adv_handle, &amp;amp;m_adv_data, &amp;amp;m_adv_params);
APP_ERROR_CHECK(err_code);

err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_adv_handle, 8); //+8dBm
APP_ERROR_CHECK(err_code);&lt;/pre&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, I saw from your other post that you wanted to use&amp;nbsp;a 52840 dongle for scanning. We don&amp;#39;t have any ready-made examples for it, but you can try the hex file attached below.&amp;nbsp;I based it on the&amp;nbsp;usbd_ble_uart example and changed it so that it will only scan for coded PHY advertisement packets and print the address and RSSI of those packets over the USB interface.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-701c3f29c37b472c9f0271586b0313c1/beacon_5F00_lr_5F00_scanner_5F00_w_5F00_s140.hex"&gt;devzone.nordicsemi.com/.../beacon_5F00_lr_5F00_scanner_5F00_w_5F00_s140.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Expected output when you connect a serial&amp;nbsp;client to the vcom port&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-701c3f29c37b472c9f0271586b0313c1/pastedimage1564667308493v1.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to make a Long Range Beacon with nRF52840?</title><link>https://devzone.nordicsemi.com/thread/201641?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 14:06:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:733b38a3-d238-4816-833c-d0a23beae26c</guid><dc:creator>CraigE</dc:creator><description>&lt;p&gt;In my case it I&amp;#39;d like to test this for an application.&lt;/p&gt;
&lt;p&gt;Thanks for the threads. I&amp;#39;ve been changing some of the parameters based on what I&amp;#39;ve read.&lt;/p&gt;
&lt;p&gt;Seems like the below parameters compile and run, but I don&amp;#39;t know if they actually work on BT5 yet!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    m_adv_params.primary_phy     = BLE_GAP_PHY_CODED;
    m_adv_params.secondary_phy   = BLE_GAP_PHY_CODED;
    m_adv_params.scan_req_notification = 0;

    m_adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;
    m_adv_params.p_peer_addr     = NULL;    // Undirected advertisement.
    m_adv_params.filter_policy   = BLE_GAP_ADV_FP_ANY;
    m_adv_params.interval        = NON_CONNECTABLE_ADV_INTERVAL;
    m_adv_params.duration        = 0;       // Never time out.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to make a Long Range Beacon with nRF52840?</title><link>https://devzone.nordicsemi.com/thread/201541?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 11:39:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf33882b-0ca7-480a-9c41-7e1130b652f1</guid><dc:creator>awneil</dc:creator><description>[quote userid="82165" url="~/f/nordic-q-a/50464/easiest-way-to-make-a-long-range-beacon-with-nrf52840/201540"]it seems the default is not Long Range? [/quote]
&lt;p&gt;Indeed - normally that is exactly what you &lt;em&gt;&lt;strong&gt;don&amp;#39;t&lt;/strong&gt; &lt;/em&gt;want from a beacon!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50365/looking-for-products-that-use-the-nrf52840/201296#201296"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/50365/looking-for-products-that-use-the-nrf52840/201296#201296&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;A few threads on long-range beacons:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/search?q=beacon%20long%20range"&gt;https://devzone.nordicsemi.com/search?q=beacon%20long%20range&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and long-range in general:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44867/long-range-setup-for-nrf52840/176189#176189"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/44867/long-range-setup-for-nrf52840/176189#176189&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to make a Long Range Beacon with nRF52840?</title><link>https://devzone.nordicsemi.com/thread/201540?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 11:35:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c24fec79-c3cb-4899-a795-221641fb9e7b</guid><dc:creator>CraigE</dc:creator><description>&lt;p&gt;I have found the beacon example, but it seems the default is not Long Range? I guess I was asking if there were any BT5 feature specific examples too. If not, where do the changes need to be made?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to make a Long Range Beacon with nRF52840?</title><link>https://devzone.nordicsemi.com/thread/201537?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 11:32:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d4e301a-3d53-4d76-add0-4de1ea2095d1</guid><dc:creator>awneil</dc:creator><description>[quote userid="82165" url="~/f/nordic-q-a/50464/easiest-way-to-make-a-long-range-beacon-with-nrf52840"]what&amp;#39;s the best example to start from[/quote]
&lt;p&gt;Err - the one that&amp;#39;s called, &amp;quot;&lt;strong&gt;Beacon&lt;/strong&gt;...&amp;quot; ?!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/examples_ble_peripheral.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/examples_ble_peripheral.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>