Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Number of ANT+ Channel

Avatar
RankRankRankRank

Total Posts: 123

Joined 2013-10-07

PM

Is there really a maximum/recommended max number of channel that can be opened at the same time?

I see the documentation says 8 for USB2 Stick.
But I found that the channel number is a UCHAR so I could possibly open 255 channels on 1 Stick. (seen other software do more than 8 also)
What is the recommended max number before there is too much interference?

Looking to find this because I want multiple rider in my software, and people don't want to buy multiple USB Stick

Thank you!
Max      

Signature

——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com

Avatar
RankRankRankRank

Total Posts: 296

Joined 0

PM

Did you TRY to open more than 8 channels?
If I remember right, I got errors when trying to exceed the maximum number of 8 open channels.

Cheers,
OMB
     
Avatar
RankRankRankRank

Total Posts: 123

Joined 2013-10-07

PM

Thanks OMB,

You are right I should have tried it, got exited before coding wink
Will try to find an alternate way to use more than 8 devices on 1 Stick, a friend mentioned more than 1 device on the same channel could be possible?

openChannel(ChannelDeviceTypeDeviceNumRadioFreqChannelPeriodTransTypeSearchTimeout); //0
    
openChannel(1DeviceTypeDeviceNumRadioFreqChannelPeriodTransTypeSearchTimeout);
    
openChannel(2DeviceTypeDeviceNumRadioFreqChannelPeriodTransTypeSearchTimeout);
    
openChannel(3DeviceTypeDeviceNumRadioFreqChannelPeriodTransTypeSearchTimeout);
    
openChannel(4DeviceTypeDeviceNumRadioFreqChannelPeriodTransTypeSearchTimeout);
    
openChannel(5DeviceTypeDeviceNumRadioFreqChannelPeriodTransTypeSearchTimeout);
    
openChannel(6DeviceTypeDeviceNumRadioFreqChannelPeriodTransTypeSearchTimeout);
    
openChannel(7DeviceTypeDeviceNumRadioFreqChannelPeriodTransTypeSearchTimeout);
    
openChannel(8DeviceTypeDeviceNumRadioFreqChannelPeriodTransTypeSearchTimeout); //error trigger here after trying to open more than 8 channel (error AssignChannel) 


Also another small problem, on OSX, using the ANT lib, opening multiple channels one after the other cause problem (unlike Windows).
I had to use this bit of code to wait for last channel to be opened before trying to open a new one..

#ifdef Q_OS_MAC
        //Only need this with ANT_LIB compiled for MacOS, bug channel open too fast, causes crashes
        
QTimer timer;
        
timer.setSingleShot(true);
        
timer.start(5000); // Wait for previous channel to be opened, or 5sec max
        
QEventLoop loop;
        
QObject::connect(thisSIGNAL(lastChannelOppened()), &loop;, SLOT(quit()) );
        
QObject::connect(&timer;, SIGNAL(timeout()), &loop;, SLOT(quit()));
        
loop.exec();
#endif 


Again thanks for the great support, <3 ANT      

Signature

——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com

Avatar
RankRankRankRank

Total Posts: 123

Joined 2013-10-07

PM

old_man_biking - 02 April 2015 02:21 AM
Did you TRY to open more than 8 channels?
If I remember right, I got errors when trying to exceed the maximum number of 8 open channels.
Cheers,
OMB



Been reading on "Continuous Scanning Mode",
D00000652_ANT_Message_Protocol_and_Usage_Rev_5.1.pdf - p28
Would it be possible to use more than one device on the same channel using this mode?
Is that the recommended way to get more than 8 device? Just looking for a little advice to head in the good direction.. thanks


bStatus pclMessageObject->SetNetworkKey(USER_NETWORK_NUMucNetKeyMESSAGE_TIMEOUT);
bStatus pclMessageObject->AssignChannel(Channel0x00USER_NETWORK_NUMMESSAGE_TIMEOUT);  //Bidirectional Slave Channel = 2way
bStatus pclMessageObject->SetChannelID(ChannelDeviceNumDeviceTypeTransTypeMESSAGE_TIMEOUT);
... 
     

Signature

——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com

Avatar
RankRankRankRank

Total Posts: 296

Joined 0

PM

If I remember right, there are some threads in this forum concerning Continuous Scanning Mode and the Dynastream staff in this forum have recommended CSM for picking up multiple devices.
You could try and search the forum, there should be relevant posts with answers.

Cheers,
OMB      
Avatar
RankRankRankRank

Total Posts: 123

Joined 2013-10-07

PM

Oh thanks I wasn't using the good search box, seems like I have a few post to read smile
Have a great one!
Max

     

Signature

——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com

Avatar
RankRankRankRank

Total Posts: 123

Joined 2013-10-07

PM

Edit:

Will create a new post for more questions on CSM, thanks      

Signature

——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com

Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Just for future reference as CSM should work fine for your application, the S210 V5.0 SoftDevice for the nRF51422 now supports up to 15 individual channels, up from 8.

Cheers