Commit graph

1,396 commits

Author SHA1 Message Date
Robert Ghilduta
2e44a61876 test: reset software timestamp timekeeping to 0 anytime we touch module enable 2024-03-07 02:59:37 -08:00
Robert Ghilduta
624994d65c libbladeRF: fix up sync TX initialization bug 2024-02-26 00:52:44 -08:00
Ryan Thompson
4ec99ebd9d libbladeRF: added cmake find_package() support
Fixes #418
2024-01-18 16:01:15 -06:00
Ryan Thompson
0c611be416 libbladeRF: force rerun frequency calibration on module enable
Addresses #947
2023-12-06 17:24:35 -06:00
Ryan Thompson
bfabd63566 libbladeRF: fix assignment between very fast and very slow sample rates
Failure info:
Failed going from 48,601,811 -> 1,228,911 MSPS.
Worked when first sample rate is < 40,000,001 MSPS.
Worked when the subsequent sample rate is > 2,083,334 MSPS.

ad9361_validate_enable_fir: Invalid: ratio ADC/2 / TX_SAMPL * 16 > TAPS(max 64, adc 388814480, tx 48601810)
[ERROR @ host/libraries/libbladeRF/src/board/bladerf2/rfic_host.c:888] _rfic_host_set_filter: ad9361_set_tx_fir_en_dis(phy, enable) failed: An unexpected error occurred
[ERROR @ host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:1100] bladerf2_set_sample_rate: could not set TX filter mode: An unexpected error occurred
2023-10-31 11:00:36 -05:00
Ryan Thompson
d4cdad16ff doc: note that quick_tune must be non-NULL for the bladeRF micro 2.0 2023-10-31 11:00:36 -05:00
Ryan Thompson
f046180604 host: CMake minimum version bump to 3.5
Accommodates the following warning issued by CMake v3.27.1.

CMake Deprecation Warning:
  Compatibility with CMake < 3.5 will be removed from a 
  future version of CMake.
