Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

What is the basic sequence for configuring an ANT channel?

Avatar
RankRankRankRank

Total Posts: 140

Joined 2008-12-09

PM

When developing a PC application interfacing to ANT, the basic sequence to configure an ANT channel is:

1. Set the network key.

ANT_SetNetworkKey(ANT_NETWORK, aucNetworkKey);

2. Assign the channel

ANT_AssignChannel(ANT_CHANNEL, ucChannelType, ANT_NETWORK);

3. Set the channel ID

ANT_SetChannelId(ANT_CHANNEL, usDeviceID, ucDeviceType, ucTxType);

4. Set the message period

ANT_SetChannelPeriod(ANT_CHANNEL, usMessagePeriod);

5. Set the RF frequency

ANT_SetChannelRFFreq(ANT_CHANNEL, ucRFFreq);

6. Open the channel

OpenChannel(ANT_CHANNEL);

The application must make sure that each command was successful before proceeding to the next step. You may also set the transmit power and slave timeout, however these are optional (as is RF frequency and message rate).      

Signature

For a complete list of frequently asked questions and answers, please view the FAQ user profile by clicking on the FAQ user name.