Commit graph

544 commits

Author SHA1 Message Date
Ryan Thompson
79785afcf1 bladeRF-cli: added sc16q11 packed format support 2025-04-09 23:17:40 -07:00
Ryan Thompson
b774f45d38 bladeRF-cli: added sc16q11 packed format support 2025-04-09 23:17:40 -07:00
Ryan Thompson
6eab5f6a5e bladeRF-cli: added sc16q11 packed format support 2025-04-09 23:17:40 -07:00
Ryan Thompson
b655422a71 bladeRF-cli: replace cli state member bit_mode_8bit with sample_format
Instead of relying on a bit_mode boolean assignment, we can directly
rely on a bladerf_format state member.
2025-04-09 23:17:40 -07:00
Ryan Thompson
59b68f7bf2 bladeRF-cli: sample format tracked by cli state
This will allow us to track the sample format across the cli and can
replace the bit_mode cli state member.
2025-04-09 23:17:40 -07:00
Ryan Thompson
d0d6d97eb4 doc: bladeRF-cli: updated sample limit to match buffer limit 2025-04-09 23:17:40 -07:00
Ryan Thompson
05dafc8e7e doc: bladeRF-cli: clarify K/M/G as powers of 1024
Fixes #840
2023-11-30 13:06:48 -06:00
Robert Ghilduta
94f2159c87 windows: add a few missing depencies 2023-11-30 05:11:23 -08: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
cf181d0427 bladeRF-cli: fixes 2**32 sample count overflow in RX config
Fixes #941
2023-09-18 13:43:22 +01:00
Ryan Thompson
c45e6b1a18 bladeRF-cli: return error(1) if no available devices
The CLI will only error out if the interactive shell has not been
invoked using the -i flag.

