- fix bug where test would erroneously pass due to negative value
- add gain, better threshold control, png output
- requirements.txt now supports Ubuntu 20.04 and newer
Update cmake_minimum_required calls to use the 'min...max' version range syntax
to fix CMake deprecation warnings. Also modernized CMP0115 policy to use the
NEW behavior instead of OLD.
The streaming test allows for cross testing between MIMO, SISO, TX, RX, meta,
and non-meta configurations.
Example: TX a CW at 50MSPS and at a frequency of (915MHz+50MHz/16) with meta enabled
./output/libbladeRF_test_streaming -te -s 50M
Example: TX and RX at 25MSPS and at a frequency of (915MHz+25MHz/16) without meta enabled
./output/libbladeRF_test_streaming -tr -s 25M
The gain calibration table will compare the serial number in the CSV
with the serial number of the opened device. A warning will be issued
if the serial numbers do not match.
If the the file location is not specified, using a NULL file location,
then try loading the expected default file name from one of the
find_file locations.
The test renames the files to the default serial based file names and
stores them alongside the binary (one of the find_file locations).
Adds the gain calibration tables along with the prototype for
bladerf_load_gain_calibration(). Also copies the stored calibration
references to the output directory.
This isolates the gain differentiation on init from the CLI or Gnuradio.
Refer to the instructions below.
Instructions:
cd bladeRF/host/libraries/libbladeRF_test/test_gain_compare/
python -m venv env
source ./env/bin/activate
pip3 install -r requirements.txt
cd bladeRF/host/build
make -j`nproc` && sudo make install
./output/libbladeRF_test_gain_compare
cd ../libraries/libbladeRF_test/test_gain_compare/
mv ~/code/bladeRF/host/build/dual_test.bin .
python3 view_binary.py -n 2
This provides a way to test MIMO and SISO power measurements through
the CLI. The power for both channels under SISO and MIMO should be
about the same.
Instructions
---------------
python -m venv env
source ./env/bin/activate
pip install -r requirements.txt
Ch1 & Ch2:
bladeRF-cli -s bladerf_script_ch12.sh
python view_binary.py -n 2
Ch1:
bladeRF-cli -s bladerf_script_ch1.sh
python view_binary.py -n 1
Ch2:
bladeRF-cli -s bladerf_script_ch2.sh
python view_binary.py -n 1
Resolved the compiler warning caused by comparing
getopt_long's return value with a char. Changed 'c'
from char to int to correctly handle -1 return values.
Fixes#952