Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

UART Transmission

RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

Hi,

I'm using a UART and a GPIO to control the ANT.

Here is sequence I do to restart the ANT :
RST = '0' SUSPEND = '1' SLEEP = '1' for 500 ms;
RST = '1' SUSPEND = '1' SLEEP = '1' for 500 ms;
RST = '1' SUSPEND = '1' SLEEP = '0' for 500 ms;

Then I start to send command:

1: Set the Network Key of my channel :
{ 0xA4, 0x09, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEB, 0x00, 0x00 };

2: Assign my channel :
{ 0xA4, 0x03, 0x42, 0x00, 0X10, 0X00, 0xF5, 0x00, 0x00 };

3: Set my channel ID :
{ 0xA4, 0x05, 0x51, 0x00, 0X21, 0X00, 0x01, 0x01, 0xD1, 0x00, 0x00 };

4: Set my RF Frequency :
{ 0xA4, 0x02, 0x45, 0x00, 0X42, 0XA1, 0x00, 0x00 };

5: Set my transmission Power :
{ 0xA4, 0x02, 0x47, 0x00, 0X03, 0XE2, 0x00, 0x00 };

6: Open my Channel :
{ 0xA4, 0x01, 0x4B, 0x00, 0XEE, 0x00, 0x00 };

7: Send a broadcast message :
{ 0xA4, 0x09, 0x4E, 0x00, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0XEB, 0x00, 0x00 };

From step 1 to 6 I have no problem, ANT give my goods answers:
{ 0xA4, 0x03, 0x40, 0x00, My_CMD, 0x00, CS };

But after the 7th step I get that message :
{ 0xA4, 0x03, 0x40, 0x00, 0x01, 0x03, 0xE5 };

And not just one time but over and over.
Is that normal?


Regards,
Lionel Gautier.      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

That would be an EVENT_TX. This message indicates that your master is transmitting data every channel period, and is normal. Please see Section 9.5.5.1 of the "ANT Message Protocol and Usage" document for more details on the messaging involved with sending broadcast data.      
Rank

Total Posts: 25

Joined 2010-01-29

PM

Ok, does MSG_ID = 0x01 means an EVENT?      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

Yes. A full description of the Channel Response/Event Messages is on section 9.5.6 of the same document.      
Rank

Total Posts: 25

Joined 2010-01-29

PM

Perfect :D thank you for your help.