<?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>sending CTE at different frequencies</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110068/sending-cte-at-different-frequencies</link><description>Hey, 
 
 I am trying to calculate distance between 2 BLE devices with nrf5340 by myself. i would have an initiator and a reflector. so my question is how can i configure my device as a reflector and how can i send CTE at different frequencies? 
 
 Thanke</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Apr 2024 12:21:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110068/sending-cte-at-different-frequencies" /><item><title>RE: sending CTE at different frequencies</title><link>https://devzone.nordicsemi.com/thread/479207?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 12:21:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a49ba795-fbbd-4896-94a1-b5f28f2e8b17</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;d recommend trying to combine the Direction Finding connectionless TX and RX samples and see what enables TX/RX in the two different sample projects. Check out the enable_cte_rx() function in main.c of the RX sample for instance, as that should give you an idea of how to enable it as a receiver as well.&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: sending CTE at different frequencies</title><link>https://devzone.nordicsemi.com/thread/479022?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 14:09:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ec06a81-fa53-418e-a64e-8799f184a829</guid><dc:creator>Maen_Hanna</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The result is not a problem, I just want to understand it and document it in my thesis. Can you tell me how I can &lt;span&gt;configure a device as a Rx and Tx to get a &amp;quot;reflektor&amp;quot;&lt;/span&gt;? &amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

#include &amp;lt;stddef.h&amp;gt;
#include &amp;lt;errno.h&amp;gt;
#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;quot;zephyr/bluetooth/hci_types.h&amp;quot;
#include &amp;lt;zephyr/bluetooth/bluetooth.h&amp;gt;
#include &amp;lt;zephyr/bluetooth/direction.h&amp;gt;
#include &amp;quot;dk_buttons_and_leds.h&amp;quot;
#include &amp;lt;zephyr/types.h&amp;gt;
#include &amp;lt;zephyr/sys/byteorder.h&amp;gt;
#include &amp;lt;zephyr/sys/util.h&amp;gt;
#include &amp;quot;radio&amp;quot;

/*++++++++++++TX++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

/* Length of CTE in unit of 8[us] */
#define CTE_LEN (0x14U)
/* Number of CTE send in single periodic advertising train */
#define PER_ADV_EVENT_CTE_COUNT 5

static void adv_sent_cb(struct bt_le_ext_adv *adv,
			struct bt_le_ext_adv_sent_info *info);

const static struct bt_le_ext_adv_cb adv_callbacks = {
	.sent = adv_sent_cb,
};

static struct bt_le_ext_adv *adv_set;

const static struct bt_le_adv_param param =
		BT_LE_ADV_PARAM_INIT(BT_LE_ADV_OPT_EXT_ADV |
				     BT_LE_ADV_OPT_USE_NAME,
				     BT_GAP_ADV_FAST_INT_MIN_2,
				     BT_GAP_ADV_FAST_INT_MAX_2,
				     NULL);

static struct bt_le_ext_adv_start_param ext_adv_start_param = {
	.timeout = 0,
	.num_events = 0,
};

const static struct bt_le_per_adv_param per_adv_param = {
	.interval_min = BT_GAP_ADV_SLOW_INT_MIN,
	.interval_max = BT_GAP_ADV_SLOW_INT_MAX,
	.options = BT_LE_ADV_OPT_USE_TX_POWER,
};

#if defined(CONFIG_BT_DF_CTE_TX_AOD)
/* Example sequence of antenna switch patterns for antenna matrix designed by
 * Nordic. For more information about antenna switch patterns see README.rst.
 */
static uint8_t ant_patterns[] = {0x2, 0x0, 0x5, 0x6, 0x1, 0x4, 0xC, 0x9, 0xE,
				 0xD, 0x8, 0xA};
#endif /* CONFIG_BT_DF_CTE_TX_AOD */

