Thanks for your answer,
This are the values the MCU receives from the AP2 module:
(Reset)
0xA4, 0x01, 0x6F, 0x20, 0xEA
This is the message I would expect after sending the reset command. Next I set the network key and AP2 answers:
0xA4, 0x03, 0x01, 0x46, 0x00, 0xE8
0xE8 is not the value one gets if you calculate the XOR of the previous values. This lead me to believe that the data the MCU is showing me may not be the real data the ANT is sending (it is strange because the UAT library on the MCU works perfectly when used to communicate with a PC).
I decided to see if I had the same problem using the AP3 module. I did not: the same MCU code setup the channel and opened it and the AP3 module responded correctly to every command I used to set up the channel.
This is the sequence I use to se up the channel
1) reset AP module
2) Set Channel Key
3) Assign Channel
4) Set Channel ID
5) Set RF Frequency (to 2,457 GHz)
6) Open channel
I'm currently using the AP2 module and the AP3 module @ 57600 bps
Could it be that the data rate is too high for the AP2?
Anyone got any ideas?
Thanks for any help
Bobbymk