<?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>CTEInfo receive with antenna switch</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117827/cteinfo-receive-with-antenna-switch</link><description>I am developing AoA for nRF52833. 
 Please tell me about antenna switching. 
 Setting: 
 PSEL.DFEGPIO[0]=28 PSEL.DFEGPIO[1]=29 PSEL.DFEGPIO[2]=30 PSEL.DFEGPIO[3]=31 
 SWITCHPATTERN=0x0 SWITCHPATTERN=0x0 SWITCHPATTERN=0x1 SWITCHPATTERN=0x2 SWITCHPATTERN</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Mar 2025 23:12:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117827/cteinfo-receive-with-antenna-switch" /><item><title>RE: CTEInfo receive with antenna switch</title><link>https://devzone.nordicsemi.com/thread/526659?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 23:12:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa477ff9-c5af-4bb4-9a8f-6f87969d3a32</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;OK.Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CTEInfo receive with antenna switch</title><link>https://devzone.nordicsemi.com/thread/526292?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 07:56:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a502083-3711-4c7b-9f59-1198fb8925fe</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think there is much to do with this interval I&amp;#39;m afraid. The PHYEND_EVENT is sent as soon as the last bit is sent/received on air while the EVENTS_END is triggered when a packet is sent/received.&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: CTEInfo receive with antenna switch</title><link>https://devzone.nordicsemi.com/thread/526074?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 00:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e559c923-92bc-4bc4-b0fd-5195df599945</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;Thanks for the answer.&lt;/p&gt;
&lt;p&gt;The test code uses the Timeslot API and there is no base sample.&lt;/p&gt;
&lt;p&gt;I created the diagram.&lt;/p&gt;
&lt;p&gt;The interval between ND_EVENT and PHYEND_EVENT is about 12us.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CTEInfo receive with antenna switch</title><link>https://devzone.nordicsemi.com/thread/524855?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 14:42:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83b3eeac-0aaf-41eb-aa19-059cb7299586</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry about the late reply, but I&amp;#39;ve been tasked with taking over this case. Let me take a step back here before we move on. First off, what sample project have you used as the starting point here? The connectionless sample or peripheral + central samples? Is the image you uploaded of the&amp;nbsp;no-CTEInfo diagram something you made yourself or have you found it in documentation somewhere?&lt;/p&gt;
&lt;p&gt;Since the CTEInfo is appended at the end of advertising packets (after the CRC), since the advertisement has told the application that there is CTEInfo appended, it might be that the guard/ref period is alreadty scheduled no matter what the CTEInfo is, and that&amp;#39;s why you see these pulses. I will need to confirm with the devs whether or not this is the case though. How long is the&amp;nbsp;&lt;span&gt;delay between END_EVENT and PHYEND_EVENT exactly?&lt;/span&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><item><title>RE: CTEInfo receive with antenna switch</title><link>https://devzone.nordicsemi.com/thread/523992?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 06:22:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0de8feed-2a4a-4cb6-a43f-64139defcb78</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&amp;gt;isn&amp;#39;t unnecessary&lt;/p&gt;
&lt;p&gt;The advertising does not include a CTE, so there is no need to switch antennas.&lt;/p&gt;
&lt;p&gt;Below are the AoA related configuration parameters.&lt;br /&gt;(Sorry, my environment is optimized for NCS2.9 and can no longer run on NCS2.2.)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	RADIO_DEV-&amp;gt;DFEMODE = (RADIO_DFEMODE_DFEOPMODE_AoA &amp;lt;&amp;lt; RADIO_DFEMODE_DFEOPMODE_Pos);

	const nrf_radio_cteinline_conf_t cteconf = {
		.enable				= true,
		.info_in_s1			= false,
		.err_handling		= true,
		.time_range			= NRF_RADIO_CTEINLINE_TIME_RANGE_20,
		.rx1us				= NRF_RADIO_CTEINLINE_RX_MODE_2US,
		.rx2us				= NRF_RADIO_CTEINLINE_RX_MODE_4US,
		.s0_pattern			=  0b0000&amp;#39;0111,
		.s0_mask			=  0b0000&amp;#39;1111,
	};
	nrf_radio_cteinline_configure(RADIO_DEV, &amp;amp;cteconf);

	const nrf_radio_dfectrl_conf_t dfeconf = {
		.dfe_len			= 20, /* 受信時はINLINE=disable時のみ有効 */
		.extension			= NRF_RADIO_DFECTRL_EXTENSION_CRC,
		.switch_spacing		= NRF_RADIO_DFECTRL_SWITCH_SPACING_2US,
		.spacing_ref		= NRF_RADIO_DFECTRL_SAMPLE_SPACING_1US,
		.sample_type		= NRF_RADIO_DFECTRL_SAMPLE_TYPE_IQ,
		.sample_spacing		= NRF_RADIO_DFECTRL_SAMPLE_SPACING_2US,
		.repeat_pattern		= 0,
		.gain_steps			= 0,
		.switch_offset		= 0,
		.sample_offset		= 0,
	};
	nrf_radio_dfectrl_configure(RADIO_DEV, &amp;amp;dfeconf);

	nrf_radio_dfe_buffer_set(RADIO_DEV, m_iq_sample, sizeof(m_iq_sample));

