Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Heart Rate Monitor → Thread

   

How to receive HR data from multiple masters using the Demo_Receiver C++ code

Rank

Total Posts: 3

Joined 2017-06-04

PM

Hi

I want to receive data from 8 master nodes connected to 8 channels of a USB dongle. Kindly suggest an approach using hr_receiver.cpp

Right now I am able to connect second channel when it is connected to first one. .

I get "Error assigning / opening channel: Code 021"

Kindly suggest a flow which I can follow to connect 7 subsequent channels to different heartrate masters.

Thanks
Mash      
RankRankRankRank

Total Posts: 120

Joined 2013-05-07

PM

Hi Mash,

There is nothing stopping your from opening 8 channels at once on the same device receiving from different HRMs. In fact, if your run SimulANT+, you can try it out and see that it does work.

You may not have configured the second channel properly before trying to open it.

BK      
Rank

Total Posts: 3

Joined 2017-06-04

PM

I use simulANT+ to transmit broadcast data. I am getting error for simultaneously opening 8 channel to receive from each of the transmitting nodes at the same time. I am already referring to demo_hr_receiver.cpp Any sample c++ reference available for handling channels simultaneously?

Another option that I would like to understand is continuous scanning mode.
Is there any c++ sample code reference for this?

     
RankRankRankRank

Total Posts: 120

Joined 2013-05-07

PM

No sample code in particular. You may want to read the ANT AN Multi-Channel Design Considerations application note available on our downloads page.

For more information about Continuous Scan Mode, please take a look at the ANT AN Continuous Scan Mode application note.      
Rank

Total Posts: 3

Joined 2017-06-04

PM

Reference application and docs were very useful. Have almost got the continuous scanning up.

Thanks much.