struct bt_df_adv_cte_tx_param cte_params = { .cte_len = CTE_LEN,
					     .cte_count = PER_ADV_EVENT_CTE_COUNT,
#if defined(CONFIG_BT_DF_CTE_TX_AOD)
					     .cte_type = BT_DF_CTE_TYPE_AOD_2US,
					     .num_ant_ids = ARRAY_SIZE(ant_patterns),
					     .ant_ids = ant_patterns
#else
					     .cte_type = BT_DF_CTE_TYPE_AOA,
					     .num_ant_ids = 0,
					     .ant_ids = NULL
#endif /* CONFIG_BT_DF_CTE_TX_AOD */
};

const struct bt_df_per_adv_sync_cte_rx_param cte_rx_params = {
		.max_cte_count = 5,
#if defined(CONFIG_BT_DF_CTE_RX_AOA)
		.cte_types = BT_DF_CTE_TYPE_ALL,
		.slot_durations = 0x2,
		.num_ant_ids = ARRAY_SIZE(ant_patterns),
		.ant_ids = ant_patterns,
#else
		.cte_types = BT_DF_CTE_TYPE_AOD_1US | BT_DF_CTE_TYPE_AOD_2US,
#endif /* CONFIG_BT_DF_CTE_RX_AOA */
	};

/*++++++++++++RX++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
#define DEVICE_NAME CONFIG_BT_DEVICE_NAME
#define DEVICE_NAME_LEN (sizeof(DEVICE_NAME) - 1)
#define PEER_NAME_LEN_MAX 30
/* BT Core 5.3 specification allows controller to wait 6 periodic advertising events for
 * synchronization establishment, hence timeout must be longer than that.
 */
#define SYNC_CREATE_TIMEOUT_INTERVAL_NUM 7
/* Maximum length of advertising data represented in hexadecimal format */
#define ADV_DATA_HEX_STR_LEN_MAX (BT_GAP_ADV_MAX_EXT_ADV_DATA_LEN * 2 + 1)

static struct bt_le_per_adv_sync *sync;
static bt_addr_le_t per_addr;
static volatile bool per_adv_found;
static bool scan_enabled;
static uint8_t per_sid;
static uint32_t sync_create_timeout_ms;
static bool bCTE_receved = false;
static K_SEM_DEFINE(sem_per_adv, 0, 1);
static K_SEM_DEFINE(sem_per_sync, 0, 1);
static K_SEM_DEFINE(sem_per_sync_lost, 0, 1);


static inline uint32_t adv_interval_to_ms(uint16_t interval)
{
	return interval * 5 / 4;
}

static const char *phy2str(uint8_t phy)
{
	switch (phy) {
	case 0: return &amp;quot;No packets&amp;quot;;
	case BT_GAP_LE_PHY_1M: return &amp;quot;LE 1M&amp;quot;;
	case BT_GAP_LE_PHY_2M: return &amp;quot;LE 2M&amp;quot;;
	case BT_GAP_LE_PHY_CODED: return &amp;quot;LE Coded&amp;quot;;
	default: return &amp;quot;Unknown&amp;quot;;
	}
}

static const char *cte_type2str(uint8_t type)
{
	switch (type) {
	case BT_DF_CTE_TYPE_AOA: return &amp;quot;AOA&amp;quot;;
	case BT_DF_CTE_TYPE_AOD_1US: return &amp;quot;AOD 1 [us]&amp;quot;;
	case BT_DF_CTE_TYPE_AOD_2US: return &amp;quot;AOD 2 [us]&amp;quot;;
	case BT_DF_CTE_TYPE_NONE: return &amp;quot;&amp;quot;;
	default: return &amp;quot;Unknown&amp;quot;;
	}
}

static const char *packet_status2str(uint8_t status)
{
	switch (status) {
	case BT_DF_CTE_CRC_OK: return &amp;quot;CRC OK&amp;quot;;
	case BT_DF_CTE_CRC_ERR_CTE_BASED_TIME: return &amp;quot;CRC not OK, CTE Info OK&amp;quot;;
	case BT_DF_CTE_CRC_ERR_CTE_BASED_OTHER: return &amp;quot;CRC not OK, Sampled other way&amp;quot;;
	case BT_DF_CTE_INSUFFICIENT_RESOURCES: return &amp;quot;No resources&amp;quot;;
	default: return &amp;quot;Unknown&amp;quot;;
	}
}

