HI all:
I am using the nrf24le1.And i confuse about the recive and transmission address in rf transceiver.
What do we use the address to do usually.It will be wonderful explining the question with a example.
Many thanks.
Merry Christmas!
HI all:
I am using the nrf24le1.And i confuse about the recive and transmission address in rf transceiver.
What do we use the address to do usually.It will be wonderful explining the question with a example.
Many thanks.
Merry Christmas!
Hi Prawn,
I am sorry for the late response. I assume that you are mentioning about TX and RX address using ShockBurst/ Enhanced Shock Burst Protocol on nRF24LE1.
TX address is the address you set to send a packet to.
RX addresses are the addresses that you open to receive packets. There are 6 RX addresses (or in other word, pipes) that you can configure.
You can find more information regarding this in section 3.4 Enhanced Shockburst in the nRF24LE1 Product Specification.
You can set the TX address using: hal_nrf_set_address(HAL_NRF_TX, tx_address); And each RX adddress using same function with the RX address pipe you want to set, for example pipe 0: hal_nrf_set_address(HAL_NRF_PIPE0, rx_address);
You can have a look at the enhanced shockburst examples in the nRFGo SDK. There is no address set in the example, since it uses default address. But you can set the address as you wish.
:D Hi Hung Bui,
Thank you for answering my question! I still have a confusion.Is there some rules when I set the TX and RX address?And is it ok if i use default address.Thanks!
Hi,
There is no rule for TX address except that it has to match with the RX address on the device you want to send the packet to. For RX address, you can find the rule at Figure 15 in the Product Spec. Address 0 (Pipe0) has 5 unique bytes and free to choose. Address 1-5 have the same first 4 bytes and last LSByte is unique for each.
It's OK to use default address, but you will have more chance of being interfered by other device if they also use default address.
Hi Hung Bui, Thank you very much!:)