Commit graph

614 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
65cdf88994 bladeRF-power: fixed ncurses dep
On macOS, sometimes the ${CURSES_LIBRARIES} variable provided by
 find_package(Curses) doesn't correctly include all the necessary linkage
 information, especially when using wide character support. By explicitly adding
 ncurses to the link libraries for Apple platforms, we ensure that the linker
 can find all the required symbols.
2025-04-09 23:17:33 -07:00
Ryan Thompson
b98f385fb4 bladeRF-power: added sample rate assignment 2024-08-08 00:15:01 -05:00
Ryan Thompson
5f64e3f1c4 bladeRF-power: set test gain control to manual when TX 2024-08-07 15:35:55 -05:00
Ryan Thompson
94c08ebc9f bladeRF-power: added channel select 2024-08-07 15:35:55 -05:00
Ryan Thompson
68f396a102 bladeRF-power: added ascii text art for power measurements
█████╗    ███████╗       ██████╗     ██╗         ██████╗ ██████╗ ███╗   ███╗
           ██╔══██╗   ╚════██║       ╚════██╗   ███║         ██╔══██╗██╔══██╗████╗ ████║
███████╗   ╚██████║       ██╔╝        █████╔╝   ╚██║         ██║  ██║██████╔╝██╔████╔██║
            ╚═══██║      ██╔╝        ██╔═══╝     ██║         ██║  ██║██╔══██╗██║╚██╔╝██║
            █████╔╝     ██╔╝      ██╗███████╗    ██║         ██████╔╝██████╔╝██║ ╚═╝ ██║
            ╚════╝      ╚═╝       ╚═╝╚══════╝    ╚═╝         ╚═════╝ ╚═════╝ ╚═╝     ╚═╝
2024-08-07 15:35:55 -05:00
Ryan Thompson
818082947a bladeRF-power: cli: added stderr message viewer 2024-08-07 15:35:55 -05:00
Ryan Thompson
eff35dd799 bladeRF-power: cli: display warning if bladeRF-power window is too small
This actively checks if the window is too small and will provide a
warning when data is being hidden.
2024-08-07 15:35:55 -05:00
Ryan Thompson
d9be3348c3 bladeRF-power: cli: display calibration info when 'i' is pressed 2024-08-07 15:35:55 -05:00
Ryan Thompson
f370c2aef3 bladeRF-power: cli: rm module disable after stream
Closing the bladeRF after the module disable causes some usb interfaces
to fatally crash specifically for the TX interface.

discovery notes:
- Enable module and bladerf_close both call sync_deinit
- Mutex is destroyed in sync_deinit
2024-08-07 15:35:55 -05:00
Ryan Thompson
935ef43fb9 bladeRF-power: cli: added engineering notation suffix ingestion
This allows arguments to be specified with engineering notation.
E.g. bladeRF-power -f 4G
2024-08-07 15:35:55 -05:00
Ryan Thompson
8ec93c517c bladeRF-power: add FIR filter for power equalization across bandwidth
The FIR filter will equalize the noise figure across the bandwidth of
the bladeRF 2.0. After equalization, measurements of off-center CWs and
modulated waveforms are brought within +-1dB of error.
2024-08-07 15:35:55 -05:00
Ryan Thompson
b4e50ac1e4 bladeRF-power: added README.md and appended to utilities README.md 2024-08-07 15:35:55 -05:00
Ryan Thompson
3d350853b9 bladeRF-power: added install target 2024-08-07 15:35:55 -05:00
Ryan Thompson
64e709e885 bladeRF-power: init 2024-08-07 15:35:55 -05: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