Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

one master and two slaves searching, what happens ...

Avatar
Rank

Total Posts: 13

Joined 2013-01-09

PM

I have an application with one master device and two slave devices.

Master will open an channel and two slaves will be searching at the same time.

Both slaves both will be synced to the master on that single channel slot.

Is there anyway to tell this two channels actually is using one time slot?

What I want to do is, if this happens, I want to break one channel and open another channel on the master to create a separate channel with the other slaves. So that both slaves can talk to the master independently.

Thanks

Paul      

Signature

BLE and ANT Developer using Nordicsemi nRF51422, ON, Canada

Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Hi Paul,

The only way you can tell which channels are sync'd to what is by using the channel ID parameters (device number, device type, and transmission type fields).

You can change one of these fields on a new master channel and then set the slave to sync to that channel instead (close channel, set channel ID, open channel).

You could also use a shared channel scheme to let the master channel act as a polling device (this is described in the "ANT AN Auto Shared Channel Master Example" app note.

It is not recommended to run master channels with the same channel ID. If you do attempt to run multiple master channels with the same channel ID, the slave channels will not be able to differentiate between them.

Cheers      
Avatar
RankRankRankRank

Total Posts: 296

Joined 0

PM

Hi Harrison,
If I understood right the thread starter asked for one master and multiple slaves, not multiple masters.
Cheers,
OMB      
Avatar
Rank

Total Posts: 13

Joined 2013-01-09

PM

Thanks Harrison and OMB
I am using 3 ANT dongles to do more experiment.

I think according to how ANT works. Two slaves synced to one master channel is absolutely normal and no way to make any of the parties aware there is a second slave exist in the system.
Please confirm my understanding is correct.

I sent some ACK broadcast data from all 3 units by pressing buttons on the screen. The result is what I expected, they all succeeded.

I believe is I did the send from two slaves exactly at the same time, one of the slave unit would have failed.

The "problem" here is the acknowledge packet is exactly same from different slaves, so the master doesn't know at all which slave is responding, otherwise I believe there is something I can do in the application layer to handle this.

I think Harrison is right, for this type of application the only way is to use shared channel.
I will revisit the shared channel application, I believe there is a mechanism in the application that handles multiple slaves fighting for it and eventually all the slaves will get an address as the system designed for.

Thanks

Paul      

Signature

BLE and ANT Developer using Nordicsemi nRF51422, ON, Canada

Avatar
Rank

Total Posts: 13

Joined 2013-01-09

PM

Hi Harrison

I understand your comment about different channel IDs.
I believe this is the right direction. I will design a custom handshake between master and slaves for each slave to negotiate for its own channel with the master.

Thanks

Paul

Harrison - 21 April 2016 03:49 PM
Hi Paul,

The only way you can tell which channels are sync'd to what is by using the channel ID parameters (device number, device type, and transmission type fields).

You can change one of these fields on a new master channel and then set the slave to sync to that channel instead (close channel, set channel ID, open channel).

You could also use a shared channel scheme to let the master channel act as a polling device (this is described in the "ANT AN Auto Shared Channel Master Example" app note.

It is not recommended to run master channels with the same channel ID. If you do attempt to run multiple master channels with the same channel ID, the slave channels will not be differentiate between them.

Cheers

     

Signature

BLE and ANT Developer using Nordicsemi nRF51422, ON, Canada

Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Hi Paul,

That sounds exactly like what I meant to say smile. Good luck with your development.

Cheers,
Harrison

PS. Correct, there is no method at the ANT level for the master to be aware of each slave that is listening to it, this must be done at the application level.