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

ANT changing a bidirectional channel into TX only

I am using the nRF51422 for sensor. This sensor is paired to a slave in the most simple way: the slave searches with a wildcard for a sensor and the stores the devicenumber. I do not use the pairingbit, because there is no trigger t put it on or off. I do not have a button or anything else on the sensor to initiate pairing. I need to have a more sophisticated way to pair master and slave. I have the following idea:

  1. The sensor/master will start with a bidirectional TX channel and have the pair-bit set in the devicetype.
  2. When a slave finds the sensor (looking for a pairbit), it will respond with a broadcast with its own devicenumber.
  3. The sensor/master will receive the response, save the slave devicenumer and reset the pairbit.
  4. Also the sensor will switch the channel from bidirectional to TX-only for saving power. NOTE: In the future I want the sensor/master have small periods in which it can listen to the slave. For changing parameters, clearing the paired devicenumber or whatsoever. In that case I want to change the channeltype once per hour to bidirectional and back again after some broadcasts.

My questions: Can I change the channeltype form "Bidirectional Master" to "Master Transmit Only" whilst the channel is open? Or is there another way to do this? Can I use different devicetype and devicenumber, when the slave responds with a broadcast?

I hope, somebody can give me answers to my questions. Erik Postma

Parents Reply Children
No Data
Related