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
  • Hi Petter,

    What you suggest is actually my current implementation, but this way the slave, which is the one that acts as remote control, will not have the possibility of sending asynchronous data upon the press of a button.

    I am though thinking of solving this issue opening the channel each time I press a button, send what I want to send and then closing it again. This way I would save quite a lot of battery. What worries me is the delay between pressing the button and sending the data, if the opening of the channel takes too long...

Reply
  • Hi Petter,

    What you suggest is actually my current implementation, but this way the slave, which is the one that acts as remote control, will not have the possibility of sending asynchronous data upon the press of a button.

    I am though thinking of solving this issue opening the channel each time I press a button, send what I want to send and then closing it again. This way I would save quite a lot of battery. What worries me is the delay between pressing the button and sending the data, if the opening of the channel takes too long...

Children
No Data
Related