<?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>Unable to Receive Advertisements from Multiple Beacons</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102751/unable-to-receive-advertisements-from-multiple-beacons</link><description>Setup: 
 1 NRF21540dk (Receiver) Multiple custom nRF52840-based Beacons nRF Connect SDK V2.3.0 + VSCode Latest Version of Windows 11 
 Problem: 
 I&amp;#39;m working on a project which has multiple Beacons that send out (non-connectable) Bluetooth advertisements</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Sep 2023 20:20:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102751/unable-to-receive-advertisements-from-multiple-beacons" /><item><title>RE: Unable to Receive Advertisements from Multiple Beacons</title><link>https://devzone.nordicsemi.com/thread/445704?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 20:20:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd4250dc-21f1-4efa-a3c5-a6d0a4a7aa58</guid><dc:creator>Hieu</dc:creator><description>[quote user="TheoM"]I should clarify - I&amp;#39;m no longer working with a 21540-DK. I&amp;#39;m using a custom board, which uses the Laird BL654 (52840 + Skyworks FEM). So for my build, I&amp;#39;m NOT using the 21540 or 52840 configs from Nordic.[/quote]
&lt;p&gt;Thank you for the clarification. I went into the details on the nRF21540 DK was due to address an&amp;nbsp;implied comparison in your question:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span&gt;&lt;em&gt;it looks like getting this to work heavily depends on using the SoftDevice, which&amp;nbsp;will require some &lt;span style="text-decoration:underline;"&gt;additional code that wasn&amp;#39;t required when I was using a 21540DK&lt;/span&gt;&lt;/em&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In that guide, section 4, you&amp;nbsp;will see that it is targeted for &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt;the nRF5 SDK, which is an entirely different SDK, now in maintenance mode&lt;/a&gt;. We don&amp;#39;t recommend you use this SDK for new projects.&lt;/span&gt;&lt;/p&gt;
[quote user="TheoM"]&lt;p&gt;had to add support for a FEM, using the two-wire simple GPIO mode according to Laird&amp;#39;s documentation (See link below - Laird&amp;#39;s guide is based on a heavily outdated SDK version, and hasn&amp;#39;t been updated in over 2 years)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.lairdconnect.com/documentation/application-note-nordic-sdk-based-application-development-bl654pa"&gt;https://www.lairdconnect.com/documentation/application-note-nordic-sdk-based-application-development-bl654pa&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I just mentioned, I&amp;#39;ve already made the required DTS/KConfig changes that supposedly would allow use of the FEM, but Laird&amp;#39;s documentation mentions that the SoftDevice must be used to initialize/control the FEM, which I haven&amp;#39;t tried yet.&lt;/p&gt;[/quote]
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52_softdevices.html"&gt;The SoftDevice in the nRF5 SDK&lt;/a&gt; is a predecessor of &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/protocols/ble/index.html#softdevice-controller"&gt;the SoftDevice &lt;strong&gt;Controller&lt;/strong&gt; in the nRF Connect SDK (NCS)&lt;/a&gt;. However, a lot of changes has happened, and the APIs and code mentioned in&amp;nbsp;the Laird guide&amp;nbsp;is likely completely not applicable in NCS.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;I recommend you&amp;nbsp;follow &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/app_dev/working_with_fem/index.html"&gt;this guide to get FEM working in NCS instead&lt;/a&gt;. It works with Skyworks FEM. I have&amp;nbsp;followed it to setup a Skyworks FEM in a previous DevZone case.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Receive Advertisements from Multiple Beacons</title><link>https://devzone.nordicsemi.com/thread/445700?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 19:49:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc471377-d7da-4059-9e3f-760a7bf7775d</guid><dc:creator>TheoM</dc:creator><description>&lt;p&gt;I should clarify - I&amp;#39;m no longer working with a 21540-DK. I&amp;#39;m using a custom board, which uses the Laird BL654 (52840 + Skyworks FEM). So for my build, I&amp;#39;m NOT using the 21540 or 52840 configs from Nordic.&amp;nbsp;Rather, I&amp;#39;m using a modified version of the &amp;quot;bl654 dvk&amp;quot; board configs. I had to add support for a FEM, using the two-wire simple GPIO mode according to Laird&amp;#39;s documentation (See link below - Laird&amp;#39;s guide is based on a heavily outdated SDK version, and hasn&amp;#39;t been updated in over 2 years)&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://www.lairdconnect.com/documentation/application-note-nordic-sdk-based-application-development-bl654pa"&gt;https://www.lairdconnect.com/documentation/application-note-nordic-sdk-based-application-development-bl654pa&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I just mentioned, I&amp;#39;ve already made the required DTS/KConfig changes that supposedly would allow use of the FEM, but Laird&amp;#39;s documentation mentions that the SoftDevice must be used to initialize/control the FEM, which I haven&amp;#39;t tried yet.&lt;/p&gt;
&lt;p&gt;I tried contacting Laird already, but my support request was denied because I&amp;#39;m not directly working for a business.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Receive Advertisements from Multiple Beacons</title><link>https://devzone.nordicsemi.com/thread/445695?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 19:18:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:648f4d1d-a5b1-4c60-9ff2-99e6b04b687e</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;I assume the &amp;quot;additional code&amp;quot; you are referring to are the Kconfig and DTS? If so, yes.&lt;/p&gt;
&lt;p&gt;To be fair, for the nRF21540 &lt;strong&gt;DK&lt;/strong&gt;, Nordic already provided &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v3.3.99-ncs1/boards/arm/nrf21540dk_nrf52840"&gt;the board files with the FEM setup&lt;/a&gt;. You can see that &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.3.99-ncs1/boards/arm/nrf21540dk_nrf52840/nrf21540dk_nrf52840.dts#L115-L124"&gt;the&amp;nbsp;DTS node for the FEM&lt;/a&gt;, &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.3.99-ncs1/boards/arm/nrf21540dk_nrf52840/nrf21540dk_nrf52840.dts#L225-L242"&gt;the SPI interface, and the radio node property&lt;/a&gt; are defined.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For the Kconfigs, you can also find &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.4.2/subsys/mpsl/fem/Kconfig#L10-L25"&gt;the necessary ones are enabled by default for both Skyworks FEM and nRF21540&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I am not familiar with&amp;nbsp;Laird&amp;#39;s support for their modules. If they already provided such DTS or overlay files, then you don&amp;#39;t need to do anything.&amp;nbsp;I haven&amp;#39;t found anything after a quick search, however.&amp;nbsp;For a definitive answer, I think you need to contact Laird.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Receive Advertisements from Multiple Beacons</title><link>https://devzone.nordicsemi.com/thread/445690?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 18:05:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99873583-366c-42f3-8822-3cffcc7406db</guid><dc:creator>TheoM</dc:creator><description>&lt;p&gt;It&amp;#39;s a custom board that&amp;#39;s based on a BL654 PA module, which has an nRF52840 + a skyworks FEM. Based on some further research, it looks like I&amp;#39;m not correctly utilizing the FEM. I&amp;#39;ve set the 2 GPIO&amp;#39;s according to Laird&amp;#39;s and Nordic&amp;#39;s documentation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From what I&amp;#39;ve read - it looks like getting this to work heavily depends on using the SoftDevice, which&amp;nbsp;will require some additional code that wasn&amp;#39;t required when I was using a 21540DK. Am I correct in this?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Receive Advertisements from Multiple Beacons</title><link>https://devzone.nordicsemi.com/thread/441336?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 10:24:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed8af1fa-40c8-4e30-8974-0c889f958028</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;If I understand correctly, the issue is more that the 21540dk is not receiving very well the packets from your &lt;span&gt;bl654-dvk&lt;/span&gt;&amp;nbsp;beacons, is that right?&lt;/p&gt;
&lt;p&gt;I am not familiar with&amp;nbsp;&lt;span&gt;bl654-dvk. Looking up the internet, it seems to be a Laird Connectivity product, but I am not clear if it is development kit from them, or a custom hardware from you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If it&amp;#39;s a custom hardware, you can also open a private hardware design review ticket. We do offer schematic and PCB review&amp;nbsp;on DevZone.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regarding your doubt about the TX Power, you can read the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/radio.html?cp=5_0_0_5_19_13#register.TXPOWER"&gt;TXPOWER&lt;/a&gt; register in code, or with nrfjprog using the command &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf_cltools/UG/cltools/nrf_nrfjprogexe_reference.html"&gt;--memrd&lt;/a&gt;&lt;/span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Besides that, I&amp;nbsp;think it&amp;#39;s also a good idea to just flash a super basic beacon sample on the&amp;nbsp;&lt;span&gt;bl654-dvk hardware and look at the performance. The nrf21540dk_nrf52840 build target does setup some TX Power changes, which can create a difference in TX Power between the 21540dk and the&amp;nbsp;bl654-dvk build.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Receive Advertisements from Multiple Beacons</title><link>https://devzone.nordicsemi.com/thread/441171?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 13:23:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a91ff9a4-3869-4752-a2a5-4420497f2244</guid><dc:creator>TheoM</dc:creator><description>&lt;p&gt;In the initial scenario, we had 2 beacons. One was on our custom board using a custom build config based on a bl654-dvk, which we were having the issues with. The other &amp;quot;dominant&amp;quot; beacon was running on a 21540dk dev board. Our receiver was another 21540-dk. Otherwise, in terms of software the Beacons were identical in every way (i.e. same application, same advertising intervals, etc.)&lt;/p&gt;
&lt;p&gt;The issue persisted even without processing the 4-byte part of the message,&amp;nbsp;and we had trouble receiving messages from the problematic Beacon, even when the &amp;quot;dominant&amp;quot; Beacon was turned off.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That led me to believe that it&amp;#39;s an issue with the TX power, as the (admittedly somewhat useless) RSSI values for the packets indicated a very strong signal from the &amp;quot;dominant&amp;quot; 21540dk, and a weak signal from the custom board based Beacons. This could possibly be caused by somehow incorrectly setting up the bl654-dk configuration, but we&amp;#39;re not sure.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Receive Advertisements from Multiple Beacons</title><link>https://devzone.nordicsemi.com/thread/440908?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 09:18:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:010323da-bf86-46f7-b96a-b6a6269e9556</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi TheoM,&lt;/p&gt;
&lt;p&gt;It is a very strange observation. We don&amp;#39;t usually see this.&lt;/p&gt;
&lt;p&gt;I would like to ask for some details:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Are all of the beacons identical? In details:
&lt;ul&gt;
&lt;li&gt;Are they running the same application?&lt;/li&gt;
&lt;li&gt;Are they&amp;nbsp;configured to advertise at the same intervals?&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Without processing of the 4-byte advertising data, and just printing out any advertisement packet you receive, do you observe the same problem?&lt;/li&gt;
&lt;li&gt;If you turn off the &amp;quot;dominant&amp;quot; beacon, does the issue disappear, or does it happen with another beacon instead?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;By the way, it is not related to this issue in particular, but please know that there is a problem with the nRF21540 FEM where TX Power is lowered when in a connection.&amp;nbsp;This issue affects NCS v2.3.0. Therefore, please consider using later version of NCS for your application with the nRF21540.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Receive Advertisements from Multiple Beacons</title><link>https://devzone.nordicsemi.com/thread/440824?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 19:27:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f79b047-18c5-4d48-bf28-542fe45bdd94</guid><dc:creator>TheoM</dc:creator><description>&lt;p&gt;I took a look at the RSSI values for my Beacon&amp;#39;s advertisements. The &amp;quot;dominant&amp;quot; Beacon&amp;#39;s advertisements had RSSI values around -40 to -30 dB on average, whereas another&amp;nbsp;Beacon that I tested had values around -80 to -70 dB, on average. This would at least partially explain my issue. Regardless, I&amp;#39;d still appreciate some help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>