$ make test_hdl
[----------] Global test environment tear-down
[==========] 63 tests from 2 test suites ran. (381209 ms total)
[ PASSED ] 63 tests.
[100%] Built target test_hdl
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
Specifically, when there's a missing compat table entry. All callers
specify that they want to be forgiving of version mismatches, so this
seems in the spirit of the call tree.
Ran into this error when playing with a custom-loaded FPGA; if I had
flashed the FPGA instead of simply loading it, this could have bricked
the blade (or at least forced me into a very involved recovery process).
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.
The gain target is either set or calculated based on the gain mode. If
using manual gain control, the gain target from the gain table is
returned. If the AGC is enabled, the gain target is calculated based
on the current gain.
This ensures the calibration is enabled once the calibration is loaded.
Since gain calibration relies on top level call to set the gain,
bladerf_set_gain(), we have to unlock the mutex and call said function.
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).
This changes the method of storing the binary data. Rather than a naive
CSV save, we package the binary in a bladeRF image format containing
metadata along with the power vs. frequency data.
TX=0dBm and RX=-30dBm are measurement targets set by the calibration
setup. These values are not to be changed unless the test measurement
setup has changed.
Adds the gain calibration tables along with the prototype for
bladerf_load_gain_calibration(). Also copies the stored calibration
references to the output directory.
"Invalid operation or parameter" was the bladeRF error code returned
when samples were unallocated. Now, a log error is triggered saying
"bladerf_sync_tx: samples is null" and the return value is a bladeRF
memory error.