<?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>problem communicating with NRF24L01+? How to choose pipeline address?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19560/problem-communicating-with-nrf24l01-how-to-choose-pipeline-address</link><description>hello, im from india im using nrf24l01+ for my project to transmit and receive data between two arduinos. i tried all tutorial basic programs but i cant sucessfully send and recieve data finally i found out while creating the pipe between tx and rx we</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Feb 2017 12:52:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19560/problem-communicating-with-nrf24l01-how-to-choose-pipeline-address" /><item><title>RE: problem communicating with NRF24L01+? How to choose pipeline address?</title><link>https://devzone.nordicsemi.com/thread/76070?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2017 12:52:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:074c9497-646c-4b94-ad52-cb0782c79bef</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m not very familiar with the Arduino code. Could you try to send random data instead of true and false ?
Device stops working after 3 times doesn&amp;#39;t make much sense. if you change the address would it work again for 3 times ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem communicating with NRF24L01+? How to choose pipeline address?</title><link>https://devzone.nordicsemi.com/thread/76067?ContentTypeID=1</link><pubDate>Sat, 18 Feb 2017 05:03:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bc8e52d-f008-4a75-b67b-6c8318900336</guid><dc:creator>DAVY</dc:creator><description>&lt;p&gt;hello sir and i&amp;#39;m also facing another issue. My nrf24L01 is working but at certain time the TX is sending the data but the RX is not receiving it. after I&amp;#39;m changing the pipeline address it worked perfectly for 3 times and after that it is not working.Im adding the Tx and Rx code along with this help me to reslove it .&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Tx code
 // Transmitter Code
 // Pins Connection
 /*
   1 - GND
   2 - VCC 3.3V !!! NOT 5V
   3 - CE to Arduino pin 9
   4 - CSN to Arduino pin 10
   5 - SCK to Arduino pin 13
   6 - MOSI to Arduino pin 11
   7 - MISO to Arduino pin 12
   8 - UNUSED
*/



/* import needed Libraries*/
#include &amp;lt;SPI.h&amp;gt; // Call SPI Library 
#include &amp;lt;nRF24L01.h&amp;gt; // Call NRE Version Library
#include &amp;lt;RF24.h&amp;gt; // RF24 Header File


/*-----( Declare Constants and Pin Numbers )-----*/
#define CE_PIN   9
#define CSN_PIN 10

// NOTE: the &amp;quot;LL&amp;quot; at the end of the constant is &amp;quot;LongLong&amp;quot; type
const uint64_t pipe = 0xB3B4B5B605; // Define the transmit pipe
// you can Select Any 40 bit Address Instead of &amp;quot;E8E8F0F0E1&amp;quot;and put LL in the end of the Address


/*-----( Declare objects )-----*/
RF24 radio(CE_PIN, CSN_PIN); // Create a Radio
/*-----( Declare Variables )-----*/
boolean sw;  // Intializing Variable
boolean st;
const int pb=2; //pin 2 ( Push button pin)

void setup()   /****** SETUP: RUNS ONCE ******/
{
  pinMode(pb,INPUT_PULLUP);// pin 2 as a Input
  radio.begin();//Intializing NRF24L01 Module
  radio.openWritingPipe(pipe);// For Transmitting Operation, Must OpenWritingPipe
  Serial.begin(115200);
  
}//--(end setup )---


void loop()   /****** LOOP: RUNS CONSTANTLY ******/
{
 sw=digitalRead(pb);
  if(sw==true)
  {
    st=false;
    delay(1); // For Mechanical Switch Bouncing Effect.
    Serial.println(&amp;quot;ON&amp;quot;);
    radio.write( &amp;amp;st, sizeof(boolean) );
    
  }else
  {
     st=true;
    delay(1); // For Mechanical Switch Bouncing Effect.
    Serial.println(&amp;quot;OFF&amp;quot;);
    radio.write( &amp;amp;st, sizeof(boolean) );
  }

}//loop end

-------------------------------------
Rx code

