<?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>Radio Transmitter/Receiver example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127/radio-transmitter-receiver-example</link><description>Your served radio tramsmitter/receiver example using PCA 10000 USB dongle, PCA 10001 evaluation kit.
It&amp;#39;s just only one byte data communication. It works well.
If I communication multi-byte data with one packet, what did I fixed source code in &amp;quot;main</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Apr 2020 06:08:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127/radio-transmitter-receiver-example" /><item><title>RE: Radio Transmitter/Receiver example</title><link>https://devzone.nordicsemi.com/thread/247439?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 06:08:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d63d853d-9902-4ee9-ad63-9af4aa87f525</guid><dc:creator>Reshma</dc:creator><description>&lt;p&gt;sir,&lt;/p&gt;
&lt;p&gt;i am using Radio Transmitter example .i am able to send data successfully.but i observed current as 9.7mA constantly.&lt;/p&gt;
&lt;p&gt;please help me to reduce power consumption.&lt;/p&gt;
&lt;p&gt;here is&amp;nbsp; SDK: examples/Radio/transmitter&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PCA&amp;nbsp; 10040e NRF52810&lt;pre class="ui-code" data-mode="text"&gt;void radio_config()
{
  // Radio config
    NRF_RADIO-&amp;gt;TXPOWER   = (RADIO_TXPOWER_TXPOWER_0dBm &amp;lt;&amp;lt; RADIO_TXPOWER_TXPOWER_Pos);
    NRF_RADIO-&amp;gt;FREQUENCY = 40UL;  
    NRF_RADIO-&amp;gt;MODE      = (RADIO_MODE_MODE_Nrf_1Mbit &amp;lt;&amp;lt; RADIO_MODE_MODE_Pos);
    
       update_radio_addresses(NRF_ESB_ADDR_UPDATE_MASK_BASE0);
       update_radio_addresses(NRF_ESB_ADDR_UPDATE_MASK_BASE1);
       update_radio_addresses(NRF_ESB_ADDR_UPDATE_MASK_PREFIX);
    
    NRF_RADIO-&amp;gt;TXADDRESS   = 0x00UL;  // Set device address 0 to use when transmitting
    NRF_RADIO-&amp;gt;RXADDRESSES = 0x01UL;  // Enable device address 0 to use to select which addresses to receive

    NRF_RADIO-&amp;gt;PCNF0 = (0 &amp;lt;&amp;lt; RADIO_PCNF0_S0LEN_Pos) |
                       (0 &amp;lt;&amp;lt; RADIO_PCNF0_LFLEN_Pos) |
                       (1 &amp;lt;&amp;lt; RADIO_PCNF0_S1LEN_Pos) ;

NRF_RADIO-&amp;gt;PCNF1 = (RADIO_PCNF1_WHITEEN_Disabled    &amp;lt;&amp;lt; RADIO_PCNF1_WHITEEN_Pos) |
                       (RADIO_PCNF1_ENDIAN_Big          &amp;lt;&amp;lt; RADIO_PCNF1_ENDIAN_Pos)  |
                       ((m_esb_addr.addr_length - 1)    &amp;lt;&amp;lt; RADIO_PCNF1_BALEN_Pos)   |
                       (10             &amp;lt;&amp;lt; RADIO_PCNF1_STATLEN_Pos) |
                       (32             &amp;lt;&amp;lt; RADIO_PCNF1_MAXLEN_Pos);

NRF_RADIO-&amp;gt;SHORTS   = RADIO_SHORTS_READY_START_Msk  | RADIO_SHORTS_END_DISABLE_Msk | \
                      RADIO_SHORTS_DISABLED_TXEN_Msk;
NRF_RADIO-&amp;gt;INTENSET = RADIO_INTENSET_DISABLED_Msk | RADIO_INTENSET_READY_Msk;
}


void send_packet()
{
    NRF_RADIO-&amp;gt;PACKETPTR = (uint32_t)&amp;amp;packet;
    NRF_RADIO-&amp;gt;EVENTS_READY = 0U;
    NRF_RADIO-&amp;gt;TASKS_TXEN   = 1;

    while (NRF_RADIO-&amp;gt;EVENTS_READY == 0U)
    {
        // wait
    }
    NRF_RADIO-&amp;gt;EVENTS_END  = 0U;
    NRF_RADIO-&amp;gt;TASKS_START = 1U;

    while (NRF_RADIO-&amp;gt;EVENTS_END == 0U)
    {
        // wait
    }

    NRF_RADIO-&amp;gt;EVENTS_DISABLED = 0U;
    // Disable radio
    NRF_RADIO-&amp;gt;TASKS_DISABLE = 1U;

    while (NRF_RADIO-&amp;gt;EVENTS_DISABLED == 0U)
    {
        // wait
    }
      
}

&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Transmitter/Receiver example</title><link>https://devzone.nordicsemi.com/thread/687?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2013 11:37:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f82e80c7-d029-446a-8098-7a7b6c4e8c4a</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;To clean things up, I&amp;#39;d be happy if you could evaluate the answer you have received and accept it if you feel it&amp;#39;s sufficient. If not, it might be useful to expand your question a little and provide further information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Transmitter/Receiver example</title><link>https://devzone.nordicsemi.com/thread/688?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2013 06:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e3ce73e-2e1f-45b5-bfae-b2bf26ba4923</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;If you want a very quick fix without changing to much, set &amp;quot;PACKET_STATIC_LENGTH&amp;quot; in radio_config.h to your desired number of bytes on air.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s some more information, and how to configure your length manually:&lt;/p&gt;
&lt;p&gt;When the length field is used (LFLEN &amp;gt; 0) you can set the content of the length field through the first byte of the packet buffer. The payload itself will start on the second byte.
If S0LEN &amp;gt; 0 or S1LEN &amp;gt; 0 you will have to set these fields through the packet buffer as well, each field (S0, Length or S1) will occupy one byte of the packet buffer when enabled.&lt;/p&gt;
&lt;p&gt;The S0 and S1 fields are only there to allow status or padding bits before or after the length field, and they are completely optional if you are defining your own protocol.&lt;/p&gt;
&lt;p&gt;Below is a small example to show you how the length field can be used:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint8_t packet_buf[33];
NRF_RADIO-&amp;gt;PACKETPTR = packet_buf;
NRF_RADIO-&amp;gt;PCNF0 = 8 &amp;lt;&amp;lt; RADIO_PCNF0_LFLEN_Pos;
NRF_RADIO-&amp;gt;PCNF1 = (RADIO_PCNF1_WHITEEN_Disabled &amp;lt;&amp;lt; RADIO_PCNF1_WHITEEN_Pos) |                                   (RADIO_PCNF1_ENDIAN_Big       &amp;lt;&amp;lt; RADIO_PCNF1_ENDIAN_Pos)  |                                   
(3   &amp;lt;&amp;lt; RADIO_PCNF1_BALEN_Pos)   |                     
                                  (0   &amp;lt;&amp;lt; RADIO_PCNF1_STATLEN_Pos) |                     
                                  (32 &amp;lt;&amp;lt; RADIO_PCNF1_MAXLEN_Pos);
 
// Send a 20 byte payload
packet_buf[0] = 20;
packet_buf[1] = USERDATA[0];
packet_buf[2] = USERDATA[1];
.
.
packet_buf[20] = USERDATA[19];
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Best regards
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>