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

Device Address match

I have two questions.

  1. Is it possible to use the DAP[n]/DAB[n] registers without using Bluetooth 4.0?

  2. If it is possible, then how? I searched all the sample code, and couldn't find anything. Furthermore, I read the reference manual for the nRF51822 and there was only one paragraph (16.1.13) on the topic.

I just want to use a host to listen for 5 devices using the radio. No s110 or s120 bluetooth stack. I don't want to use Gazell or Ant. I want my own stack. The reason is that since s110, s120, Ant and Gazell do not allow me to see the source code (since it is already precompiled) I can't learn anything. I don't believe in blindly trusting someone's code. I'm sure their code is good, but I would like to tailor the code to my application, and thus optimize it.

Parents
  • Yes, it's perfectly possible to implement a completely custom radio protocol on the nRF51, using the radio hardware directly. Developing a good radio protocol is however pretty complex, and not necessarily something I'd recommend unless you have specific requirements that are not covered by existing solutions. There are lots of issues to deal with; interference, packet loss, duplicate packets, addressing and so on.

    However, to get started, I'd recommend you to thoroughly read through the radio chapter of the Reference Manual, make sure you fully understand the task and event system of the nRF51 and how you can use a combination of timers, PPI and the radio to achieve mode switches, retransmissions and such. We don't have a lot of example code for this, but there is a very simple example in the SDK called radio_example. In addition, you may have use in taking a look at this project on GitHub.

Reply
  • Yes, it's perfectly possible to implement a completely custom radio protocol on the nRF51, using the radio hardware directly. Developing a good radio protocol is however pretty complex, and not necessarily something I'd recommend unless you have specific requirements that are not covered by existing solutions. There are lots of issues to deal with; interference, packet loss, duplicate packets, addressing and so on.

    However, to get started, I'd recommend you to thoroughly read through the radio chapter of the Reference Manual, make sure you fully understand the task and event system of the nRF51 and how you can use a combination of timers, PPI and the radio to achieve mode switches, retransmissions and such. We don't have a lot of example code for this, but there is a very simple example in the SDK called radio_example. In addition, you may have use in taking a look at this project on GitHub.

Children
No Data
Related