I'm using VS 2015 to build and run DEMO_LIB or DEMO_NET and I am getting consistent timeouts trying to pair my USB key with a Garmin speed sensor. I can successfully pair within Simulant but not the demo application. My parameters are as follows from the device doc:
static readonly byte USER_ANT_CHANNEL = 0; // ANT Channel to use
static readonly ushort USER_DEVICENUM = 0; // Device number
static readonly byte USER_DEVICETYPE = 123; // Device type
static readonly byte USER_TRANSTYPE = 0; // Transmission type
static readonly byte USER_RADIOFREQ = 57; // RF Frequency + 2400 MHz
static readonly ushort USER_CHANNELPERIOD = 8118; // Channel Period (8192/32768)s period = 4Hz
static readonly byte[] USER_NETWORK_KEY = {/* ANT managed key ending in 0x45 */ };
static readonly byte USER_NETWORK_NUM = 0; // The network key is assigned to this network number
What am I doing incorrectly or how do I debug this?
Console output below
Attempting to connect to an ANT USB device...
Initialization was successful!
M - Print this menu
A - Send Acknowledged message
B - Send Burst message
R - Reset
C - Request Capabilites
V - Request Version
I - Request Channel ID
S - Request Status
U - Request USB Descriptor
D - Toggle Display
Q - Quit
Resetting module...
RESET Complete, reason: RESET_CMD
Setting network key...
Network key set
Assigning channel...
Channel assigned
Setting Channel ID...
Channel ID set
Setting Radio Frequency...
Radio Frequency set
Setting Channel Period...
Channel Period set
Opening channel...
Channel opened
Enabling extended messages...
Extended messages enabled
Search Timeout
Channel Closed
Unassigning Channel...
Unassigned Channel
Press enter to exit