&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CTEInfo receive with antenna switch</title><link>https://devzone.nordicsemi.com/thread/522448?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 13:49:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c90c601e-caed-437b-aea2-76cb73f539b1</guid><dc:creator>Priyanka</dc:creator><description>[quote user="loquat"]&amp;#39;reference period&amp;#39; and &amp;#39;sample period&amp;#39; will be output, but this is unnecessary processing.[/quote]
&lt;p&gt;If you are&amp;nbsp;referring to this &amp;quot;part of the protocol&amp;quot; then it definitely isn&amp;#39;t unnecessary - it&amp;#39;s important in order to find the bias etc.&lt;/p&gt;
[quote user="loquat"]Additionally there is an unnecessary delay between END_EVENT and PHYEND_EVENT.[/quote]
&lt;p&gt;&lt;span&gt;If you are&amp;nbsp;seeing delays etc. that is interesting, but you will have to give us more details than that. You should measure this with a logic analyzer or PPK and give us what values for sample slot etc. you are&amp;nbsp;using, or if&amp;nbsp;you&amp;#39;re simply using the default values. And whether you are&amp;nbsp;using zephyr controller, and what ncs version. And you should definitely try this with NCS 2.2, as that is the only version we&amp;#39;ve tested and know that we have a QDID.&amp;nbsp;&lt;/span&gt;&lt;span&gt;Most likely you would just need to look at the WP.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Priyanka&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CTEInfo receive with antenna switch</title><link>https://devzone.nordicsemi.com/thread/522355?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 08:19:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77893506-479e-4973-905f-f56813e5fb75</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the delay. I am checking this internally with experts and will get back to you.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CTEInfo receive with antenna switch</title><link>https://devzone.nordicsemi.com/thread/519360?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 15:39:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:803842b3-4588-4a36-b57c-fb2adf86b4a1</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;The timing is output to GPIO using PPI.&lt;br /&gt;END_EVENT -&amp;gt; PPI -&amp;gt; GPIO0&lt;br /&gt;PHYEND_EVENT -&amp;gt;PPI -&amp;gt; GPIO1&lt;br /&gt;etc.&lt;/p&gt;
&lt;p&gt;About CTEInfo&lt;br /&gt;The sender uses Timeslot API to add CTEInfo to the ExtendedHeader of the ADV_EXT_IND packet, and also sets it to send CTE after CRC.&lt;br /&gt;The receiver uses Timeslot API to receive in inlineAoA mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CTEInfo receive with antenna switch</title><link>https://devzone.nordicsemi.com/thread/519259?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 11:12:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4165b76b-2964-436b-b683-2a01ea0e1b0b</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;&lt;span&gt;Could you tell me whether&amp;nbsp;you made this block/timing diagram yourself?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you tell me what you mean by &amp;quot;receiving no CTE info&amp;quot;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Priyanka&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CTEInfo receive with antenna switch</title><link>https://devzone.nordicsemi.com/thread/517819?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 01:33:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c91797ee-1f25-4ca2-9f7f-8ef020797382</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;I changed the settings a little.&lt;/p&gt;
&lt;p&gt;PSEL.DFEGPIO[0]=28&lt;br /&gt;PSEL.DFEGPIO[1]=29&lt;br /&gt;PSEL.DFEGPIO[2]=30&lt;br /&gt;PSEL.DFEGPIO[3]=31&lt;/p&gt;
&lt;p&gt;SWITCHPATTERN=0x00 (Scan and Payload)&lt;br /&gt;SWITCHPATTERN=0x01 (reference period)&lt;br /&gt;SWITCHPATTERN=0x02 (1st sample period)&lt;br /&gt;SWITCHPATTERN=0x04 (2nd sample period)&lt;br /&gt;SWITCHPATTERN=0x08 (3rd sample period)&lt;/p&gt;
&lt;p&gt;GPIO.DIRSET=0xF0000000&lt;br /&gt;GPIO.OUT=0x00000000&lt;/p&gt;
&lt;p&gt;result is follow,&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/CTEINFO.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;On&amp;nbsp;recv no-CTEInfo (INLINE AoA mode)&lt;br /&gt;&amp;#39;reference period&amp;#39; and &amp;#39;sample period&amp;#39; will be output, but this is unnecessary processing.&lt;br /&gt;Additionally there is an unnecessary delay between END_EVENT and PHYEND_EVENT.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Is this behavior as expected?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CTEInfo receive with antenna switch</title><link>https://devzone.nordicsemi.com/thread/517608?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 08:23:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c4090b2-34ea-43f4-bee1-db5ca503f1d8</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks fine, because as you mentioned,&lt;/p&gt;
[quote user=""]If Advertising with CTEInfo is received, the antenna switch will work as expected.[/quote]
&lt;p&gt;This is correct.&lt;/p&gt;
[quote user=""]If Advertising without CTEInfo is received, PORT28/29 will change immediately after receiving the Advertising. (It outputs a pulse)[/quote]
&lt;p&gt;The pulse that you see initially might be the radio getting ready for the CTE reception, but since the CTEInfo is not received, the antenna switching is not performed.&lt;/p&gt;
[quote user=""](There will be no change if no Advertising is received at all)[/quote]
&lt;p&gt;That also looks fine.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>