mirror of
https://github.com/open-sdr/openwifi.git
synced 2025-01-18 02:39:44 +00:00
Userspace script for arbitrary IQ tx via tx_intf
This commit is contained in:
parent
10cc847f81
commit
7efd1542d4
15
user_space/tx_intf_iq_data_to_sysfs.sh
Executable file
15
user_space/tx_intf_iq_data_to_sysfs.sh
Executable 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
15
user_space/tx_intf_iq_send.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user