static bool data_cb(struct bt_data *data, void *user_data)
{
	char *name = user_data;
	uint8_t len;

	switch (data-&amp;gt;type) {
	case BT_DATA_NAME_SHORTENED:
	case BT_DATA_NAME_COMPLETE:
		len = MIN(data-&amp;gt;data_len, PEER_NAME_LEN_MAX - 1);
		memcpy(name, data-&amp;gt;data, len);
		name[len] = &amp;#39;\0&amp;#39;;
		return false;
	default:
		return true;
	}
}

static void sync_cb(struct bt_le_per_adv_sync *sync,
		    struct bt_le_per_adv_sync_synced_info *info)
{
	char le_addr[BT_ADDR_LE_STR_LEN];

	bt_addr_le_to_str(info-&amp;gt;addr, le_addr, sizeof(le_addr));

	printk(&amp;quot;PER_ADV_SYNC[%u]: [DEVICE]: %s synced, &amp;quot;
	       &amp;quot;Interval 0x%04x (%u ms), PHY %s\n&amp;quot;,
	       bt_le_per_adv_sync_get_index(sync), le_addr, info-&amp;gt;interval,
	       adv_interval_to_ms(info-&amp;gt;interval), phy2str(info-&amp;gt;phy));

	k_sem_give(&amp;amp;sem_per_sync);
}

static void term_cb(struct bt_le_per_adv_sync *sync,
		    const struct bt_le_per_adv_sync_term_info *info)
{
	char le_addr[BT_ADDR_LE_STR_LEN];

	bt_addr_le_to_str(info-&amp;gt;addr, le_addr, sizeof(le_addr));

	printk(&amp;quot;PER_ADV_SYNC[%u]: [DEVICE]: %s sync terminated\n&amp;quot;,
	       bt_le_per_adv_sync_get_index(sync), le_addr);

	k_sem_give(&amp;amp;sem_per_sync_lost);
}

static void recv_cb(struct bt_le_per_adv_sync *sync,
		    const struct bt_le_per_adv_sync_recv_info *info,
		    struct net_buf_simple *buf)
{
	static char data_str[ADV_DATA_HEX_STR_LEN_MAX];
	char le_addr[BT_ADDR_LE_STR_LEN];

	bt_addr_le_to_str(info-&amp;gt;addr, le_addr, sizeof(le_addr));
	bin2hex(buf-&amp;gt;data, buf-&amp;gt;len, data_str, sizeof(data_str));

	printk(&amp;quot;PER_ADV_SYNC[%u]: [DEVICE]: %s, tx_power %i, &amp;quot;
	       &amp;quot;RSSI %i, CTE %s, data length %u, data: %s\n&amp;quot;,
	       bt_le_per_adv_sync_get_index(sync), le_addr, info-&amp;gt;tx_power,
	       info-&amp;gt;rssi, cte_type2str(info-&amp;gt;cte_type), buf-&amp;gt;len, data_str);
}

static void adv_sent_cb(struct bt_le_ext_adv *adv,
			struct bt_le_ext_adv_sent_info *info)
{
	printk(&amp;quot;Advertiser[%d] %p sent %d\n&amp;quot;, bt_le_ext_adv_get_index(adv),
	       adv, info-&amp;gt;num_sent);
}
static void scan_disable(void)
{
	int err;

	printk(&amp;quot;Scan disable...&amp;quot;);
	err = bt_le_scan_stop();
	if (err) {
		printk(&amp;quot;failed (err %d)\n&amp;quot;, err);
		return;
	}
	printk(&amp;quot;Success.\n&amp;quot;);

	scan_enabled = false;
}


static int delete_sync(void)
{
	int err;

	printk(&amp;quot;Deleting Periodic Advertising Sync...&amp;quot;);
	err = bt_le_per_adv_sync_delete(sync);
	if (err) {
		printk(&amp;quot;failed (err %d)\n&amp;quot;, err);
		return err;
	}
	printk(&amp;quot;success\n&amp;quot;);

	return 0;
}

static void cte_recv_cb(struct bt_le_per_adv_sync *sync,
			struct bt_df_per_adv_sync_iq_samples_report const *report)
{ 
	int err;
	char addr_s[BT_ADDR_LE_STR_LEN];
	struct bt_le_oob oob_local;

