Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

How to understand ANT Reply message

Rank

Total Posts: 1

Joined 2009-12-20

PM

I use RF24AP2 module in my design. I use Async. interface

(1) Turn on the power, I have received ANT Message is:
RX<<A4,40,0B,4A

(2) Later, SEND OUT "NETWORK ID", "ASSIGN CHANNEL ID" AND "CHANNEL ID" step by step, The messages are:

Tx>>A4,09,46,00,00,01,00,01,00,01,00,01,EB
Rx<<A4,20,01,46,A1

Tx>>A4,03,42,00,00,00,E5
Rx<<A4,20,01,42,A5

Tx>>A4,05,51,00,01,00,0B,05,FF
Rx<<A4,20,01,51,B6

(3) I refer to "1204662412_ant message protocol and usage.pdf" protocol document but I don't understanding the ANT REPLY Messages

(4) I try to change "MESG_TX_SYNC" to 0xAA, the messages are:
Rx<<A4,40,0B,4A

Tx>>AA,09,46,00,00,01,00,01,00,01,00,01,E5
Rx<<NIL

Tx>>AA,03,42,00,00,00,EB
Rx<<NIL

Tx>>AA,05,51,00,01,00,0B,05,F1
Rx<<NIL

(5) I try to change checksum more than 5, the messages are:
Rx<<A4,40,0B,4A

Tx>>A4,09,46,00,00,01,00,01,00,01,00,01,F0
Rx<<NIL

Tx>>A4,03,42,00,00,00,EA
Rx<<NIL

Tx>>A4,05,51,00,01,00,0B,05,04
Rx<<NIL

The testing data told me my message is not wrong, then the ANT Reply message is follow what protocol document.

Thanks      
Rank

Total Posts: 1

Joined 2009-12-20

PM

smile I have got correct ANT messages when I adjust baud rate.

=======================================================
Rx<<A4,01,6F,80,4A

Tx>>A4,09,46,00,(...),64
Rx<<A4,03,40,00,46,00,A1

Tx>>A4,03,42,00,10,00,F5
Rx<<A4,03,40,00,42,00,A5

Tx>>A4,05,51,00,01,00,0B,05,FF
Rx<<A4,03,40,00,51,00,B6

Tx>>A4,03,43,00,00,80,64
Rx<<A4,03,40,00,43,00,A4

Tx>>A4,02,45,00,39,DA
Rx<<A4,03,40,00,45,00,A2

Tx>>A4,01,4B,00,EE
Rx<<A4,03,40,00,4B,00,AC

Rx<<A4,03,40,00,01,03,E5

Rx<<A4,03,40,00,01,03,E5

Rx<<A4,03,40,00,01,03,E5

Rx<<A4,03,40,00,01,03,E5

Rx<<A4,03,40,00,01,03,E5
...
=======================================================      
RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

HI,
How do you know that you are receiving right ANT messages. I mean how you interpret them. I am new to ANT.
Thanks      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

Nishima,

To interpret the messages from ANT, the best resource is the "ANT Message Protocol and Usage Document" here
http://www.thisisant.com/products/data-sheets-brochures

Another great way to understand the messaging for particular configurations is to use ANTware and examine the logs of the serial communication generated by it.