In the Ant+ pdf titled "ANT Channel Search", it seems you can configure a GenericChannel to do this search. I've set things up as follows but it never reports any devices. Am I just way off base on what I'm expecting from this? The one piece in the doc I don't understand is in the Channel Assignment it mentions setting the Extended assignment byte to 0x01.
I've tried various combinations for channel type and network, as well as the message period. I'm wondering if I'm just missing something obvious.
var chanAssign = new Ant.ChannelAssignment(
Ant.CHANNEL_TYPE_RX_NOT_TX, //CHANNEL_TYPE_RX_ONLY
Ant.NETWORK_PUBLIC);
chanAssign.setBackgroundScan(true);
GenericChannel.initialize(method(:onMessage), chanAssign);
// Set the configuration
deviceCfg = new Ant.DeviceConfig( {
:deviceNumber => 0,
:deviceType => 0,
:transmissionType => 0,
:messagePeriod => 0,
:radioFrequency => 57, //Ant+ Frequency
:searchTimeoutLowPriority => 10, //Timeout in 25s
:searchTimeoutHighPriority => 2, // Timeout in 25s
:searchThreshold => 0} ); //Pair to all transmitting sensors
GenericChannel.setDeviceConfig(deviceCfg);