// Reciever Code
// Pins Connection for Arduino MEGA
/*
   1 - GND
   2 - VCC 3.3V !!! NOT 5V
   3 - CE to Arduino pin 48
   4 - CSN to Arduino pin 49
   5 - SCK to Arduino pin 52
   6 - MOSI to Arduino pin 51
   7 - MISO to Arduino pin 50
   8 - UNUSED
*/
 // Pins Connection for Arduino UNO If used UNO, don&amp;#39;t forgetChange CE &amp;amp; CSN Pins to any pins such as pin 9 &amp;amp; pin 10
 /*
   1 - GND
   2 - VCC 3.3V !!! NOT 5V
   3 - CE to Arduino pin 9
   4 - CSN to Arduino pin 10
   5 - SCK to Arduino pin 13
   6 - MOSI to Arduino pin 11
   7 - MISO to Arduino pin 12
   8 - UNUSED
*/

/*-----( Import needed libraries )-----*/
#include &amp;lt;SPI.h&amp;gt;
#include &amp;lt;nRF24L01.h&amp;gt;
#include &amp;lt;RF24.h&amp;gt;
/*-----( Declare Constants and Pin Numbers )-----*/
#define CE_PIN   9
#define CSN_PIN 10

// NOTE: the &amp;quot;LL&amp;quot; at the end of the constant is &amp;quot;LongLong&amp;quot; type
const uint64_t pipe = 0xB3B4B5B605; // Write Same Address of Transmitter


/*-----( Declare objects )-----*/
RF24 radio(CE_PIN, CSN_PIN); // Create a Radio
/*-----( Declare Variables )-----*/
int rec=0;  // Received Value placed in it.
const int led=7; // LED pin

void setup()   /****** SETUP: RUNS ONCE ******/
{
  pinMode(led,OUTPUT);
  radio.begin();
  radio.openReadingPipe(1,pipe);// Open Reading Pipe to Receiving data
  radio.startListening(); // Start listening on the pipes opened for reading.
  Serial.begin(115200);
  Serial.println(&amp;quot;Start&amp;quot;);
}//--(end setup )---


void loop()   /****** LOOP: RUNS CONSTANTLY ******/
{
  if ( radio.available() )//If Available Receiving data 
  {
    // Read the data payload until we&amp;#39;ve received everything
    bool done = false;
    while (!done)
    {
      // Fetch the data payload
      done = radio.read( &amp;amp;rec, sizeof(unsigned int) );
      if(rec==LOW)
        {
          digitalWrite(led,HIGH);
          Serial.println(&amp;quot;ON&amp;quot;);
          //delay(50);
        }else
        {
          digitalWrite(led,LOW);
          Serial.println(&amp;quot;OFF&amp;quot;);
        }
    }
  }
  
}//--(end main loop )---
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem communicating with NRF24L01+? How to choose pipeline address?</title><link>https://devzone.nordicsemi.com/thread/76069?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2017 08:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f89df99-992c-4b24-bf47-6f4ff548e6ed</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m glad that it works now. If the answer was correct, please mark it as accepted answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem communicating with NRF24L01+? How to choose pipeline address?</title><link>https://devzone.nordicsemi.com/thread/76068?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2017 06:59:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29ac1d9c-5d9d-4fe3-876b-e5cd9e1caeb2</guid><dc:creator>DAVY</dc:creator><description>&lt;p&gt;Thanks Hung bai we finally successful transmitted and received data . After changing address of Tx and Rx .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem communicating with NRF24L01+? How to choose pipeline address?</title><link>https://devzone.nordicsemi.com/thread/76066?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 10:00:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eefb9bb7-bec1-4714-b943-4d9ea60aa221</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please try to follow the documention in the nRF24L01P product specification, for example the Appendix A.&lt;/p&gt;
&lt;p&gt;Usually noise shouldn&amp;#39;t be able to completely block all package. It more likely issue with your configuration. Make sure you have set the TX address and the RX_ADDR_P0 on the PTX to match with the RX address on the PRX.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>