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

How to use BASEn, PREFIXn, RXADDRESS and TXADDDRESS?

Hello.

I want to use nRF51422 chips to make some kind of mesh network using raw radio stack (NRF_RADIO) with my own protocol on the top of it. In reference manual there is lack of information about how addresses is used in receive procedure and what should I put in which registers. Chapter 17.1.2 describes packet configuration and ADDRESS field consists of BASE and PREFIX parts. So, if I got say ten devices, working in say three independent groups of devices (say, 3 in first and second and 4 in third group), what should be in this fields for each of group? How RXADDRESS and TXADDRESS affect on this fields? Is there any opportunity to send packet inside of group from first to second device but not to third device and then next packet from first device to the third device, but not for the second one and so on?

e.g.

First -> Second (Third discards it)
First -> Third (Second discards it)
Second -> Third (First discards it)
First -> Second AND Third

I got two nRF51-DK (PCA10028) for now and I can pair it using the same parameters for both devices:

NRF_RADIO->PREFIX0 = 0xC4C3C2E7UL;
NRF_RADIO->PREFIX1 = 0xC5C6C7C8UL;
NRF_RADIO->BASE0   = 0xE7E7E7E7UL;
NRF_RADIO->BASE1   = 0x00C2C2C2UL;
NRF_RADIO->RXADDRESSES = 0x02UL;
NRF_RADIO->TXADDRESS = 0x04UL;

What will it be when it will be ten devices with the same parameters?

Related