Rey Tucker
ee2c85d02a
host: bladeRF-cli: refactor out str<->channel conversions
2018-02-05 15:35:28 -05:00
Rey Tucker
fe211170f2
host: bladeRF-cli/generate.bash: fix pandoc warning
...
pandoc emits a warning if a title is not specified for the
page.
Also: cleanup
2018-01-15 19:24:12 -05:00
Rey Tucker
2f906c5e5e
host: bladeRF-cli: improve cmd_help.h generation
...
generate.bash now allows specification of paths to awk, date, grep, and
so forth; this will permit it to be used in very weird environments.
generate.bash now uses bash built-ins whenever possible.
generate.bash checks the existence of necessary non-built-in commands
before doing anything, and prints a useful error if they're wrong.
Only try doing generate.bash if pandoc and bash are installed.
2018-01-15 19:13:58 -05:00
Rey Tucker
857e301156
host: bladeRF-cli: fix implicit-fallthrough warning
...
This should fix it, and allow it to build with compilers which aren't
GCC 7+.
2018-01-15 17:56:50 -05:00
Brian Glod
4fdc92ca27
host: bladeRF-cli: Intentional case fallthrough
...
Add compiler attribute to denote that the case fallthrough is
intentional and to not throw a warning about it.
2018-01-15 13:35:27 -05:00
Rey Tucker
41e21dc1cb
host: bladeRF-cli: fix uninitialized status var in cmd_poke
...
Fixes clang warning:
poke.c:137:24: error: variable 'status' is used uninitialized whenever
'if' condition is false [-Werror ,-Wsometimes-uninitialized]
Realistically, there is no way that 'status' could be used on line 141
without one of f, f2, or f3 being true (thus setting the value), due to
the test on 132. There is no harm in initializing it anyway, though.
2017-12-22 16:04:02 -05:00
Rey Tucker
bc0d8169d8
host: libbladeRF: doc, consistency fixes
...
Update bladerf_rf_switch_config struct to use "rfic" instead of "ad9361"
for genericness and consistency.
Also clean up missing/incorrect documentation in various places.
Fix bladeRF-cli to use proper struct member names for
bladerf_rf_switch_config.
2017-12-22 16:02:22 -05:00
Rey Tucker
31c1a52007
host: bladeRF-cli: fixup merge issue with AGC commands
2017-12-21 12:55:09 -05:00
Rey Tucker
903e6053c5
host: bladeRF-cli: add ADF4002 lock status to print
2017-12-21 12:55:09 -05:00
Rey Tucker
55c8866d28
host: bladeRF2: fix ADF4002 poke functionality
2017-12-21 12:55:08 -05:00
Rey Tucker
85a5c3c042
host: bladeRF-cli: print AD9361 temperature
...
This is the stub of a general AD9361 low-level debug capability
2017-12-21 12:55:08 -05:00
Rey Tucker
9fe3bb24d5
host: bladeRF-cli: flesh out print rfconfig
2017-12-21 12:55:08 -05:00
Rey Tucker
69678b11f6
host: bladeRF-cli: add RF switch config status print
2017-12-21 12:55:08 -05:00
Rey Tucker
d291f37dd7
host: bladeRF-cli: add READONLY option for printset
2017-12-21 12:55:08 -05:00
Rey Tucker
c19dcb4d96
host: bladeRF-cli: use library calls to enable ADF4002
2017-12-21 12:55:08 -05:00
Rey Tucker
70fc673d62
host: bladeRF-cli: add print/set support for agc, gain
...
print/set agc commands copied from bladeRF 1 master:
print agc
set agc on
set agc off
print/set gain commands:
print gain
print gain tx
print gain rx1 digital
set gain tx1 dsa -10
set gain rx 42
2017-12-21 12:55:08 -05:00
Rey Tucker
2c96247cd6
host: add support for bias tee
...
e.g.
print biastee
set biastee rx 1
set biastee tx 1
set biastee rx 0
set biastee tx 0
2017-12-21 12:55:08 -05:00
Rey Tucker
e433628ddf
host: add ina219 readback to bladeRF-cli
...
Example output from "print ina219":
Bus voltage: 4.896 V
Load current: 0.56 A
Load power: 2.76 W
2017-12-21 12:55:08 -05:00
Rey Tucker
0490f2edf1
host: bladeRF-cli: cleanup _is_tx/_is_rx logic
2017-12-21 12:55:07 -05:00
Rey Tucker
fe9320c8de
host: bladeRF-cli: use "RX1" and "RX2" etc to match silkscreen
2017-12-21 12:55:07 -05:00
Rey Tucker
3c701c68e8
host: bladeRF-cli: bandwidth/frequency mimo fixes
2017-12-21 12:55:07 -05:00
Rey Tucker
5082cba8bc
host: bladeRF-cli: handle independent TX channels properly
2017-12-21 12:55:07 -05:00
Rey Tucker
fced17f4a2
bladeRF-cli: add "channel" option for rx, tx
...
Also conceptually migrate from "modules" to "channels" for clarity
2017-12-21 12:55:07 -05:00
Rey Tucker
f0bc08dc46
bladeRF-cli: add support for ADF4002 access
...
Adds "print adf_enable", "set adf_enable {0,1}", peek adf, and poke adf
commands
2017-12-21 12:55:06 -05:00
Brian Glod
1b1c93cbb7
host/bladeRF-cli/printset.c: Remove channel_sel
...
This bit setting was temporary and has been replaced by bits 18:15 in
the RFFE GPIO register.
2017-12-21 12:55:06 -05:00
Rey Tucker
5554c919ee
bladeRF-cli: fix TX frequency printout
2017-12-21 12:55:05 -05:00
Ryan Tucker
c0a324d4be
printset.c: fix uninit variable errors on 'channel'
2017-12-21 12:55:05 -05:00
Ryan Tucker
60fac98fa6
bladeRF-cli: update print/set commands for bladeRF 2
...
Squashed commit of the following:
commit 4012eb78bb37d4e6e6f5607f5221d888b188c1a9
Merge: c174c7b47 fc968d9d6
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date: Thu Jul 20 12:55:59 2017 -0400
Merge branch 'rtucker-host-fixups'
commit fc968d9d61c3aa4dcd16294de5d8f1c038bf7dcc
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date: Mon Jul 17 17:04:06 2017 -0400
bladeRF-cli/printset: add support for bladerf2 GPIOs
commit 259fed535ab8db6a5ca2aca28f191eff107d0ea3
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date: Mon Jul 17 17:03:46 2017 -0400
bladeRF-cli/printset: frequency cleanup/consistency
commit 1b2b6c128b9a5385b4eb3f0ff34b494bef6a6036
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date: Mon Jul 17 17:02:52 2017 -0400
bladeRF-cli/printset: bandwidth refactor/consistency
commit 4eb522a147318ac3ea13f395bfa2128b24f18945
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date: Mon Jul 17 16:12:53 2017 -0400
bladeRF-cli/printset: add semicolons to PRINTSET_DECLs
This is really minor, but it helps with syntax highlighting in editors.
commit 8c0ad320db764f25f5234208f6347e043c0196cc
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date: Mon Jul 17 16:11:20 2017 -0400
bladeRF-cli/printset: refactor set_samplerate
commit d7574425755d2e730bec84ac04ee1adf8c5d2312
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date: Mon Jul 17 15:10:49 2017 -0400
bladeRF-cli/printset: formatting/consistency cleanup
commit 69fa2b570966b71021239860f6592f007bc788db
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date: Mon Jul 17 13:58:45 2017 -0400
bladeRF-cli/printset: create *err alias ptr
This is not strictly necessary, but it cleans up the code a bit and lets
clang-format do its thing w/r/t lining up assignment operators.
commit d06368768ae7ae95b653161494a7538f913b5857
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date: Mon Jul 17 13:53:03 2017 -0400
bladeRF-cli/printset: modules -> channels
migrate from modules to channels
also do some incremental formatting/consistency tweaks
commit cbb6ed92ed6be329d229958a0daef0bb5782c3f0
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date: Mon Jul 17 13:27:47 2017 -0400
bladeRF-cli: print/set loopback: add AD9361 BIST
commit 6740ff9a8d9760e48109bdc03d38d38e5564b34c
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date: Mon Jul 17 13:24:14 2017 -0400
bladeRF-cli: refactor 'set frequency'
commit 18b6bcf2abbb1423557352057a22419252e5d1ef
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date: Mon Jul 17 13:10:44 2017 -0400
bladeRF-cli: fix and refactor 'set bandwidth'
Query the specific range permitted by the hardware
DRY the BW changing/printing code
commit 94730399669e8f7208a46d7e2e5d17c034a00430
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date: Mon Jul 17 12:16:01 2017 -0400
cli/printset: fix 'set frequency' command
Use the bladerf_get_frequency_range function, use str2uint64_suffix to
be explicit about wanting uint64 freqs
commit 2d9fffbd264add78eee83005047b88275811da10
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date: Mon Jul 17 11:51:21 2017 -0400
bladerf2: fix TX frequency range
Turns out that libad9361 does bounds-checking on the frequency, and it
silently enforces 70e6 <= f <= 6000e6.
commit 4494a734542aeab2602ec9abe1f8522e19262e51
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date: Mon Jul 17 11:50:38 2017 -0400
bladerf2: improve commenting on macros
2017-12-21 12:55:05 -05:00
Ryan Tucker
ad1744c6c9
bladeRF-cli: fix spurious uninit variable warning
...
This is not actually uninitialized when used, but some compilers can't
realize that
2017-12-21 12:55:05 -05:00
Vanya A. Sergeev
0b644a4582
bladeRF-cli: fix end of table fields in printset parameter table
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
93b2645228
bladeRF-cli: annotate print/set help with bladeRF1 specific parameters
2017-12-21 12:55:01 -05:00
Vanya A. Sergeev
fd4638c0ee
bladeRF-cli: rename rx mux setting from BASEBAND_LMS to BASEBAND
...
for cross-compatibility across bladerf1 & bladerf2.
2017-12-21 12:55:01 -05:00
Vanya A. Sergeev
0b3605805a
bladeRF-cli: update canned man page with peek/poke changes
2017-12-21 12:55:01 -05:00
Vanya A. Sergeev
291d231c08
bladeRF-cli: add board specific qualifier to printset parameters
2017-12-21 12:55:01 -05:00
Vanya A. Sergeev
1fda0c3ef3
bladeRF-cli: add board name to report by info cmd
2017-12-21 12:55:01 -05:00
Vanya A. Sergeev
3eebf4dd15
bladeRF-cli: check fpga loaded before disarming triggers in rxtx shutdown
2017-12-21 12:55:01 -05:00
Ryan Tucker
150222a51e
bladeRF-cli: add 'adi' option to peek and poke commands
...
followup to 82736df6
2017-12-21 12:55:00 -05:00
Robert Ghilduta
8c125e9ec5
Add 'adi' option to peek and poke commands in bladeRF-cli
2017-12-21 12:55:00 -05:00
Vanya A. Sergeev
bccd7e19f7
libbladeRF: migrate api to 64-bit frequency
2017-12-21 12:54:58 -05:00
Robert Ghilduta
68bf8e231a
Add string parsing functions
...
The line to argumenet parser uses a two pass approach. The first pass
finds beginning and end of arguments, and counts the number of quotes.
The second pass copies the characters into the argument buffers.
2017-12-07 20:34:33 -08:00
Robert Ghilduta
fe718e8f70
bladeRF-cli: add AGC print and set commands
...
The AGC can be enabled by running set agc on, and it can be disabled by running
set agc off.
2017-07-06 08:27:47 -07:00
Robert Ghilduta
e7fb00c683
bladeRF-cli: add cal table agc rx functionality
2017-07-05 08:59:08 -07:00
Robert Ghilduta
7aff155a97
libbladeRF: add gain specific mean errors to DC calibration table
...
The DC calibration table will now include mean residual errors for 3 different
gains (that will be used by the AGC amont other things) including:
Max : LNA=6dB, RXVGA1=30dB, RXVGA2=15dB
Mid : LNA=6dB, RXVGA1=30dB, RXVGA2= 0dB
Low : LNA=3dB, RXVGA1=12dB, RXVGA2= 0dB
The DC cal table version has been bumped to 2. This commit will allow backward
compatibility with existing DC cal tables.
2017-07-05 08:59:08 -07:00
Jon Szymaniak
3734f5c46a
bladeRF-cli: Corrected incorrect frequency increment in help text
...
As of 1154ef7b , the calibration table generation uses a default of
10 MHz increments. This was changed due to the tradeoff between
improved results and a longer calibration run-time.
Fixes #480
2016-07-12 18:45:19 -04:00
Jon Szymaniak
3b96363cd6
bladeRF-cli: Disarm triggers when shutting down streams
...
If streams are blocked on triggers, attempts to close the CLI or
stop a stream will "stall" for the duration of the stream timeout.
Generally, timeouts will be set to long values when working with
triggers, yielding a particularly nasty user experience. Therefore,
attempts to disarm triggers are when asked shut down a stream.
2016-05-22 19:20:27 -04:00
Jon Szymaniak
8b1e84b0b6
bladeRF-cli: Labeled smb_mode output more explicitly
2016-05-22 19:20:27 -04:00
Jon Szymaniak
85833dbb10
bladeRF-cli: Touched up trigger output
2016-05-22 19:20:27 -04:00
Jon Szymaniak
4365e75d8e
bladeRF-cli: Added deprecation notice to mimo command
...
Use `set smb_mode` and `print smb_mode`.
2016-05-17 00:20:02 -04:00
Jon Szymaniak
cfb8362223
bladeRF-cli: Fixed additional invalid argv access in mimo
2016-05-17 00:20:02 -04:00
Jon Szymaniak
b783694f84
bladeRF-cli: Fixed mimo segfault
...
Print usage if an insufficient number of args are provided.
Previously, this would perform an invalid argv access.
2016-05-17 00:20:02 -04:00