Fixes #844
2023-06-02 17:32:04 -05:00
Ryan Thompson
78457730dd host: jpynb iq sample analysis
Checks for dropped samples with single and dual RX channels enabled.
Currently only works for SC16_Q11 files. Expects a CW.
2023-05-16 11:40:01 -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
Robert Ghilduta
14aaebcc66 bladeRF-cli: clear up nomeclature in set samplerate 2023-02-28 04:43:00 -08:00
Robert Ghilduta
ce85cf17fb bladeRF-cli: bump to version 1.9.0
This version includes expanded support for abbreviations and improved help menus.
For example, set freq can be used as an alias for set frequency.
2023-02-13 03:28:19 -08:00
Robert Ghilduta
df5b47e651 libbladeRF: rename bladerf_set_feature to bladerf_enable_feature 2023-02-13 03:28:19 -08:00
Ryan Thompson
26bba04947 Revert "bladeRF-cli: experimental TX warning when OVERSAMPLE enabled"
This reverts commit 8b249c2446e5ab3c48b40d8b8518c441976fe1c0.
2023-02-13 03:28:19 -08:00
Ryan Thompson
de7ba9076b bladeRF-cli: 8bit mode requires bladeRF 2.0 device 2023-02-13 03:28:19 -08:00
Ryan Thompson
8b6323b7f3 bladeRF-cli: bitmode error handling cleaned up 2023-02-13 03:28:19 -08:00
Ryan Thompson
739946c676 bladeRF-cli: incorporated better error handling in set_feature 2023-02-13 03:28:19 -08:00
Ryan Thompson
0dac86aaa8 bladeRF-cli: register clear moved to feature set
bladeRF reboot will take place when the the feature is set back to default. This resets the OC register config.
2023-02-13 03:28:19 -08:00
Ryan Thompson
06d2fb1b84 bladeRF-cli: 8bit binary file format added and 8bit RX write corrected 2023-02-13 03:28:19 -08:00
Ryan Thompson
c6095de4a8 bladeRF-cli: generalized CSV file format
With the introduction of 8bit formats, it doesn't make much sense to
make a 16bit CSV format. It works just the same as 8bit would.
2023-02-13 03:28:19 -08:00
Ryan Thompson
a37f40045e libbladeRF: BLADERF_FEATURE prefix prepended to feature names 2023-02-13 03:28:19 -08:00
Ryan Thompson
92d77fb8fb bladeRF-cli: experimental TX warning when OVERSAMPLE enabled 2023-02-13 03:28:19 -08:00
Ryan Thompson
746e528718 bladeRF-cli: OVERSAMPLE feature assign warns user to set samplerate
The bitmode warning has been transferred to a feature set warning as
the feature is now responsible for telling libbladeRF to OC the
AD9361.
2023-02-13 03:28:19 -08:00
Ryan Thompson
28f3c7afb6 libbladeRF: get samplerate OC compensation move to libbladeRF
libbladeRF now doubles the returned sample rate when OVERSAMPLE feature
is enabled. This is necessary as the AD9361 is not self aware of its
overclock but libbladeRF is.
2023-02-13 03:28:19 -08:00
Ryan Thompson
da14b08f5c libbladeRF: OVERSAMPLE and DEFAULT sample rate guards implemented
Setting the sample rate will now check with the currently enabled 
feature. It tests if the sample rate is possible like before
and then checks if the currently enabled feature allows it.
2023-02-13 03:28:19 -08:00
Ryan Thompson
8903adb0ea libbladeRF: set samplerate OC compensation moved to libbladeRF
libbladeRF now halves the sent sample rate when OVERSAMPLE feature
is enabled. This is necessary as the AD9361 is not self aware of its
overclock but libbladeRF is.
2023-02-13 03:28:19 -08:00
Ryan Thompson
86a4cda5bd libbladeRF: AD9361 OC moved to libbladeRF
AD9361 OC moved from bladeRF-cli to libbladeRF
2023-02-13 03:28:19 -08:00
Ryan Thompson
8ab43dff7f bladeRF-cli: over sample feature blocks 16bit bitmode when enabled
When 8bit bitmode is enabled with oversample is set, the user is
notified that it is not permitted.
2023-02-13 03:28:19 -08:00
Ryan Thompson
d018efdde1 bladeRF-cli: OC now feature dependent 2023-02-13 03:28:19 -08:00
Ryan Thompson
89f909e174 bladeRF-cli: feature set/get added to cli 2023-02-13 03:28:19 -08:00
Ryan Thompson
d27db404c4 bladeRF-cli: 8bit interactive help added to tx, rx, and generate 2023-02-13 03:28:19 -08:00
Ryan Thompson
6c1ce329c9 bladeRF-cli: 8bit csv conversion notification
CSV conversion notification corrected for CSV->SC8 Q7 conversion
2023-02-13 03:28:19 -08:00
Ryan Thompson
dcd50e2bf3 bladeRF-cli: bitmode change limited
The bit mode is only assigned if the requested bit mode is different
than the current bit mode.
2023-02-13 03:28:19 -08:00
Ryan Thompson
14cc910436 bladeRF-cli: print samplerate 8bit mode support 2023-02-13 03:28:19 -08:00
Ryan Thompson
ae79cfa35c bladeRF-cli: set samplerate prints appropriate values for 8bit mode 2023-02-13 03:28:19 -08:00
Ryan Thompson
b87a231e5e bladeRF-cli: fast sample rate recommendation
Samples rates set between 61.44MHz and 122.88MHz will receive a
recommendation to swtich to 8bit mode.
2023-02-13 03:28:19 -08:00
Ryan Thompson
d44aeea715 bladeRF-cli: AD9361 OC added
Setting the bit mode to 8bit along with a sample rate reassignment
will over clock the AD9361
2023-02-13 03:28:19 -08:00
Ryan Thompson
5ce0abfba1 bladeRF-cli: rxtx_data resolved through cli_state 2023-02-13 03:28:19 -08:00
Ryan Thompson
b5d792a970 bladeRF-cli: tx_csv_to_sc16q11() changed to tx_csv_to_bladerf_format() 2023-02-13 03:28:19 -08:00
Ryan Thompson
3998f35749 bladeRF-cli: RX accepts 8bit samples
RX can decode and write incoming 8bit samples to a CSV
given the bitmode has been set to 8bit.
2023-02-13 03:28:19 -08:00
Ryan Thompson
da350b0b4a bladeRF-cli: generate magnitude reduced for 8bit samples 2023-02-13 03:28:19 -08:00
Robert Ghilduta
c15525d640 bladeRF-cli: 8bit CSV sample conversion implemented in TX 2023-02-13 03:28:19 -08:00
Ryan Thompson
6162224ebb bladeRF-cli: print and set bitmode functions implemented 2023-02-13 03:28:19 -08:00
Ryan Thompson
781bc5d93d bladeRF-cli: bitmode state added 2023-02-13 03:28:19 -08:00
Robert Ghilduta
d7bd9e7c14 bladeRF-cli: missing return value check 2023-02-13 03:28:19 -08:00
Robert Ghilduta
630ffda3e9 bladeRF-cli: standardize capitalization 2023-02-13 03:28:19 -08:00
Robert Ghilduta
362b9ac741 bladeRF-cli: add generate function 2023-02-13 03:28:19 -08:00