	printk(&amp;quot;CTE[%u]: samples count %d, cte type %s, slot durations: %u [us], &amp;quot;
	       &amp;quot;packet status %s, RSSI %i\n&amp;quot;,
	       bt_le_per_adv_sync_get_index(sync), report-&amp;gt;sample_count,
	       cte_type2str(report-&amp;gt;cte_type), report-&amp;gt;slot_durations,
	       packet_status2str(report-&amp;gt;packet_status), report-&amp;gt;rssi);

		for (uint8_t idx = 0; idx &amp;lt; report-&amp;gt;sample_count; idx++) 
		{
			if (report-&amp;gt;sample_type == BT_DF_IQ_SAMPLE_8_BITS_INT) 
			{
				
				printk(&amp;quot; idx:%d: I:%d  Q:%d Ch_idx:%d\n&amp;quot;, idx, report-&amp;gt;sample[idx].i,
				       report-&amp;gt;sample[idx].q, report-&amp;gt;chan_idx);
				
			} 
		}
	
	printk(&amp;quot;Advertising set create...&amp;quot;);
	err = bt_le_ext_adv_create(&amp;amp;param, &amp;amp;adv_callbacks, &amp;amp;adv_set);
	if (err) {
		printk(&amp;quot;failed bt_le_ext_adv_create (err %d)\n&amp;quot;, err);
	}
	printk(&amp;quot;success\n&amp;quot;);

	printk(&amp;quot;Update CTE params...&amp;quot;);
	err = bt_df_set_adv_cte_tx_param(adv_set, &amp;amp;cte_params);
	if (err) {
		printk(&amp;quot;failed bt_df_set_adv_cte_tx_param (err %d)\n&amp;quot;, err);
	}
	printk(&amp;quot;success\n&amp;quot;);

	printk(&amp;quot;Periodic advertising params set...&amp;quot;);
	err = bt_le_per_adv_set_param(adv_set, &amp;amp;per_adv_param);
	if (err) {
		printk(&amp;quot;failed bt_le_per_adv_set_param (err %d)\n&amp;quot;, err);
	}
	printk(&amp;quot;success\n&amp;quot;);

	printk(&amp;quot;Enable CTE...&amp;quot;);
	err = bt_df_adv_cte_tx_enable(adv_set);
	if (err) {
		printk(&amp;quot;failed bt_df_adv_cte_tx_enable (err %d)\n&amp;quot;, err);
	}
	printk(&amp;quot;success\n&amp;quot;);

	printk(&amp;quot;Periodic advertising enable...&amp;quot;);
	err = bt_le_per_adv_start(adv_set);
	if (err) {
		printk(&amp;quot;failed bt_le_per_adv_start (err %d)\n&amp;quot;, err);
	}
	printk(&amp;quot;success\n&amp;quot;);

	printk(&amp;quot;Extended advertising enable...&amp;quot;);
	err = bt_le_ext_adv_start(adv_set, &amp;amp;ext_adv_start_param);
	if (err) {
		printk(&amp;quot;failed bt_le_ext_adv_start (err %d)\n&amp;quot;, err);
	}
	printk(&amp;quot;success\n&amp;quot;);

	bt_le_ext_adv_oob_get_local(adv_set, &amp;amp;oob_local);
	bt_addr_le_to_str(&amp;amp;oob_local.addr, addr_s, sizeof(addr_s));

	printk(&amp;quot;Started extended advertising as %s\n&amp;quot;, addr_s);
}


static struct bt_le_per_adv_sync_cb sync_callbacks = {
	.synced = sync_cb,
	.term = term_cb,
	.recv = recv_cb,
	.cte_report_cb = cte_recv_cb,
};

static void scan_recv(const struct bt_le_scan_recv_info *info,
		      struct net_buf_simple *buf)
{
	char le_addr[BT_ADDR_LE_STR_LEN];
	char name[PEER_NAME_LEN_MAX];

	(void)memset(name, 0, sizeof(name));

