This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How can I use one nrf24l01+ as transceiver at a time ?

I am using two nrf24l01+ at two ends & i am able to communicate between both but its a simplex communiacation means I am transmitting nrf code from A end & B end receives that code properly . But now I want to transmit nrf code from B end & A end need to receive nrf code. ? So how sholud I do coding for this ? If anybody has solution please help me. If possible then provide me code also.

Parents
  • You can use the ACK payload functionality in the nRF24L01+. On the B end you write the payload you want to send back to the TX FIFO and when A send a package to B (assuming you have enabled ACK payload functionality), then B will add what you have written to the TX FIFO to the ACK and it will be received on A.

    There are a lot of different libraries out there to use. I don't know which MCU you are using to control the nRF24L0+, but I would recommend you to use google to see if you can find a library for the nRF24L01+ that is based on the MCU you are using. As long as the MCU you are using is a fairly common one, there should be libraries to find.

Reply
  • You can use the ACK payload functionality in the nRF24L01+. On the B end you write the payload you want to send back to the TX FIFO and when A send a package to B (assuming you have enabled ACK payload functionality), then B will add what you have written to the TX FIFO to the ACK and it will be received on A.

    There are a lot of different libraries out there to use. I don't know which MCU you are using to control the nRF24L0+, but I would recommend you to use google to see if you can find a library for the nRF24L01+ that is based on the MCU you are using. As long as the MCU you are using is a fairly common one, there should be libraries to find.

Children
Related