Ok, so if EVENT_TX = { 0xA4 0x03 0x40 0x00 0x01 0x03 }; I am receiving this message every period.
As I said in my first message, I receive these messages from ANT :
{ 0xA4 0x03 0x40 0x00 0x46 0x00 };
{ 0xA4 0x03 0x40 0x00 0x42 0x00 };
{ 0xA4 0x03 0x40 0x00 0x51 0x00 };
{ 0xA4 0x03 0x40 0x00 0x43 0x00 };
{ 0xA4 0x03 0x40 0x00 0x45 0x00 };
{ 0xA4 0x03 0x40 0x00 0x47 0x00 };
{ 0xA4 0x03 0x40 0x00 0x4B 0x00 };
{ 0xA4 0x03 0x40 0x00 0x01 0x03 };
{ 0xA4 0x03 0x40 0x00 0x01 0x03 };
{ 0xA4 0x03 0x40 0x00 0x01 0x03 };
{ 0xA4 0x03 0x40 0x00 0x01 0x03 };
{ 0xA4 0x03 0x40 0x00 0x01 0x03 };
......
when I send :
{ 0xA4, 0x09, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEB };
{ 0xA4, 0x03, 0x42, 0x00, 0X10, 0X00, 0xF5 };
{ 0xA4, 0x05, 0x51, 0x00, 0X21, 0X00, 0x01, 0x01, 0xD1 };
{ 0xA4, 0x03, 0x43, 0x00, 0X00, 0X04, 0xE0 };
{ 0xA4, 0x02, 0x45, 0x00, 0X42, 0XA1 };
{ 0xA4, 0x02, 0x47, 0x00, 0X03, 0XE2 };
{ 0xA4, 0x01, 0x4B, 0x00, 0XEE };
{ 0xA4, 0x09, 0x4E, 0x00, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0XEB };
So I assumed that ANT understand my commands. Besides, I've connected the input and the output of my UART to check messages sent and ANT's replies everytime I make a transaction, all messages are fine.
I'm not using SLEEP & SUSPEND but RST (here what I'm doing : )
Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?|________________ SLEEP
Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë? SUSPEND
________________|Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë?Ë? ANT_RST
| 500ms | 500ms | 500ms |
I've changed my program to check the contents of the message I receive and to ensure that no messages are sent to ANT if RTS is high.
Regards,
Lionel. [file name=my_prog2.txt size=4626]
http://www.thisisant.com/images/fbfiles/files/my_prog2.txt[/file]