Now I have crossed this stage Thanks to the great help from thisisant.com forum moderators.
I am seeing the beacon from the BPM device. But when I try to link to it I am getting an exception in two of the four channel types.
on the other two channel types I dont see the beacon at all.
This question thread is continuing in the adopter zone forum as well.
A heart felt thanks for your great assistance.
- Albert
here is the channel setup code. values for the arguments are
network number is 1, channel number is 0x03, deviceNumber is 0, deviceType is 18 (0x12) for BPM devices, txType = 0, channelPeriod is 8192, radioFreq = 57, proxSearch = 7.
----------------------------------------------------------
private boolean antChannelSetup(byte networkNumber, byte channelNumber, short deviceNumber, byte deviceType,
byte txType, short channelPeriod, byte radioFreq, byte proxSearch){
boolean channelOpen = false;
try{
sAntReceiver.ANTAssignChannel(channelNumber, AntDefine.PARAMETER_RX_NOT_TX, networkNumber); // Assign as slave channel on selected network (0 = public, 1 = ANT+, 2 = ANTFS)
sAntReceiver.ANTSetChannelId(channelNumber, deviceNumber, deviceType, txType);
sAntReceiver.ANTSetChannelRFFreq(channelNumber, radioFreq);
sAntReceiver.ANTSetChannelPeriod(channelNumber, channelPeriod);
sAntReceiver.ANTSetChannelSearchTimeout(channelNumber, (byte)0); // Disable high priority search
sAntReceiver.ANTSetLowPriorityChannelSearchTimeout(channelNumber,(byte) 12); // Set search timeout to 30 seconds (low priority search)
if(deviceNumber == WILDCARD){
sAntReceiver.ANTSetProximitySearch(channelNumber, proxSearch); // Configure proximity search, if using wild card search
}
sAntReceiver.ANTOpenChannel(channelNumber);
channelOpen = true;
}
catch(AntInterfaceException aie){
aie.printStackTrace();
}
return channelOpen;
}