Userspace script for arbitrary IQ tx via tx_intf

This commit is contained in:
Xianjun Jiao 2022-03-28 12:22:58 +02:00
parent 10cc847f81
commit 7efd1542d4
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#!/bin/bash
home_dir=$(pwd)
set -x
if test -d "/sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr"; then
cd /sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr
else
cd /sys/devices/soc0/fpga-axi\@0/fpga-axi\@0\:sdr
fi
cat ~/openwifi/arbitrary_iq_gen/iq_single_carrier_1000000Hz_512.bin > tx_intf_iq_data
cat tx_intf_iq_data
cd $home_dir

15
user_space/tx_intf_iq_send.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
home_dir=$(pwd)
set -x
if test -d "/sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr"; then
cd /sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr
else
cd /sys/devices/soc0/fpga-axi\@0/fpga-axi\@0\:sdr
fi
echo 1 > tx_intf_iq_ctl
cat tx_intf_iq_ctl
cd $home_dir