<?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>Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104275/getting-started-with-bluetooth-direction-finding</link><description>Hello, i have several questions regarding bluetooth direction finding . My ultimate goal is to have a Real Time Location System with 6 locators (AoA) and 30 trackers . 
 For now, i want to: 
 
 be able to calculate an angle of arrival using nordic&amp;#39;s example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Feb 2024 11:04:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104275/getting-started-with-bluetooth-direction-finding" /><item><title>RE: Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/thread/471251?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 11:04:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d41ab04c-b465-4f9a-a1cb-aa2e5faef15f</guid><dc:creator>Andre N</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1709114676529v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Also the signal during the reference period looks like an amplitude modulated signal and i cant see a clean phase.&lt;br /&gt;Is this due to undersampling or something ?&lt;br /&gt;i dont really follow what is going on with the demodulation.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1709117031326v2.png" /&gt;(this is a CTE without antenna switching)&lt;/p&gt;
&lt;p&gt;also what frequency&amp;nbsp; should i expect for the signal?&lt;br /&gt;Here i have 16 samples per period.&lt;br /&gt;The samples are taken 2us apart.&lt;br /&gt;So i have a 32us period and 31.25kHz frequency&lt;/p&gt;
&lt;p&gt;My config:&lt;br /&gt;160us CTE signal with 1us slot duration&lt;br /&gt;(= 4us guard perdiod + 8us ref period + (74 x 2 x 1us)&amp;nbsp; sampling period)&lt;br /&gt;which gives me 8 + 74 samples&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1709119778622v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;There is a company called &lt;a href="https://navigine.com/blog/using-angle-of-arrival-for-direction-finding-with-bluetooth/"&gt;Navigine&lt;/a&gt; that published some opensource code for AoA and they use Minew hardware that is surely based on Nordic&amp;#39;s &lt;span class="LEwnzc Sqrs4e"&gt;&lt;/span&gt;&lt;span&gt;&lt;em&gt;PCA20054&lt;/em&gt;&lt;/span&gt; antenna board.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;When you look at their signal it looks different from mine.&lt;br /&gt;On their reference period they have a normal signal that looks unmodulated and their sampling period looks like it is modulated in amplitude.&lt;br /&gt;Their reference period looks like my sampling period and their sampling period looks like my reference period.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1709120443032v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;They also mention that they use&amp;nbsp; channels 37 38 and 39 which are the BLE advertising channels.&lt;br /&gt;But as you can see on my last reply, i get the signals on BLE&amp;nbsp; data channels like 0, 17, 28, 29, 31, 35, etc&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/thread/471013?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 12:45:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ab0ddb6-7e6e-4241-807e-390c3f11786c</guid><dc:creator>Andre N</dc:creator><description>&lt;p&gt;I used the zephyr connectionless locator example&lt;br /&gt;&lt;br /&gt;I changed the &lt;strong&gt;antenna switch pattern&lt;/strong&gt; and the &lt;strong&gt;cte_recv_cb&lt;/strong&gt; function to print the data the way i wanted.&lt;br /&gt;I changed the default&lt;strong&gt; slot_duration&lt;/strong&gt; from 2us to 1us and that is it&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void cte_recv_cb(struct bt_le_per_adv_sync *sync,
			struct bt_df_per_adv_sync_iq_samples_report const *report)
{
	printk(&amp;quot;CTE, samples, %d, channel_idx, %d, antennas, %d, &amp;quot;, report-&amp;gt;sample_count, report-&amp;gt;chan_idx, sizeof(ant_patterns)/sizeof(ant_patterns[0]));
	for (int idx = 0; idx &amp;lt; report-&amp;gt;sample_count; idx++) {
        printk(&amp;quot;%d, %d, &amp;quot;, report-&amp;gt;sample[idx].i, report-&amp;gt;sample[idx].q);
    }
	printk(&amp;quot;\n&amp;quot;);

