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

nRF24L01+ ACK with payload basic question

After some days trying a very simple tx/rx, reading each page of the manual, looking at at this developer zone, etc. I´m still in trouble, with many distinct partial results, but none with a complete round trip.

I think it would be very helpfull to many people if you could post here all registers needed to be set at startup, and all registers needed to be set at each TX and RX moment. Also, registers to be checked to see if data arrived.

So, the simple transmission/reception shoud be:

1- PTX wants to send a 7 byte payload message to PRX and receive an ack payload of 7 bytes.

 ==> PRX Address is 3 byte (1,2,3). 
 ==> 2 times max. retransmission 
 ==> just pipe 0 is used (or any other that you recomend)
 ==> let´s use channel 100, 1Mb/s (or any other chnnel if you prefer) ?

 a- what registers shoud be configured at startup, in what order and values?
 b- what registers/ports shoud be configured when PTX wants to transmit, in what  order and values?

2- PRX previously has loaded a ack_payload same size ( 7 bytes)

 a- what registers shoud be configured at startup and in what order
 b- what registers/ports shoud be configured when entering reception mode

3- PTX receives ACK w/ payload

 a- what registers shoud be configured at startup and in what order (if any distinct from 1 above)
 b- what registers/ports shoud be configured in order to read this ack payload
Parents
  • I still could not find any simple working example all this site long, that shows a complete working example for nrf24L01+: one PTX transmit -> one PRX receive+ack+payload -> the PTX receives ack+payload.

    There are questions very similar and the problem is always almost the same: Partial results. For example, if both sides become ACK+PLD then PRX does not receive anymore (it was receiving when PTX/PRX where fixed lenght). devzone.nordicsemi.com/.../

    I think the final answer resides in the details, something is being "lost" during setup, besides registers, timings, sequences of register setups, etc.

    So, a basic complete and working example for nrf24L01+ and not for a "almost identical chip" would help a lot. (just one pipe, just one PTX and one PRX, just basic address, just fixed messages size (if it cares), etc.)

Reply
  • I still could not find any simple working example all this site long, that shows a complete working example for nrf24L01+: one PTX transmit -> one PRX receive+ack+payload -> the PTX receives ack+payload.

    There are questions very similar and the problem is always almost the same: Partial results. For example, if both sides become ACK+PLD then PRX does not receive anymore (it was receiving when PTX/PRX where fixed lenght). devzone.nordicsemi.com/.../

    I think the final answer resides in the details, something is being "lost" during setup, besides registers, timings, sequences of register setups, etc.

    So, a basic complete and working example for nrf24L01+ and not for a "almost identical chip" would help a lot. (just one pipe, just one PTX and one PRX, just basic address, just fixed messages size (if it cares), etc.)

Children
No Data
Related