2023-10-31 10:28:21 -05:00
Ryan Thompson
bfd82bfcca hdl: FPGA patch update v0.15.3 2023-10-31 10:28:21 -05:00
Ryan Thompson
199eac6e5c libbladeRF: get_samplerate_range returns range of current feature
It makes more sense to return a valid sample rate range in the current
state rather than a potential range.
2023-09-27 16:38:57 -05:00
Ryan Thompson
874d83a79f libbladeRF: bladerf_init_stream() timeout and dropped data warning 2023-09-27 16:38:56 -05:00
Ryan Thompson
93cec5db53 test: async invalid parameters errors log as error 2023-09-27 16:38:56 -05:00
Robert Ghilduta
9fc57e6c7f libbladeRF: fix typo in sync_tx 2023-09-19 13:23:32 -07:00
Ryan Thompson
0769521902 doc: corrected value pair type to int8_t
fix #939
2023-09-11 11:04:01 -05:00
Ryan Thompson
86d68eedfd libbladeRF: oversample register config set with bladerf_set_sample_rate 2023-08-25 14:40:01 -05:00
Ryan Thompson
452ba280ba host: rm unused variables
Resolves errors thrown by AppleClang 14.0.3.14030022.
2023-08-15 12:11:58 -05:00
Ryan Thompson
3c32966434 libbladeRF: sync_rx: # of enabled channels must divide into num_samples
Otherwise the buffer alignment would flip flop every other sync call.
2023-07-07 15:44:14 -05:00
Ryan Thompson
475e4596a8 libbladeRF: sync.c: seek within message based on remaining timestamp
Seek within message needed a timestamp based trigger for when MIMO
is enabled.
2023-07-07 15:44:14 -05:00
Ryan Thompson
6ccf082ccf libbladeRF: sync.c: target timestamp calculation refactor 2023-07-07 15:44:14 -05:00
Ryan Thompson
2274d380a0 libbladeRF: sync_rx_meta: --buflen argument added
Buffer size can now be assigned through an argument.
2023-07-07 15:44:14 -05:00
Ryan Thompson
78ac28ceaf libbladeRF: invalid buffer sizes will now be understood in the log 2023-07-07 15:44:14 -05:00
Ryan Thompson
d609034851 libbladeRF: sync_rx_meta: --numsamples argument added
Number of samples can now be assigned through an argument.
2023-07-07 15:44:14 -05:00
Ryan Thompson
99979934d5 libbladeRF: corrected message-in-buffer calculation
Support
+ 8bit MIMO
+ 8bit SISO
+ 16bit MIMO
+ 16bit SISO
2023-07-07 15:44:14 -05:00
Ryan Thompson
e60687033c libbladeRF: enable both RX/TX channels when layout is MIMO
The rfic_host now checks the stream_config for the channel_layout. If
RX or TX directions are configured for MIMO operation, both respective
channels will be enabled regardless of what channel is passed to
bladerf_enable_module.
2023-07-07 15:44:14 -05:00
Ryan Thompson
9faea357d0 libbladeRF: rx_count option added 2023-07-07 15:43:10 -05:00
Ryan Thompson
aa29cda96c libbladeRF: sync_rx_meta: MIMO option functional 2023-06-27 13:22:40 -05:00
Ryan Thompson
f6172a265a libbladeRF: sync_rx_meta: MIMO option added 2023-06-27 13:22:40 -05:00
Ryan Thompson
3e90784670 hdl: FPGA patch update v0.15.2
Corrects RX timestamp when MIMO enabled.
2023-06-26 13:37:36 -05:00
Ryan Thompson
c123d8398e libbladeRF: oversample gain restrictions removed
Gain assignments with the oversample feature enabled has been
stabilized across the entire gain range in the previous commit.
2023-06-08 08:49:01 -05:00
Ryan Thompson
01a8d0e8ce libbladeRF: gain assignments stabilized for oversample feature
Fixes #902
2023-06-08 08:49:01 -05:00
Ryan Thompson
7ec824fbbd libbladeRF: oversample register config moved to function 2023-06-08 08:49:01 -05:00
Ryan Thompson
c424eae9e6 libbladeRF: lower bound set for oversample gain 2023-06-07 12:38:05 -05:00
Ryan Thompson
48763b01c3 libbladeRF: oversample feature gain > 39 permitted
Still having problems from [12:38]. Starting from 39, spectrum operates
as expected.
2023-06-05 14:36:09 -05:00
Ryan Thompson
dfd8549d74 libbladeRF: bandwidth assignments in oversample mode issue log warning
Fixes #920
2023-06-05 13:44:25 -05:00
Ryan Thompson
368f0ac9e8 libbladeRF: FPGA load timeout increase
The longer timeout accommodates longer interface enable times. A test
script has been provided in case custom timeouts have been added
to usb.c.
2023-05-16 11:40:01 -05:00
Ryan Thompson
3a79fef1bd libbladeRF: correct documented SC8_Q7 range
Fixes #921
2023-05-11 16:50:46 -05:00
Ryan Thompson
86410e2721 hdl: FPGA patch update v0.15.1
+ 8bit RX timestamp correction
+ 8bit support signal_generator.vhd
2023-05-11 16:44:28 -05:00
Brian 'redbeard' Harrington
b0c940194f typo: libbladerf/CMakeLists.txt typo in libusb
In `host/libraries/libbladerf/CMakeLists.txt` there was typo in the
diagnostic instructing a user to install "libusb" and instead said
"lisusb"
2023-05-09 01:47:04 -07:00
Mike Ryan
2b90ed3976 libbladerf: correctly report num_samples for SC8_Q7 in async api
The async API has two codepaths for reporting samples to a user-provided
callback depending on whether packet metadata is requested. In the path
where it is requested, the code correctly uses bytes_to_samples() to
report num_samples. In the path where no metadata is requested, the code
uses the previously hardcoded call to bytes_to_sc16q11(), which
underreports num_samples by half for SC8_Q7 format samples. This appears
to have been an oversight, and this patch corrects the non-metadata path
to match the metadata path.
2023-04-11 03:18:16 -07:00
Ryan Thompson
4b9f9db756 Revert "libbladeRF: issue#913 SW workaround"
This reverts commit 447fc3da7bfeb98e190fa1bcebc36ca7e48b6dfc.
2023-03-31 17:18:01 -05:00
Ryan Thompson
3f18c4de33 libbladeRF: sync_rx_meta format and rx_count printout 2023-03-31 17:18:01 -05:00
Ryan Thompson
4851a104cf libbladeRF: issue#913 SW workaround
The timestamp increment pattern has been discovered. The fix will
ultimately requires an HDL change.
2023-03-31 17:18:01 -05:00
Ryan Thompson
5d3f69271e libbladeRF: rx_count option added 2023-03-31 17:18:01 -05:00
Ryan Thompson
26d381a52b libbladeRF: sync_rx: SC8_Q7_META in meta and target timestamp init 2023-03-31 17:18:01 -05:00
Ryan Thompson
f04d3a8eed libbladeRF: sync_rx_meta logging 2023-03-31 17:18:01 -05:00
Ryan Thompson
cd0e18769d libbladeRF: example options revamped and bitmode sel added 2023-03-31 17:18:01 -05:00
Ryan Thompson
77f079ae7b libbladeRF: example RX meta assigns format through init parameter 2023-03-31 17:18:01 -05:00
Ryan Thompson
04cc3df992 doxygen: recursive search enabled 2023-03-31 17:18:01 -05:00
Ryan Thompson
7825ae5c5e libbladeRF: changed xb200 quick tune param recommendation
XB-200 quick tune parameter recommendation now considered log info rather 
than an error.

Fix #882
2023-03-31 17:18:01 -05:00
Robert Ghilduta
b0338b4a47 Cmake: provide more verbose messages when no backends can be enabled 2023-03-09 01:09:08 -08:00
Robert Ghilduta
8a7b41ae52 libbladeRF: conditionally set CMake policy
Allow for backward compatiblity with pre 3.20 versions of CMake by conditionally
setting CMake policy CMP0115
2023-03-04 00:40:14 -08:00