Thank you for reply, Harrison.
For master side, as I wrote before, I called previous functions. These are with following order:
ANT_AssignChannel
ANT_SetChannelId
ANT_SetChannelRFFrequency
ANT_SetChannelPeriod
ANT_SetChannelSearchTimeout
ANT_OpenChannel
I am debugging step by step and I am geting positive feedback for each of them (Successful Channel Event). Then, master channel start sending packages. For each package, it gets successful transmission event code. I dont see any other channel event code on the UART channel.
We are using our custom boards. Since everything is working pretty much straight forward, then I tough to try Sparkfun's AP1 breakout board on SLAVE side, where master side is again our AP2 custom boards. Actually, without any package lost I have received all packages I sent.
Yesterday, while I am trying our AP2 custom boards, I accidentally receive one package from master. Then I figure out maybe I have a problem on channel synchronization. Then, it seems to be look like hardware problem. Today, I checked all components again. Everything looks ok, except, 16MHz Crystal. We used following crystal for 16 MHz one. (
http://www.farnell.com/datasheets/1520537.pdf) with following features:
CRYSTAL, FA-238, 16MHZ, 50PPM, 12.5PF
Frequency: 16MHz
Frequency Tolerance: ± 50ppm
Load Capacitance: 12.5PF
Frequency Stability: ± 30ppm
Operating Temperature Range: -40 ° C to +85 ° C
Crystal Mounting Type: SMD
Crystal Case Type: 3.2mm x 2.5mm
No. of Pins: 4
SVHC: No SVHC (18-Jun-2012)
Output Frequency: 16MHz
Series: FA-238
Temperature Stabilty: ± 50ppm
On AP2 datasheet, it is written 9pf crystal to use with AP2. Can it be the source of the problem? Moreover, when I try to connect our AP2 custom board to ANT enabled Sony phones, we get some receive error event message on mobile phone, where our AP2 board is master and mobile phone is slave.
Can be reason of problem crystal that we used? That's how I come up. Do you have any suggestion?
Thank you for your time and afford.