	bt_data_parse(buf, data_cb, name);

	bt_addr_le_to_str(info-&amp;gt;addr, le_addr, sizeof(le_addr));

	printk(&amp;quot;[DEVICE]: %s, AD evt type %u, Tx Pwr: %i, RSSI %i %s C:%u S:%u &amp;quot;
	       &amp;quot;D:%u SR:%u E:%u Prim: %s, Secn: %s, Interval: 0x%04x (%u ms), &amp;quot;
	       &amp;quot;SID: %u\n&amp;quot;,
	       le_addr, info-&amp;gt;adv_type, info-&amp;gt;tx_power, info-&amp;gt;rssi, name,
	       (info-&amp;gt;adv_props &amp;amp; BT_GAP_ADV_PROP_CONNECTABLE) != 0,
	       (info-&amp;gt;adv_props &amp;amp; BT_GAP_ADV_PROP_SCANNABLE) != 0,
	       (info-&amp;gt;adv_props &amp;amp; BT_GAP_ADV_PROP_DIRECTED) != 0,
	       (info-&amp;gt;adv_props &amp;amp; BT_GAP_ADV_PROP_SCAN_RESPONSE) != 0,
	       (info-&amp;gt;adv_props &amp;amp; BT_GAP_ADV_PROP_EXT_ADV) != 0, phy2str(info-&amp;gt;primary_phy),
	       phy2str(info-&amp;gt;secondary_phy), info-&amp;gt;interval, adv_interval_to_ms(info-&amp;gt;interval),
	       info-&amp;gt;sid);

	if (!per_adv_found &amp;amp;&amp;amp; info-&amp;gt;interval) {
		sync_create_timeout_ms =
			adv_interval_to_ms(info-&amp;gt;interval) * SYNC_CREATE_TIMEOUT_INTERVAL_NUM;
		per_adv_found = true;
		per_sid = info-&amp;gt;sid;
		bt_addr_le_copy(&amp;amp;per_addr, info-&amp;gt;addr);

		k_sem_give(&amp;amp;sem_per_adv);
	}
}

static struct bt_le_scan_cb scan_callbacks = {
	.recv = scan_recv,
};

static void create_sync(void)
{
	struct bt_le_per_adv_sync_param sync_create_param;
	int err;

	printk(&amp;quot;Creating Periodic Advertising Sync...&amp;quot;);
	bt_addr_le_copy(&amp;amp;sync_create_param.addr, &amp;amp;per_addr);
	sync_create_param.options = 0;
	sync_create_param.sid = per_sid;
	sync_create_param.skip = 0;
	sync_create_param.timeout = 0xa;
	err = bt_le_per_adv_sync_create(&amp;amp;sync_create_param, &amp;amp;sync);
	if (err) {
		printk(&amp;quot;failed (err %d)\n&amp;quot;, err);
		return;
	}
	printk(&amp;quot;success.\n&amp;quot;);
}


static void enable_cte_rx(void)
{
	int err;

	printk(&amp;quot;Enable receiving of CTE...\n&amp;quot;);
	err = bt_df_per_adv_sync_cte_rx_enable(sync, &amp;amp;cte_rx_params);
	if (err) {
		printk(&amp;quot;failed (err %d)\n&amp;quot;, err);
		return;
	}
	printk(&amp;quot;success. CTE receive enabled.\n&amp;quot;);
}

static int scan_init(void)
{
	printk(&amp;quot;Scan callbacks register...&amp;quot;);
	bt_le_scan_cb_register(&amp;amp;scan_callbacks);
	printk(&amp;quot;success.\n&amp;quot;);

	printk(&amp;quot;Periodic Advertising callbacks register...&amp;quot;);
	bt_le_per_adv_sync_cb_register(&amp;amp;sync_callbacks);
	printk(&amp;quot;success.\n&amp;quot;);

	return 0;
}

