You are here: Forum Home → ANT Developers Forums → ANT General Questions → Thread
Hi,
This is a device limitation rather than any limitations with the application layer; most ANT USB sticks only support up to 8 channels, though using an N5 module with a USB interface board would get you up to 15 channels (or you could use more USB sticks).
If the devices you are attempting to communicate with all run ANT master channels, then you could use continuous scanning mode on the PC to communicate with hundreds of devices. If not then shared channels may also be an option if you have control over the devices you are attempting to communicate with...
Cheers
static List<ANT_Device> deviceList = new List<ANT_Device>();
static List<ANT_Channel> channelList = new List<ANT_Channel>();
try{
while (true)
{
ANT_Device device = new ANT_Device();
device.deviceResponse += new ANT_Device.dDeviceResponseHandler(DeviceResponse);
for(int i = 0; i < CHANNELS_PER_DEVICE; i++){
ANT_Channel channel = device.getChannel(i);
channel.channelResponse += new dChannelResponseHandler(ChannelResponse);
channelList.Add(channel);
}
deviceList.Add(device);
}
catch(Exception ex)
{
if (deviceList.Count == 0) // Unable to connect to ANT
{
throw new Exception("Could not connect to any device.\n" +
"Details: \n " + ex.Message);
}
else
{
Console.WriteLine("Initialization was successful!");
}
}