On Mon, May 31, 2010 at 11:00:17AM +0800, jf w wrote:
hi all,
I want to use the read_aux_adc method to get the RSSI, but the results I got
seem meaningless.
Everytime I call the read_aux_adc, the result increases step by step.
No matter whether there is a sender, the result is the same.
Does anyone come up against this problem ?
Any suggestion is helpful to me.
What daughterboard are you using?
Which side is it installed in, side A or side B?
What argument values are you passing to read_aux_adc?
Are you calling it from C++ or Python?
I’m using RFX2400 daughterboard on side B, my arguments are slot=2
which_adc = 0 ,and I’m calling it from python.
Your question inspire me that my arguments may be wrong. I think the
slot
argument should be 3(SLOT_RX_B), but I don’t know the meaning of
which_adc
and how to set it.
There are two aux_adc on one ad9862:aux_adc_a and aux_adc_b , but there
are
four pins : aux_adc_a1,aux_adc_a2, aux_adc_b1 and aux_adc_b2. But what
is
the input of the signal on these pins?
Thanks for you reply, After reading the code, I think the argument 1,0
should be right.
But the result is strange. when there isn’t a sender , the value
returned is
always 12. While there is a sender and the distance between sender and
receiver is less than 1m, the value returned is between 0~24 (maybe less
than 12), no matter what the tx-amplitude of sender is. Does the result
make
sense?
Thanks a lot.
P.S.
the result with a sender:
4 24 8 20 24 16 20 20 20 8 8 20 16 20 20 16 4 12 24 0 20 24 8 20 0 8
12 16 0 16 4;
the result without a sender:
12 12 12 12 12 12 12 12 12 12 12 12 12 12