    k_msleep(10);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define ANT_1  0x5
#define ANT_2  0x6
#define ANT_3  0x4
#define ANT_4  0x9
#define ANT_5  0xA
#define ANT_6  0x8
#define ANT_7  0xD
#define ANT_8  0xE
#define ANT_9  0xC
#define ANT_10 0x1
#define ANT_11 0x2
#define ANT_12 0x0
static const uint8_t ant_patterns[] = { ANT_7, ANT_8, ANT_9 };&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I noticed this parameter .max_cte_count = 5. (i did not touch it &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/bluetooth/direction_finding_connectionless_rx/src/main.c"&gt;here is the original sample code&lt;/a&gt;)&lt;br /&gt;It determines the number of CTEs i get per batch (but they are all the same)&lt;br /&gt;I dont understand the purpose though&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1709037309303v1.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;UPDATE:&lt;br /&gt;apparently i can set&amp;nbsp;&lt;strong&gt;max_cte_count&lt;/strong&gt; to 0 to receive CTE continuously and if i do so, i still get 5 CTEs&lt;br /&gt;so i went to the beacon code and i found this parameter&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;/* Number of CTE send in single periodic advertising train */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#define&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;PER_ADV_EVENT_CTE_COUNT&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;5&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;so my beacon sends 5 CTEs in a row&lt;br /&gt; for some reason the 1st one is sent on a random channel and the other on channel 0&lt;br /&gt;for some reason (unless i messed up my code) the signals are exactly the same&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/thread/471004?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 12:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2a8aeea-9943-426b-983a-6cf83f1fe4e8</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;Not sure what this is, have you changed anything else in the sample than the number of antennas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/thread/470982?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 11:23:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51cd9010-270d-4dd5-b028-b0bb2fd54460</guid><dc:creator>Andre N</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;sample count: 82, channel_idx: 29, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 17, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 28, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 31, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 35, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3
sample count: 82, channel_idx: 0, number_of_antennas: 3&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Im looking at the signal info and i noticed a weird behaviour.&lt;br /&gt;&lt;br /&gt;Every second i get a batch of 5 CTE signals. (probably because in the code i have .max_cte_count = 5)&lt;br /&gt;The first one comes from a random channel and the other ones always come from channel 0.&lt;br /&gt;&lt;br /&gt;Is this normal?&lt;br /&gt;Should i discard the 1st signal? or the other 4? or none?&lt;br /&gt;&lt;br /&gt;Update: the 5 signals look the same&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/thread/469765?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2024 11:29:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2732f67-c4d9-4a3d-97f9-0a18215d1594</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;Also note that the further away from the antenna you are, the smaller the phase shift will be. This as you are measuring the difference in length from the transmitter to the different patches. This will basically set the limit where you can reliably measure the angle. I suggest testing with static transmitter at different distances as that should give you a clearer idea on how the angles/distance impacts the measured phase changes. When you have this under control, then you can start looking at moving objects.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/thread/469741?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2024 09:57:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ea6f3fb-6aa1-4d2b-9a72-0b70490ff67f</guid><dc:creator>Andre N</dc:creator><description>&lt;p&gt;OK thx&lt;br /&gt;i wasnt using the reference period at all.&lt;br /&gt;i was switching between 3 antennas (ANT7 ANT8 ANT9) and using ANT8 as a phase reference.&lt;br /&gt;&lt;br /&gt;i will try what you suggested and see if i get better results&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/thread/469565?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 14:21:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50774920-d26d-4d5f-a1a9-cab4bd683d2e</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;I am not sure I understand what you are trying to plot here.&lt;/p&gt;
&lt;p&gt;If you want to look at the samples you should do that with time on the X-axis and not the sample number, difficult to say what you are showing. This as the reference period has a different sampling interval than the rest of the samples.&lt;/p&gt;
&lt;p&gt;You would then use the reference period samples to predict the phase of the signal on the reference antenna for the entire sampling window. When you then start sampling the different antennas, you compare them to this predicted phase. For the samples with the reference antenna, the error should be 0. If it is not then the prediction is not good enough. The &amp;quot;error&amp;quot; on the other antennas will be the phase shift. If you do this then the phase will be around 0 so any phase shifts will be significantly easier to see than what seems to be in your graphs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/thread/468579?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2024 12:01:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76b37bff-4e6b-4da9-9021-fa33e5d8c167</guid><dc:creator>Andre N</dc:creator><description>&lt;p&gt;Hi again&lt;br /&gt;&lt;br /&gt;I&amp;#39;m reviving this ticket because i am still stuck&lt;br /&gt;Here is what i did.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1707825172453v5.png" alt=" " /&gt;&lt;br /&gt;I configured the sample code to work with a 3 antenna switch pattern.&lt;br /&gt;As you can see the 1st signal &amp;#39;looks&amp;#39; good. We can see the Ref period and some irregularities from antenna switching on the signal.&lt;br /&gt;&lt;br /&gt;Then i split the samples from each antenna&amp;nbsp; (2nd row of plots)&lt;br /&gt;&lt;br /&gt;I calculate the phase, and adjust to avoid having +/- pi jumps (3rd row of plots)&lt;br /&gt;&lt;br /&gt;I interpolate to take into account the time shift caused by the antenna switching (4th row of plots)&lt;/p&gt;
&lt;p&gt;But when i plot the phase difference, i get different results event if my beacon doesn&amp;#39;t move.&lt;br /&gt;Here you can see the phases of ANT7 ANT8 and ANT9 in two different CTE signals after measuring the position of a static beacon&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1707825444544v7.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1707825438869v6.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/thread/459172?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 12:26:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6a0ab0e-4fee-43e8-b9f6-751420515580</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;So how does the measured phase shift align with the modeled phase shift? &lt;/p&gt;
&lt;p&gt;It&amp;#39;s impossible to comment on AoA measurement data if you don&amp;#39;t have all the information about how they are taken. The better approach is making a simulation as you can then assess the validity of your measurements.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/thread/459133?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 10:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20ad8cf1-08ac-4649-bbaa-83177f10310a</guid><dc:creator>Andre N</dc:creator><description>&lt;p&gt;&lt;br /&gt;Right now i have my antenna matrix sitting on a table and i am moving around it with my beacon devkit.&lt;br /&gt;i get my Q/I samples;&lt;br /&gt;i separate those samples according&amp;nbsp;my antenna switching pattern;&lt;br /&gt;i calculate the phase with the formula &amp;#39;phase = atan2(Q, I)&amp;#39;;&lt;br /&gt;and finnaly, i calculate the difference between both waves and i&amp;nbsp;display it on these graphs&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;when i stand right in front of the antennas i get 0 rad phase difference as you can see in this graph which is logical since the signal reaches both antennas at the same time.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1701857538580v1.png_2D00_640x480.png" alt=" " /&gt;&lt;br /&gt;in theory, if i am &amp;#39;aligned&amp;#39; with the antennas, i should get +3.14 or -3.14 phase difference since the waves received by each antenna are in phase opposition&lt;br /&gt;&lt;br /&gt;however, when i move around, i cant get past 1rad phase difference (as shown in the other graph)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/thread/459112?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 08:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b7db07a-e3cc-4594-a670-7a83c9859e08</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;That depends on what you are measuring. If you have one transmitter in a static position compared to the AoA receiver and use 2 antennas then the phase difference between the 2 antennas should be constant forever. So the flatter the line, the better. &lt;/p&gt;
&lt;p&gt;When you measure this phase shift between multiple antennas, then you can calculate the angle of the incoming signal.&lt;/p&gt;
&lt;p&gt;If the transmitter is moving relative to the AoA receiver antenna, then the phase shift can change with the movement, it will then depend how the movement is in relation to both antennas.&lt;/p&gt;
&lt;p&gt;If you set up an excel sheet where you calculate the distance from the transmitter to each of the AoA receiver antenna, then you can calculate the resulting phase for each of the antennas and you can model how the phase will change when you move the transmitter around.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/thread/458965?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 12:59:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8236715-a348-460a-bb04-19a52c92943b</guid><dc:creator>Andre N</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1701780631914v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Hi&lt;br /&gt;I got some IQ samples switching between two adjacent antennas&lt;br /&gt;I then calculated the phase for each antenna&lt;br /&gt;&lt;br /&gt;In the image above,&lt;/p&gt;
&lt;p&gt;the blue line represents the phase of the first antenna&lt;br /&gt;the orange line represents the phase of the second antenna&lt;br /&gt;the green line represents the phase difference between the two antennas&lt;br /&gt;the red line is the average phase difference of throughout the whole signal&lt;br /&gt;&lt;br /&gt;my problem is that the phase difference is always below 1. Is this normal?&lt;br /&gt;because&amp;nbsp;in theory it should range from -pi to +pi right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/thread/450075?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2023 13:11:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c7aa040-2d7c-48b5-afa0-537f831f73f1</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;Hi, plotting IQ data like this will never provide any information about the incoming signal. You need to transform the data into phase/amplitude and look at the phase data. And do remember that the sampling interval for the reference period is much lower than for the antenna switch period so printing it like above will look incorrect again.&lt;/p&gt;
&lt;p&gt;This has been discussed in quite a few cases earlier so I recommend searching and reading up on these.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/thread/450001?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2023 09:40:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4800bd8d-3e60-4512-b008-a2bba00bd1c1</guid><dc:creator>Andre N</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;Thanks for your answer and sorry for the late reply&lt;br /&gt;I&amp;#39;m taking a look into your algorithm.&lt;br /&gt;&lt;br /&gt;This is a plot of the 45 samples of the CTE (including the reference period)&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1697102449043v2.png_2D00_640x480.png" alt=" " /&gt;&lt;br /&gt;It looks &amp;#39;pretty&amp;#39; apart from the reference period but i wasn&amp;#39;t expecting to see a smooth&amp;nbsp;sine function when i plot the signal received by the 12 antennas. Am I not switching&amp;nbsp;antennas or is this normal ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with Bluetooth Direction Finding</title><link>https://devzone.nordicsemi.com/thread/448504?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2023 12:09:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecbc70ae-f542-47b9-8f96-fb13ccd2b2cc</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sure thing.&lt;/p&gt;
&lt;p&gt;Let me start off by pointing you to the &lt;a href="https://infocenter.nordicsemi.com/pdf/nwp_036.pdf"&gt;white paper we have available on direction finding&lt;/a&gt;. Off course I&amp;#39;ll try to answer your questions here, but keep in mind that the whitepaper might be able to answer a lot on its own. It&amp;#39;s definitely worth checking out.&lt;/p&gt;
[quote user=""]be able to &lt;strong&gt;calculate an angle of arrival&lt;/strong&gt; using nordic&amp;#39;s example code[/quote]
&lt;p&gt;Sure thing! The white paper gives you the formulas you would need to use, and I would recommend you to have a look at our samples for this (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/samples/bluetooth/direction_finding_connectionless_tx/README.html"&gt;here&lt;/a&gt; and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/samples/bluetooth/direction_finding_connectionless_rx/README.html"&gt;here&lt;/a&gt;).&amp;nbsp;&lt;/p&gt;
[quote user=""]be able to &lt;strong&gt;receive CTE signals from 2 trackers&lt;/strong&gt; on the same locator[/quote]
&lt;p&gt;Yeah, that might require a bit more work, but is possible.&lt;/p&gt;
[quote user=""]&lt;strong&gt;implement&lt;/strong&gt; a &lt;strong&gt;CTE&lt;/strong&gt; beacon on my company&amp;#39;s products whose firmware is based &lt;strong&gt;on nRF5 sdk v17&lt;/strong&gt;[/quote]
&lt;p&gt;That however is close to impossible. We have no support for direction finding in our nRF5 SDK. I would recommend you then to move on the nRF Connect SDK if you want this feature. Either way, moving to NCS might be a smart route, &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt;as there might not be any more updates coming to nRF 5 SDK&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;1 - What is the &lt;strong&gt;difference between Central/Peripheral and Locator/Beacon&lt;/strong&gt; example codes ? Which would be the best for my use case?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Whether or not a BLE connection is used. What is best for your use-case depends on what it is. If the two devices are already connected and communicating for instance taking advantage of that already existing connection&amp;nbsp;would be an idea.&lt;/p&gt;
[quote user=""]&lt;p&gt;2 - What is the link between the antennas and the Q/I samples? &lt;strong&gt;How does antenna switching work&lt;/strong&gt;?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="max-width:100%;overflow:auto;max-height:none;"&gt;&lt;div&gt;&lt;a href="#"&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;This is described in the whitepaper. By switching from one antenna to the other, we are getting another sample. It&amp;#39;s the difference between multiple samples that we need, and in addition to that there is noise and multi-path issues that will affect the result, which requires us to have even more samples (and smart algorithms) to counteract.&lt;/p&gt;
[quote user=""]But the result I get is random values roughly between -0.05 and 0.05.&lt;br /&gt;[/quote]
&lt;p&gt;What sample are you using to get this? Could you give me a plot of the entire CTE? If you for instance just look at some numbers from the reference period it might not make much sense.&lt;/p&gt;
[quote user=""]3 - How can I &lt;strong&gt;receive CTE signals from multiple trackers on one locator&lt;/strong&gt;?&lt;br /&gt;[/quote]
&lt;p&gt;Slightly more work involved with this.&amp;nbsp;You would have to synchronize with multiple devices that do TX periodic advertising. Then&amp;nbsp;you&amp;nbsp;can distinguish provided IQ reports by Sync_Handle&lt;/p&gt;
[quote user=""]4 - Lastly I want to know if it is possible to &lt;strong&gt;implement a beacon in nRF5 sdk&lt;/strong&gt;. And is it possible to do this while using the &lt;strong&gt;softdevice&lt;/strong&gt;.&lt;br /&gt;[/quote]
&lt;p&gt;It unfortunately isn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;Another thing I assume you are wondering about even though you haven&amp;#39;t asked, is if we are providing an angle algorithm. We are not, unfortunately. Making a good angle algorithm also requires a bit of work, simply using the equations might not be enough. You can for instance have a look at &lt;a href="https://en.wikipedia.org/wiki/MUSIC_(algorithm)"&gt;this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>