static int scan_enable(void)
{
	struct bt_le_scan_param param = {
		.type = BT_LE_SCAN_TYPE_ACTIVE,
		.options = BT_LE_SCAN_OPT_FILTER_DUPLICATE,
		.interval = BT_GAP_SCAN_FAST_INTERVAL,
		.window = BT_GAP_SCAN_FAST_WINDOW,
		.timeout = 0U,
	};
	int err;

	if (!scan_enabled) {
		printk(&amp;quot;Start scanning...&amp;quot;);
		err = bt_le_scan_start(&amp;amp;param, NULL);
		if (err) {
			printk(&amp;quot;failed (err %d)\n&amp;quot;, err);
			return err;
		}
		printk(&amp;quot;success\n&amp;quot;);
		scan_enabled = true;
	}

	return 0;
}

int main(void)
{
	int err;
	char addr_s[BT_ADDR_LE_STR_LEN];
	struct bt_le_oob oob_local;
	printk(&amp;quot;Starting Connectionless Locator Demo\n&amp;quot;);

	printk(&amp;quot;Bluetooth initialization...&amp;quot;);
	err = bt_enable(NULL);
	if (err) {
		printk(&amp;quot;failed (err %d)\n&amp;quot;, err);
	}
	printk(&amp;quot;success\n&amp;quot;);

	scan_init();

	scan_enabled = false;

	while (bCTE_receved == false) 
	{
		per_adv_found = false;
		scan_enable();

		printk(&amp;quot;Waiting for periodic advertising...\n&amp;quot;);
		err = k_sem_take(&amp;amp;sem_per_adv, K_FOREVER);
		if (err) {
			printk(&amp;quot;failed (err %d)\n&amp;quot;, err);
			return 0;
		}
		printk(&amp;quot;success. Found periodic advertising.\n&amp;quot;);

		create_sync();

		printk(&amp;quot;Waiting for periodic sync...\n&amp;quot;);
		err = k_sem_take(&amp;amp;sem_per_sync, K_MSEC(sync_create_timeout_ms));
		if (err) {
			printk(&amp;quot;failed (err %d)\n&amp;quot;, err);
			err = delete_sync();
			if (err) {
				return 0;
			}
			continue;
		}
		printk(&amp;quot;success. Periodic sync established.\n&amp;quot;);

		enable_cte_rx();
		/* Disable scan to cleanup output */
		scan_disable();

		printk(&amp;quot;Waiting for periodic sync lost...\n&amp;quot;);
		err = k_sem_take(&amp;amp;sem_per_sync_lost, K_FOREVER);
		if (err) {
			printk(&amp;quot;failed (err %d)\n&amp;quot;, err);
			return 0;
		}
		printk(&amp;quot;Periodic sync lost.\n&amp;quot;);
	}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;here is my code. i have copy the Code for the example &amp;quot;Direct finding connenctionless tx&amp;quot; and but it in the&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;cte_recv_cb but that don&amp;#39;t work so what i have to do to switch between Rx and Tx on the same device?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending CTE at different frequencies</title><link>https://devzone.nordicsemi.com/thread/478907?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 09:30:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d8078bb-b6d6-4e8a-8cf8-ad44c19c08ac</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I asked our expert on channel sounding/distance measurement (Carsten which was also the advisor on one of the papers you linked to), and he does not think this will be very viable on an nRF5340 I&amp;#39;m afraid. What you&amp;#39;re asking for is not public I&amp;#39;m afraid, so I can&amp;#39;t help you. It should be possible to do MCPD by sending CTE packets, but the results will not be very good either. Sorry that I&amp;#39;m being the bearer of bad news.&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: sending CTE at different frequencies</title><link>https://devzone.nordicsemi.com/thread/478792?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 13:21:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ca2399d-3e3f-46e5-908a-cd541fe4fc55</guid><dc:creator>Maen_Hanna</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, I don&amp;#39;t want any information about the Bluetooth channel Sounding. I only want to know how to send CTE on different carrier frequencies. I can see the channel index of the received CTE packet. I plot the I/Q data. The number of samples is 45, so my question is, does this mean that I can send a CTE request and get a CTE response from my TX with 45 I/Q samples? I am using the connectionless direct finding example.&amp;nbsp; How can I define my device as a reflector?&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/pastedimage1713175318937v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending CTE at different frequencies</title><link>https://devzone.nordicsemi.com/thread/478671?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 08:22:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1ff9c4c-4a3d-4232-bab1-d2f91070d055</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, so what you describe is basically &lt;a href="https://www.bluetooth.com/blog/bluetooth-channel-sounding-a-step-towards-10-cm-ranging-accuracy-for-secure-access-digital-key-and-proximity-services/"&gt;Bluetooth channel sounding&lt;/a&gt;, which will not be supported on the nRF5340 I&amp;#39;m afraid, so we will not be able to provide any support for this, and you&amp;#39;ll unfortunately be on your own if you want to implement something like this on an nRF5340.&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: sending CTE at different frequencies</title><link>https://devzone.nordicsemi.com/thread/478660?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 06:52:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4d21fc5-09d5-4cd3-a5ce-5fafc9342cf8</guid><dc:creator>Maen_Hanna</dc:creator><description>&lt;p&gt;Perfect thanke you&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending CTE at different frequencies</title><link>https://devzone.nordicsemi.com/thread/478455?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 07:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55844471-11a6-4924-a84b-00e15ef08f7c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Noted, I will let you know if I hear anything from the devs internally, but I wouldn&amp;#39;t hold my breath if I were you, as I haven&amp;#39;t found anything on this myself.&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: sending CTE at different frequencies</title><link>https://devzone.nordicsemi.com/thread/478230?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 08:46:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14ea6c52-42ab-42d5-8222-469913b4d7b3</guid><dc:creator>Maen_Hanna</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;my ideas and work builds on the following work&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.researchgate.net/publication/332655909_A_high-accuracy_phase-based_ranging_solution_with_Bluetooth_Low_Energy_BLE"&gt;(PDF) A high-accuracy phase-based ranging solution with Bluetooth Low Energy (BLE) (researchgate.net)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="http://essay.utwente.nl/87385/1/Toapanta_BA_%20EEMCS.pdf"&gt;http://essay.utwente.nl/87385/1/Toapanta_BA_%20EEMCS.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://ntnuopen.ntnu.no/ntnu-xmlui/bitstream/handle/11250/3087620/no.ntnu%3Ainspera%3A143674355%3A140115629.pdf?sequence=1&amp;amp;isAllowed=y"&gt;https://ntnuopen.ntnu.no/ntnu-xmlui/bitstream/handle/11250/3087620/no.ntnu%3Ainspera%3A143674355%3A140115629.pdf?sequence=1&amp;amp;isAllowed=y&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending CTE at different frequencies</title><link>https://devzone.nordicsemi.com/thread/478217?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 08:10:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0de52b2e-dd7f-4e53-a3c8-43f8df5c788c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t recall reading anywhere about using CTEs at different frequencies to determine distance I&amp;#39;m afraid, and I don&amp;#39;t think this is a solution that we offer, so I&amp;#39;m afraid you might be on your own here. I will ask the developers working on Direction Finding/Distance measurement internally if they have any experience with this and get back to you if I hear anything.&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: sending CTE at different frequencies</title><link>https://devzone.nordicsemi.com/thread/477990?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 09:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad0ca622-b214-4485-bcc5-be4affeb484b</guid><dc:creator>Maen_Hanna</dc:creator><description>&lt;p&gt;Hi Simon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for answering. i am working on my master thesis and i want to implement the distance measurement using MCPD with my self. i have read many paperes about this topic and i have understanding that i can measure distance between 2 BLE devices using CTE with different frequency. so i know how i can measure the phase and amplitude from the I/Q samples. My question now is how can I configure the device as a reflector to send the same CTE tone but with a different frequency.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending CTE at different frequencies</title><link>https://devzone.nordicsemi.com/thread/477984?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 09:09:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0988fb8-f8a2-4c0e-bd9c-93fe32ad4e40</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;For distance measurement I would rather suggest you check out the Nordic Distance Toolkit and the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/nrf_dm/README.html"&gt;Distance Measurement sample&lt;/a&gt; instead of Direction Finding, as it won&amp;#39;t require an antenna array on one of the sides. Or is there a specific reason you&amp;#39;d like to do Direction Finding with AOA/AOD?&amp;nbsp;&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>