<?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>Direction finding on NRF52811</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80726/direction-finding-on-nrf52811</link><description>Hi! I developed a locator and beacon pcb boards for AoA direction finding using the NRF52811 chip. The locator has 4 patch antennas and the SKY13575-639LF external antenna switch. Software configuration for the beacon (using infocenter.nordicsemi.com</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Oct 2021 08:17:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80726/direction-finding-on-nrf52811" /><item><title>RE: Direction finding on NRF52811</title><link>https://devzone.nordicsemi.com/thread/335414?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 08:17:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fa91291-aeb0-49eb-a461-298527401385</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Sergey&lt;/p&gt;
&lt;p&gt;Okay, so support for the nRF52811 in the direction finding sample is still upstream in the Zephyr project, and has not yet been added in the nRFConnect SDK (NCS). It will likely be added in the next release of NCS. The upstream version is &lt;a href="https://github.com/zephyrproject-rtos/zephyr"&gt;available here&lt;/a&gt;, where the nRF52811 board .dtsi and kconfig files to add Direction Finding support.&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><item><title>RE: Direction finding on NRF52811</title><link>https://devzone.nordicsemi.com/thread/335407?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 07:02:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:090f8c83-c11f-464c-965d-21b14deafe81</guid><dc:creator>Sergey_Ladanov</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay. I will wait a responce. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direction finding on NRF52811</title><link>https://devzone.nordicsemi.com/thread/335394?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 05:19:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb419f7b-ea59-4fb0-a70e-1e133894ae1e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been able to reproduce this on my side with an nRF52811 as well. And it seems like the nRF52811 is not supported by default as a AoA TX device. I&amp;#39;ve asked the development team what needs to be done and will get back to you when I hear from them. As of yet I don&amp;#39;t have any idea what exactly is causing it to fail.&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><item><title>RE: Direction finding on NRF52811</title><link>https://devzone.nordicsemi.com/thread/335117?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 13:13:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96275371-1ea5-4784-a965-af5ba25fb1bf</guid><dc:creator>Sergey_Ladanov</dc:creator><description>&lt;p&gt;Hi Simon&lt;/p&gt;
&lt;p&gt;These are settings of the adv_set structure:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1024x786/__key/communityserver-discussions-components-files/4/_380437043E04310440043004360435043D04380435045F00_2021_2D00_10_2D00_20_5F00_160442.png" /&gt;&lt;/p&gt;
&lt;p&gt;And these are settings of the&amp;nbsp;&lt;span&gt;cte_params structure:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1024x786/__key/communityserver-discussions-components-files/4/_380437043E04310440043004360435043D04380435045F00_2021_2D00_10_2D00_20_5F00_160830.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have not changed the main.c file from this example&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direction finding on NRF52811</title><link>https://devzone.nordicsemi.com/thread/335068?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 11:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a8753d6-6af4-439e-8586-afbbc2f11188</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Sergey&lt;/p&gt;
&lt;p&gt;Error 134 points to an unsupported value being input into a function, so it seems you have added a value that&amp;#39;s not supported in your&amp;nbsp;bt_df_set_adv_cte_tx_param() function. What is adv_set and cte_params set as in your application?&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><item><title>RE: Direction finding on NRF52811</title><link>https://devzone.nordicsemi.com/thread/334946?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 17:56:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83c53cfc-c2a7-4dac-8b0c-307740dab529</guid><dc:creator>Sergey_Ladanov</dc:creator><description>[quote userid="75734" url="~/f/nordic-q-a/80726/direction-finding-on-nrf52811/334910#334910"]What board file did you add for the nRF52811 when trying to build it, and did the compilation and build process return successfully or did you see any error codes?[/quote]
&lt;p&gt;I added the ubx_bmd360eval_nrf52811 board for building the project:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_380437043E04310440043004360435043D04380435045F00_2021_2D00_10_2D00_19_5F00_204918.png" /&gt;&lt;/p&gt;
&lt;p&gt;The content of the prj.conf file:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x240/__key/communityserver-discussions-components-files/4/_380437043E04310440043004360435043D04380435045F00_2021_2D00_10_2D00_19_5F00_205528.png" /&gt;&lt;/p&gt;
&lt;p&gt;Compilation was with no errors:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x240/__key/communityserver-discussions-components-files/4/_380437043E04310440043004360435043D04380435045F00_2021_2D00_10_2D00_19_5F00_205222.png" /&gt;&lt;/p&gt;
&lt;p&gt;I started debugging, the application get error in function&amp;nbsp;bt_df_set_adv_cte_tx_param (error code is -134):&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_380437043E04310440043004360435043D04380435045F00_2021_2D00_10_2D00_19_5F00_211831.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direction finding on NRF52811</title><link>https://devzone.nordicsemi.com/thread/334910?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 13:30:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9af46f9-1ddf-4aec-8696-06fb2260f269</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Okay, I think it&amp;#39;s safe to say it&amp;#39;s not due to the testing environment at least. Indeed, testing with one antenna should give you rather stationary values here.&lt;/p&gt;
&lt;p&gt;What board file did you add for the nRF52811 when trying to build it, and did the compilation and build process return successfully or did you see any error codes?&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><item><title>RE: Direction finding on NRF52811</title><link>https://devzone.nordicsemi.com/thread/334853?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 12:02:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41beba28-89e3-421d-a539-d6ac78c528a5</guid><dc:creator>Sergey_Ladanov</dc:creator><description>[quote userid="75734" url="~/f/nordic-q-a/80726/direction-finding-on-nrf52811/334732#334732"]&lt;p&gt;Some formulas calculating with I/Q Signals translating between polar and rectangular form etc.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Peak Amplitude A = (I²+Q²)½&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Phase Angle ϕ = tan⁻¹(Q/I)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I = A⋅cos(ϕ)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q = A⋅sin(ϕ)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Converting IQ Data to a plain signal: I is the original signal.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Euler form: A⋅eiϕ = A⋅(cos(ϕ) + i⋅sin(ϕ)) = I + Qi&lt;/strong&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I calculated phase angles and peak amplitudes by iq samples and got the following results:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1024x786/__key/communityserver-discussions-components-files/4/_380437043E04310440043004360435043D04380435045F00_2021_2D00_10_2D00_19_5F00_141936.png" /&gt;&lt;/p&gt;
&lt;p&gt;As an experiment I have tried to receive iq samples on one antenna (the beacon and locator were stationary), the results look like this:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1024x240/__key/communityserver-discussions-components-files/4/_380437043E04310440043004360435043D04380435045F00_2021_2D00_10_2D00_19_5F00_142458.png" /&gt;&lt;/p&gt;
&lt;p&gt;But it seems to me that the phase should be approximately the same under such conditions.&amp;nbsp;Am I right?&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/80726/direction-finding-on-nrf52811/334732#334732"]Can you provide some details on the environment though?[/quote]
&lt;p&gt;I tested the devices in a private house outside the city&amp;nbsp;so that there are no other signals.&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/80726/direction-finding-on-nrf52811/334732#334732"]How exactly does the transmitter &amp;quot;not work&amp;quot;? Are you able to build and run the application, and are then running into some issues or are you having issues flashing the application onto your custom board?[/quote]
&lt;p&gt;I built a transmitter example application and loaded file zephyr.hex (from /build/zephyr folder of project directory) into the NRF52811 chip. Then I tried to see some data from the transmitter using BLE Sniffer (based on NRF52840-DONGLE board), but there was nothing.&lt;/p&gt;
&lt;p&gt;Source files of this example:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/AoA_5F00_Beacon.zip"&gt;devzone.nordicsemi.com/.../AoA_5F00_Beacon.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direction finding on NRF52811</title><link>https://devzone.nordicsemi.com/thread/334732?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 06:52:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:074940ca-12c5-401b-a47c-af22955edf02</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Sorry, I also forgot to mention the most likely reason you&amp;#39;re seeing &amp;quot;random&amp;quot; values.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you handling these values at all after you receive them? Raw IQ data won&amp;#39;t make any sense by itself, as you always need to convert them to a vector. Then you can assess the vector after that. This is explained quite well here. Please check out the following formulas specifically:&lt;/p&gt;
&lt;p&gt;Some formulas calculating with I/Q Signals translating between polar and rectangular form etc.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Peak Amplitude A = (I²+Q²)½&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Phase Angle ϕ = tan⁻¹(Q/I)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I = A⋅cos(ϕ)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q = A⋅sin(ϕ)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Converting IQ Data to a plain signal: I is the original signal.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Euler form: A⋅eiϕ = A⋅(cos(ϕ) + i⋅sin(ϕ)) = I + Qi&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The antenna switching and IQ packet transmissions need to match in time. It seems you&amp;#39;ve done that correctly. I&amp;#39;m guessing the custom board is fine as you seem to be aware that the custom board lacks the external LF clock and have configured it for that. Can you provide some details on the environment though? Depending on the locator board, there will be a different &amp;quot;sweet spot&amp;quot; for it where it receives the most accurate values. I don&amp;#39;t know what this is for your locator board, but I&amp;#39;d recommend trying to move the beacon so that it is at different angles from the locator.&lt;/p&gt;
&lt;p&gt;How exactly does the transmitter &amp;quot;not work&amp;quot;? Are you able to build and run the application, and are then running into some issues or are you having issues flashing the application onto your custom board?&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><item><title>RE: Direction finding on NRF52811</title><link>https://devzone.nordicsemi.com/thread/334639?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 13:41:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48c5b102-4774-444c-b666-149216881ee9</guid><dc:creator>Sergey_Ladanov</dc:creator><description>&lt;p&gt;Thank you for reply!&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/80726/direction-finding-on-nrf52811/334516#334516"]Are you sure that the antenna switching and time between each IQ packet matches, so that it&amp;#39;s getting picked up correctly.[/quote]
&lt;p&gt;How can i check it correctly?&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/80726/direction-finding-on-nrf52811/334516#334516"]What kind of device is the advertising device, is it an nRF52833 DK for instance or a cusotm board?[/quote]
&lt;p&gt;It is a custom board on NRF52811.&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/80726/direction-finding-on-nrf52811/334516#334516"]In what kind of environment are you testing this application? If you&amp;#39;re in an office environment with a lot of BLE devices you might have some interference issues. Also, how are the boards positioned compared to one another?[/quote]
&lt;p&gt;The IQ samples given here were received with only one BLE device.&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/80726/direction-finding-on-nrf52811/334516#334516"]Also, how are the boards positioned compared to one another?[/quote]
&lt;p&gt;The boards were&amp;nbsp;&lt;span&gt;positioned as follows:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x240/__key/communityserver-discussions-components-files/4/_380437043E04310440043004360435043D04380435045F00_2021_2D00_10_2D00_18_5F00_125544.png" /&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/80726/direction-finding-on-nrf52811/334516#334516"]I would suggest checking out the direction finding example projects in the nRFConnect SDK for reference. &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/direction_finding_connectionless_rx/README.html"&gt;Locator can be found here&lt;/a&gt;, and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/direction_finding_connectionless_tx/README.html"&gt;transmitter here.&lt;/a&gt;[/quote]
&lt;p&gt;&lt;span&gt;Can I run this examples on NRF52811? I have tried to run the transmitter example by selecting ubx_bmd360eval_nrf52811 board and by using&amp;nbsp;&amp;quot;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&amp;quot; option, but it did not work&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direction finding on NRF52811</title><link>https://devzone.nordicsemi.com/thread/334516?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 08:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:531900a9-09c5-47db-8997-157248c6b475</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t spot anything looking at your code snippets, but there are a few things to look out for. First off, using only 4 antennas are not great to get very accurate data, but I agree that it should yield better results than what you get here. Are you sure that the antenna switching and time between each IQ packet matches, so that it&amp;#39;s getting picked up correctly. What kind of device is the advertising device, is it an nRF52833 DK for instance or a cusotm board?&lt;/p&gt;
&lt;p&gt;In what kind of environment are you testing this application? If you&amp;#39;re in an office environment with a lot of BLE devices you might have some interference issues. Also, how are the boards positioned compared to one another?&lt;/p&gt;
&lt;p&gt;I would suggest checking out the direction finding example projects in the nRFConnect SDK for reference. &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/direction_finding_connectionless_rx/README.html"&gt;Locator can be found here&lt;/a&gt;, and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/direction_finding_connectionless_tx/README.html"&gt;transmitter here.&lt;/a&gt;&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>