<?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>Direct use of 2.4 GHz radio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65365/direct-use-of-2-4-ghz-radio</link><description>I have done a number of BLE projects using this chip. I am exploring two potential applications which would use the 2.4 GHz radio, transmit only, in a non-standard way. I can&amp;#39;t seem to get it to come on, probably missing some very simple step. I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Sep 2020 20:59:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65365/direct-use-of-2-4-ghz-radio" /><item><title>RE: Direct use of 2.4 GHz radio</title><link>https://devzone.nordicsemi.com/thread/270187?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 20:59:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5765ba5a-ed8c-41be-9c99-4470ec97de69</guid><dc:creator>Daniel Veilleux</dc:creator><description>&lt;p&gt;I&amp;#39;d strongly recommend starting with the &amp;quot;{SDK_ROOT}/components/proprietary_rf/esb/nrf_esb.h&amp;quot; module in the SDK and then modifying it to suit your needs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct use of 2.4 GHz radio</title><link>https://devzone.nordicsemi.com/thread/270183?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 20:00:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d2a528d-5b5e-458a-89e2-55f43b9bd4b4</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;My code currently looks like this:&lt;/p&gt;
&lt;p&gt;void SendPacket (void)&lt;br /&gt;{&lt;br /&gt;static unsigned char Buf [255];&lt;br /&gt;int i;&lt;br /&gt;static int Freq;&lt;br /&gt;for (i = 30000; i; --i)&lt;br /&gt;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp; if (NRF_RADIO -&amp;gt; EVENTS_READY)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LEDS_INVERT(1 &amp;lt;&amp;lt; leds_list[1]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;NRF_RADIO -&amp;gt; TASKS_STOP = 1;&lt;br /&gt;NRF_RADIO -&amp;gt; TASKS_DISABLE = 1;&lt;br /&gt;NRF_RADIO -&amp;gt; POWER = 0;&lt;br /&gt;if (Buf [0] != 0x55)&lt;br /&gt;&amp;nbsp;&amp;nbsp; for (i = 0; i &amp;lt; sizeof Buf; ++i)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Buf [i] = 0x55;&lt;br /&gt;NRF_RADIO -&amp;gt; POWER = 1;&lt;br /&gt;&lt;br /&gt;for (i = 30; i; --i)&lt;br /&gt;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp; if (NRF_RADIO -&amp;gt; EVENTS_READY)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LEDS_INVERT(1 &amp;lt;&amp;lt; leds_list[2]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;NRF_RADIO -&amp;gt; TASKS_DISABLE = 1;&lt;br /&gt;NRF_RADIO -&amp;gt; PACKETPTR = (unsigned long) Buf;&lt;br /&gt;NRF_RADIO -&amp;gt; FREQUENCY = 20; //Freq++;&lt;br /&gt;if (Freq &amp;gt;= 80) Freq = 80;&lt;br /&gt;NRF_RADIO -&amp;gt; TXPOWER = 4;&lt;br /&gt;NRF_RADIO -&amp;gt; TXADDRESS = 1;&lt;br /&gt;for (i = 0; i &amp;lt; 8; ++i)&lt;br /&gt;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp; NRF_RADIO -&amp;gt; DAB [i] = 0x55555555;&lt;br /&gt;&amp;nbsp;&amp;nbsp; NRF_RADIO -&amp;gt; DAP [i] = 0x5555;&lt;br /&gt;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;NRF_RADIO -&amp;gt; RXADDRESSES = 0;&lt;br /&gt;NRF_RADIO -&amp;gt; CRCCNF = 0;&lt;br /&gt;NRF_RADIO -&amp;gt; MODECNF0 = 0x00000201;&lt;br /&gt;NRF_RADIO -&amp;gt; MODE = 0;&lt;br /&gt;NRF_RADIO -&amp;gt; PCNF0 = 0x00000107;&lt;br /&gt;NRF_RADIO -&amp;gt; PCNF1 = 0x0002FFFF;&lt;br /&gt;NRF_RADIO -&amp;gt; TIFS = 1;&lt;br /&gt;NRF_RADIO -&amp;gt; DACNF = 0x0000FF00;&lt;br /&gt;NRF_RADIO -&amp;gt; PREFIX0 = 0x55555555;&lt;br /&gt;NRF_RADIO -&amp;gt; PREFIX1 = 0x55555555;&lt;br /&gt;NRF_RADIO -&amp;gt; SHORTS = 0x00000023;&lt;br /&gt;NRF_RADIO -&amp;gt; TASKS_TXEN = 1;&lt;br /&gt;for (i = 30000; i; --i)&lt;br /&gt;&amp;nbsp;&amp;nbsp; if (NRF_RADIO -&amp;gt; EVENTS_READY)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LEDS_INVERT(1 &amp;lt;&amp;lt; leds_list[3]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;//for (i = 30000; i; --i)&lt;br /&gt;&amp;nbsp;&amp;nbsp; NRF_RADIO -&amp;gt; TASKS_START = 1;&lt;br /&gt;LEDS_INVERT(1 &amp;lt;&amp;lt; leds_list[0]);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;I have tried running it after having run another application that uses the softdevice, and also after a clean start from a power cycle. I have once or twice seen what appears to be a carrier on my spectrum analyzer, but I&amp;#39;ve never been able to reliably duplicate it. Does this radio section actually work per the datasheet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct use of 2.4 GHz radio</title><link>https://devzone.nordicsemi.com/thread/267075?ContentTypeID=1</link><pubDate>Sat, 29 Aug 2020 20:30:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91da4926-b127-409c-a0f8-8877d9bec41d</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Try to start with&amp;nbsp;&lt;span&gt;NRF_RADIO-&amp;gt;POWER=1, and set address registers to something different from zero (it&amp;#39;s known that zero access address doesn&amp;#39;t work in rx mode, not sure for tx).&lt;/span&gt;&lt;/p&gt;
[quote userid="68828" url="~/f/nordic-q-a/65365/direct-use-of-2-4-ghz-radio"]I have built an application using the BLE to UART example, but cut off the code before it enables the softdevice.[/quote]
&lt;p&gt;does this mean that softdevice is NOT enabled? could you post full code here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct use of 2.4 GHz radio</title><link>https://devzone.nordicsemi.com/thread/267064?ContentTypeID=1</link><pubDate>Sat, 29 Aug 2020 11:36:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a32353a0-9645-4f24-b088-ead9d2ec3be3</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;I am monitoring the output with a spectrum analyzer, and I never see a carrier. I did not set the addresses because I am less interested in the content than in the carrier and its modulation. Good point about the shortcuts, but I was not aware it would actually restart transmission. So, how do I get it to start transmission in the first place?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct use of 2.4 GHz radio</title><link>https://devzone.nordicsemi.com/thread/267060?ContentTypeID=1</link><pubDate>Sat, 29 Aug 2020 09:11:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4612131-120e-4abc-a3b1-ec1f375fbf44</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi Steve,&lt;/p&gt;
&lt;p&gt;you didn&amp;#39;t say what&amp;#39;s wrong exactly - the code hangs, the radio doesn&amp;#39;t go to READY state, you see no packets (there&amp;#39;s some device tuned to receive them, right?), or something else?&lt;/p&gt;
&lt;p&gt;Did you configure TX address in PREFIX0 and PREFIX1, are they the same at receiver and transmitter? I would suggest to explicitly configure all radio registers, starting from NRF_RADIO-&amp;gt;POWER=1. Also, for 2-Mbit mode, preamble length should be 2 bytes.&lt;/p&gt;
[quote userid="68828" url="~/f/nordic-q-a/65365/direct-use-of-2-4-ghz-radio"] My test code looks like this, called in an infinite loop[/quote]
&lt;p&gt;As you enable shortcuts to restart transmission, an infinite loop is unnecessary.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>