Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Heart Rate Monitor → Thread

   

HRM Sensor ANT +ANT+  settings for AP2 Chip

Rank

Total Posts: 6

Joined 2011-01-18

PM

Hi,
we want to build a HRM Sensor with a Microchip PIC.
The PIC is a SPI Slave to the nRF24 AP2.
1. Which commands are necessary to establish a radio connection?
We see a lot of commands in the manual, but which is the minimum?

2. What ANT+ Pages are mandatory??

Thanks for your help:)      
Avatar
RankRankRankRank

Total Posts: 213

Joined 2011-05-02

PM

Hello,

In response to your first question, I have posted a couple of links to the ANT General Questions forum on how to get started with ANT development in embedded systems, and how to get started with development of ANT + Enabled Applications:
http://www.thisisant.com/component/option,com_fireboard/Itemid,146/func,view/catid,25/id,1391/
http://www.thisisant.com/component/option,com_fireboard/Itemid,146/func,view/catid,25/id,1169/

You will also want to read the ANT Message Protocol and Usage document, available in the Developer's Zone:

http://www.thisisant.com/pages/developer-zone/ant-protocol-and-usage

And the HRM device profile available in the ANT+ Adopter Zone:

http://www.thisisant.com/pages/ant/ant-device-profiles

The mandatory pages for the HRM are pages 2 and 3 and either one or both of 0 and 4.

Hope this helps!      
Rank

Total Posts: 6

Joined 2011-01-18

PM

Thanks, for the help.
We have a garmin HR belt. With the display simulator we
see the device and the value but since now we could not
establish a connection with ANTware II.
We set for display slave, rf channel 57, id=0.
Maybe you have more information      
RankRankRankRank

Total Posts: 116

Joined 2008-11-21

PM

did you set the network key to ANT+?      
Rank

Total Posts: 6

Joined 2011-01-18

PM

Yes we did.
After powerup we receive a startup message ID 0x6F
Then we set as described in your doc profile_HRM the
messages
ANT_SetNetworkKey(ucNetNum, aucNetKey);

ANT_AssignChannel(ucChanNum, ucChanType, ucNetNum);

ANT_SetChannelId(ucChanNum, usDeviceNum, ucDeviceType, ucTransType);

ANT_SetChannelPeriod(ucChanNum, usMessagePeriod);

ANT_SetChannelRFFreq(ucChanNum, ucRF);

ANT_OpenChannel(ucChanNum);

How does the ack message look like and what is the maximum
and typical response time?
Thanks      
Rank

Total Posts: 6

Joined 2011-01-18

PM

Meanwhile I found the ACK message,
but I still don't know the typical response time for
the ack meassage?

Are the commands above enough to work for a typical
HRM communication?

Thanks      
RankRankRankRank

Total Posts: 116

Joined 2008-11-21

PM

HRM does not use the ack message type. Please read the HR device profile and ANT Message Protocol and Usage documents:

http://www.thisisant.com/pages/ant/ant-device-profiles

http://www.thisisant.com/pages/developer-zone/ant-protocol-and-usage


Also refer to the ANT+ simulator tool source code.

http://www.thisisant.com/pages/ant/ant-simulator-tools      
Rank

Total Posts: 6

Joined 2011-01-18

PM

thanks again.
A hardware resetline should be enough for the AP2 chip without
snych sequence on the byte sinchronous interface.
I couldn't find any detailed timing diagram for this situation?
I just have found the synch on byte synchronous app.

Does the AP2 chip also send the startup message after powerup and
resetpin??      
RankRankRankRank

Total Posts: 116

Joined 2008-11-21

PM

Please refer to the Interfacing with ANT General Purpose Chipsets and Modules document at the below link:

http://www.thisisant.com/pages/developer-zone/ant-protocol-and-usage

For general ANT questions please post on the "ANT General Questions" forum.