You are here: Forum Home → ANT Developers Forums → ANT General Questions → Thread
——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com
openChannel(Channel, DeviceType, DeviceNum, RadioFreq, ChannelPeriod, TransType, SearchTimeout); //0
    openChannel(1, DeviceType, DeviceNum, RadioFreq, ChannelPeriod, TransType, SearchTimeout);
    openChannel(2, DeviceType, DeviceNum, RadioFreq, ChannelPeriod, TransType, SearchTimeout);
    openChannel(3, DeviceType, DeviceNum, RadioFreq, ChannelPeriod, TransType, SearchTimeout);
    openChannel(4, DeviceType, DeviceNum, RadioFreq, ChannelPeriod, TransType, SearchTimeout);
    openChannel(5, DeviceType, DeviceNum, RadioFreq, ChannelPeriod, TransType, SearchTimeout);
    openChannel(6, DeviceType, DeviceNum, RadioFreq, ChannelPeriod, TransType, SearchTimeout);
    openChannel(7, DeviceType, DeviceNum, RadioFreq, ChannelPeriod, TransType, SearchTimeout);
    openChannel(8, DeviceType, DeviceNum, RadioFreq, ChannelPeriod, TransType, SearchTimeout); //error trigger here after trying to open more than 8 channel (error AssignChannel) 
#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(this, SIGNAL(lastChannelOppened()), &loop;, SLOT(quit()) );
        QObject::connect(&timer;, SIGNAL(timeout()), &loop;, SLOT(quit()));
        loop.exec();
#endif 
——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com
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
bStatus = pclMessageObject->SetNetworkKey(USER_NETWORK_NUM, ucNetKey, MESSAGE_TIMEOUT);
bStatus = pclMessageObject->AssignChannel(Channel, 0x00, USER_NETWORK_NUM, MESSAGE_TIMEOUT);  //Bidirectional Slave Channel = 2way
bStatus = pclMessageObject->SetChannelID(Channel, DeviceNum, DeviceType, TransType, MESSAGE_TIMEOUT);
... 
——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com
——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com
——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com