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

Channel Search + Device Pairing Configuration

Hi Nordic,

EDIT: I am using nrf51422, with S210 v5.0.0. Everything that is below is referring to ANT protocol

I want to know if the thing that I am planning to do is possible and feasible or not.

My final objective: To have 1 node (node 1, remote control) that sends to other 2 nodes (node 2 and node 3, devices to control) commands. This other 2 nodes will have to be discovered upon start up (pairing process). I am really worried about power consumption of all nodes, but specially of node 1.

Nodes:

Node 1 -> remote control

Node 2 -> device to control

Node 3 -> device to control

Here is the way I am thinking now:

  1. In nodes 2 and 3, I would open a channel as continuous scanning mode.

  2. In node 1 I would, in the beginning, start a background scanning search. This search would have to be based on distance (only scan devices that are nearer than a certain threshold).

  3. This background scanning search will stop when we have found 2 devices, or when we have timed out. If we only find 1 device and we time out, we still are interested in communicating only with the one that we found

  4. Close background scanning channel and open ASYNCHRONOUS communication (when we press a button, we send a message) with what we just found.

Questions:

  1. Would you do the same purpose in a different way? Is this a good way of doing what I want to do?

  2. Is my idea of implementation possible to do?

  3. Can a continuous scanning mode be a master node?

I would really appreciate any help in this structure, any suggestion will really be appreciated and taken into account.

Thanks!

Parents
  • Yes, I understand that only when you send from slave to master, EVENT_TX from slave will be triggered. But, however, if you leave open the channel, in the slave end you will always get EVENT_RX at each channel period, even if you don't send anything from master (I think it will send the previous data sent automatically).

    Or you mean the case where I open the channel only when I need to send something and then close it again?

    Thanks a lot Petter!

Reply
  • Yes, I understand that only when you send from slave to master, EVENT_TX from slave will be triggered. But, however, if you leave open the channel, in the slave end you will always get EVENT_RX at each channel period, even if you don't send anything from master (I think it will send the previous data sent automatically).

    Or you mean the case where I open the channel only when I need to send something and then close it again?

    Thanks a lot Petter!

Children
No Data
Related