I am just starting to work with ANT and am trying to communicate with a AP281M5IB module in synchronous byte-flow control mode. Unfortunately it does not work for me as it should and I hope you can hint me what I may be doing wrong.
1) I reset the module with 1ms RESET signal, then wait 0.5s before starting to really communicate. I am not doing the synchronization sequenca as I understand this is not necessary and even with the sequence, the behaviour was the same.
2) ANT sends me bytes 0x 12 C0 7B 00 29, without preceeding sync byte. These bytes seem to make no sense.
3) When I pull MSG READY down to send a message, I get 0xD2 (followed by 0xFF) instead of the sync byte. I receive this 0xD2 many times(once I counted it was 6 times) and finally I receive the sync byte 0xA5.
4) After receiving the sync byte, I start to send the reset command. After sending just one byte, ANT pulls SEN high and I can not send rest of the packet.
Unfortunately I do not have a scope or analyzer right now to see what is exactly going on. I hope the symptoms that I gave can give some hints to where is the problem, ie. what may I be doing wrong.