Commit graph

297 commits

Author SHA1 Message Date
Ryan Thompson
2935ce5251 test: added oversample test channel select and disabled channel check
If we see over 40% of the samples at zero, it's likely that a channel
is disabled. Reverting 55b5a0d07c will
get this test to fail.
2025-07-07 12:45:18 -05:00
Ben Morse
3d647f3db9 host: improve txrx_hwloop test
- 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
2025-07-03 01:29:26 -07:00
Ben Morse
4494aa41ab host: test_regression can build every bitfile 2025-06-13 15:39:22 -07:00
Ben Morse
ddc83606ff host: fix test_txrx_hwloop
- fix duty cycle error for subsequent iterations in the test
2025-06-13 15:39:07 -07:00
Ben Morse
86c5063425 host: Fixes for Windows
- Changes around getopt/getopt_long
- CLOCK_MONOTONIC fix
- link fix
2025-06-13 15:39:00 -07:00
Ben Morse
918535854c bladeRF-fsk: host: various errors and compiler warning fixes on multiple platforms 2025-06-07 21:58:57 -07:00
Ryan Thompson
5be9df53a8 test: add libbladeRF oversample test 2025-05-20 01:47:40 -07:00
Robert Ghilduta
8f99003e36 libbladeRF_test: update dependency 2025-05-20 00:32:33 -07:00
Robert Ghilduta
6905c37642 host: finish off cross-platform support for Windows
libbladeRF now compiles under MinGW as well as MSVC under Windows
2025-04-24 04:36:36 -07:00
Robert Ghilduta
5863f983a2 host: remove remaining libpthreadswin32 and add fixups to cmake 2025-04-24 04:36:36 -07:00
Robert Ghilduta
1062b40d46 host: begin removing libpthreadswin32 from cmakes 2025-04-24 04:36:36 -07:00
Robert Ghilduta
ee0e0040b6 libbladeRF_test: change over to libbladeRF thread macros 2025-04-24 04:36:36 -07:00
Ryan Thompson
af0045347f host: update CMake minimum required version format
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.
2025-04-24 04:36:36 -07:00
Ryan Thompson
4fd2a40ae1 host: googletest and abseil version bump 2025-04-24 04:36:36 -07:00
Ryan Thompson
45e2d8f128 test: bump python requirements.txt versions 2025-04-09 23:17:40 -07:00
Ryan Thompson
16c184b6dc test: added fx3_gpif_iq_packed_tb to regression test 2025-04-09 23:17:40 -07:00
Ryan Thompson
04c1215e02 libbladeRF: test: added packet test 2025-04-09 23:17:40 -07:00
Ryan Thompson
a0937cc50c doc: updated buf size limit in examples and tests 2025-04-09 23:17:40 -07:00
Ryan Thompson
465ea0a49e libbladeRF: test: added streaming test
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
2025-04-09 23:17:40 -07:00
Ryan Thompson
26e91a550e libbladeRF: test: fix gain compare dev init 2024-08-10 18:20:33 -07:00
Ryan Thompson
5e041d0ada libbladeRF: gain_calibration: added serial number to gain cal table
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.
2024-08-07 15:35:55 -05:00
Ryan Thompson
a83272d452 libbladeRF: gain_calibration: added gain cal auto loading support
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).
2024-08-07 15:19:06 -05:00
Ryan Thompson
361646af41 libbladeRF: test: added gain calibration test to regression test 2024-08-07 15:19:06 -05:00
Ryan Thompson
dbf50d88d0 libbladeRF: gain_calibration: added RX test sweep 2024-08-07 15:19:06 -05:00
Ryan Thompson
ce634ef649 libbladeRF: gain_calibration: CSV additional parameters supported
The CSV import supports the added parameters and cross test for gain
and channel combinations.
2024-08-07 15:19:06 -05:00
Ryan Thompson
00346bba68 libbladeRF: gain_calibration: new example gain calibration CSVs 2024-08-07 15:19:06 -05:00
Ryan Thompson
cb9dc300b1 libbladeRF: gain_calibration: gain corr set by bladerf_set_gain() 2024-08-07 15:19:06 -05:00
Ryan Thompson
e94f3c7378 libbladeRF: gain_calibration: gain correction implementation
Initially administered through frequency assignment.
2024-08-07 15:19:06 -05:00
Ryan Thompson
228de95650 libbladeRF: gain_calibration: print function added 2024-08-07 15:19:06 -05:00
Ryan Thompson
cdaaa3d915 libbladeRF: gain_calibration: set gain target on load, set_gain, and en 2024-08-07 15:19:06 -05:00
Ryan Thompson
b51057d774 libbladeRF: gain_calibration: load gain implementation
+ Automatic csv to bin file conversion
+ Gain tables for each channel
2024-08-06 18:47:45 -05:00
Ryan Thompson
838c177eba libbladeRF: gain_calibration: load function initialized 2024-08-06 18:47:45 -05:00
Ryan Thompson
f41966dcf8 libbladeRF: gain_calibration: example sweeps added 2024-08-06 18:47:45 -05:00
Ryan Thompson
3583aaca8e libbladeRF: gain_calibration: init
Adds the gain calibration tables along with the prototype for
bladerf_load_gain_calibration(). Also copies the stored calibration
references to the output directory.
2024-08-06 18:47:45 -05:00
Ryan Thompson
afc636073e libbladeRF: test: gain_compare: C test added
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
2024-08-06 17:31:31 -05:00
Ryan Thompson
09fcacc9bc libbladeRF: test: gain_compare: comparing RX power with MIMO and SISO configs
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
2024-08-06 17:31:31 -05:00
Ryan Thompson
a87ad2208b libbladeRF: test: null and status checks in test_common.h 2024-08-06 17:31:31 -05:00
Ryan Thompson
f28c665024 libbladeRF: test: fixed "unrecognized option '--gtest_list_tests'" on make 2024-08-06 17:31:31 -05:00
Ryan Thompson
87337ccec0 libbladeRF: test: test_hwloop target added
Builds the python virtual environment for python based bladeRF tests.
2024-08-06 17:31:31 -05:00
Ryan Thompson
a34f6aaf1b test: added clock select test 2024-08-06 17:30:40 -05:00
Ryan Thompson
044fb54d61 test: libbladeRF: added bladerf_get_gain_modes to gain test
The bladeRF 1.0 should pass at this commit. The bladeRF 2.0 should pass
on the subsequent commit.
2024-08-02 15:25:59 -05:00
Robert Ghilduta
2fbae2c38b libbladeRF_test: bump dependency versions 2024-04-15 00:21:31 -07:00
Ryan Thompson
1034fe0d41 test: added FPGA load test 2024-04-04 08:20:54 -05:00
Ben Morse
e50f28fba3 libbladeRF: fix compliation of regression tests with an older g++ 2024-03-04 14:16:08 -08:00
Ryan Thompson
38ab0517bc test: regression: added cmake version guard for FetchContent 2024-03-01 14:19:44 -06:00
Robert Ghilduta
94f2159c87 windows: add a few missing depencies 2023-11-30 05:11:23 -08:00
Robert Ghilduta
82eabb2f0e libbladeRF_test: bump dependency 2023-11-29 13:16:00 -08:00
Ryan Thompson
1a2d9e3e02 test: txrx_hwloop: fix getopt_long warning by changing 'c' to int
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
2023-11-28 23:32:11 +00:00
Ryan Thompson
d0fbe05690 test: device test label turned into libbladeRF label
Not really a need to separate tests as libbladeRF is intended to
interface with the device.
2023-10-31 11:01:04 -05:00
Ryan Thompson
2b655e9423 test: python virtual environment setup added to build output
The setup_env.sh and requirements.txt files are copied to build/output.

Ex:
$ ./output/setup_env.sh
$ source nuand/bin/activate
$ python ./output/libbladeRF_test_txrx_hwloop.py
2023-10-31 11:01:04 -05:00