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.