Dear all;
I am using the adrv9361z7035-BOB. I am facing the problem during LO tuning between 2400-2500 MHz When I start to sweep input 2400-2500 MHz it working fine as frequency changes. When I start sweep input change frequency from 2450-2500 MHz then its behave on output side 2400-2500 MHz. I am using 2 profiles from available on chip 8 profiles .I think its LO synchronization problem if yes/no then guide me.
I am using following steps:
- I set RF BW: 50 MHz
- Two Center Frequencies: 2425 MHz, 2475 MHz
- dwell Samples:1200
- hop enable:1
- Check the Script below
Script
/*
#!/bin/sh
find_zynq_base_gpio () {
for i in /sys/class/gpio/gpiochip*; do
if [ "zynq_gpio" = `cat $i/label` ]; then
return `echo $i | sed 's/^[^0-9]\+//'`
break
fi
done
return -1
}
if [ `id -u` != "0" ]
then
echo "This script must be run as root" 1>&2
exit 1
fi
for i in $(find -L /sys/bus/iio/devices -maxdepth 2 -name name)
do
dev_name=$(cat $i)
if [ "$dev_name" = "ad9361-phy" ]; then
phy_path=$(echo $i | sed 's:/name$::')
cd $phy_path
break
fi
done
if [ "$dev_name" != "ad9361-phy" ]; then
exit
fi
#Setup 8 Profiles 1MHz spaced
##band1-P1
echo 2225000000 > out_altvoltage1_TX_LO_frequency
echo 2225000000 > out_altvoltage0_RX_LO_frequency
echo "Initializing PROFILE $i at 2425000000 MHz"
echo 0 > out_altvoltage1_TX_LO_fastlock_store
echo 0 > out_altvoltage0_RX_LO_fastlock_store
##band1-P2
echo 2275000000 > out_altvoltage1_TX_LO_frequency
echo 2275000000 > out_altvoltage0_RX_LO_frequency
echo "Initializing PROFILE $i at 2475000000 MHz"
echo 1 > out_altvoltage1_TX_LO_fastlock_store
echo 1 > out_altvoltage0_RX_LO_fastlock_store
##band1-P3
echo 2225000000 > out_altvoltage1_TX_LO_frequency
echo 2225000000 > out_altvoltage0_RX_LO_frequency
echo "Initializing PROFILE $i at 2425000000 MHz"
echo 2 > out_altvoltage1_TX_LO_fastlock_store
echo 2 > out_altvoltage0_RX_LO_fastlock_store
##band1-P1
echo 2275000000 > out_altvoltage1_TX_LO_frequency
echo 2275000000 > out_altvoltage0_RX_LO_frequency
echo "Initializing PROFILE $i at 2425000000 MHz"
echo 3 > out_altvoltage1_TX_LO_fastlock_store
echo 3 > out_altvoltage0_RX_LO_fastlock_store
##band1-P2
echo 2225000000 > out_altvoltage1_TX_LO_frequency
echo 2225000000 > out_altvoltage0_RX_LO_frequency
echo "Initializing PROFILE $i at 2475000000 MHz"
echo 4 > out_altvoltage1_TX_LO_fastlock_store
echo 4 > out_altvoltage0_RX_LO_fastlock_store
##band1-P3
echo 2275000000 > out_altvoltage1_TX_LO_frequency
echo 2275000000 > out_altvoltage0_RX_LO_frequency
echo "Initializing PROFILE $i at 2425000000 MHz"
echo 5 > out_altvoltage1_TX_LO_fastlock_store
echo 5 > out_altvoltage0_RX_LO_fastlock_store
##band1-P1
echo 2225000000 > out_altvoltage1_TX_LO_frequency
echo 2225000000 > out_altvoltage0_RX_LO_frequency
echo "Initializing PROFILE $i at 2425000000 MHz"
echo 6 > out_altvoltage1_TX_LO_fastlock_store
echo 6 > out_altvoltage0_RX_LO_fastlock_store
##band1-P2
echo 2275000000 > out_altvoltage1_TX_LO_frequency
echo 2275000000 > out_altvoltage0_RX_LO_frequency
echo "Initializing PROFILE $i at 2475000000 MHz"
echo 7 > out_altvoltage1_TX_LO_fastlock_store
echo 7 > out_altvoltage0_RX_LO_fastlock_store
#Enable Fastlock Mode
iio_attr -D ad9361-phy adi,tx-fastlock-pincontrol-enable 1
echo 0 > out_altvoltage1_TX_LO_fastlock_recall
iio_attr -D ad9361-phy adi,rx-fastlock-pincontrol-enable 1
echo 0 > out_altvoltage0_RX_LO_fastlock_recall
echo "Entering to find the hopping IP"
for i in $(find -L /sys/bus/iio/devices -maxdepth 2 -name name)
do
dev_name=$(cat $i)
if [ "$dev_name" = "axi-hopper" ]; then
phy_path=$(echo $i | sed 's:/name$::')
echo "Hopping IP found"
cd $phy_path
break
fi
done
if [ "$dev_name" != "axi-hopper" ]; then
echo "Hopping IP not found"
exit
fi
echo 1 > hopping_enable
echo 1200 > dwell_samples
*/
Thanks