Age | Commit message (Collapse) | Author | Files | Lines |
|
From: Stefan `Sec` Zehl <sec@42.org>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
|
|
Both from 2to3 and some manual tweaks from here and there.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
|
|
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
|
|
Since GNU Radio is gradually replacing Boost with C++11, it seemed worth
doing that for the HackRF blocks I was working on. This change removes
all usage of boost::assign.
From: Clayton Smith <argilo@gmail.com>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
|
|
To allow switching between transmit and receive mode within a single
flow graph, I've followed the model used by the BladeRF: I factored
common code into hackrf_common.cc and hackrf_common.h, and created a
"_devs" map there to keep track of which devices have been previously
opened. Shared pointers are used to track how many source & sink blocks
are using a particular device.
Because some properties (center frequency, sample rate, bandwidth, RF
amplifier state, bias tee) are shared between receive and transmit, the
blocks defer setting these until receiving or transmitting is started.
That way a source and sink can safely use different values for these
properties, and the correct values are set during T/R switching.
Because the HackRF driver and/or hardware does not seem to fully
transmit all samples sent to it, the code adds some silence to the end
of transmissions to ensure all samples are transmitted.
I've also replaced boost with C++11 code where possible.
From: Clayton Smith <argilo@gmail.com>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
|
|
From: Clayton Smith <argilo@gmail.com>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
|
|
Info: http://airspy.com/airspy-hf-plus/
From: Alexandru Csete <oz9aec@gmail.com>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
|
|
Part of GNURadio 3.8 migration
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
|
|
Conversion done by Mickey Vänskä <mvaenskae@gmail.com>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
|
|
Part of GNURadio 3.8 migration
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
|
|
Part of GNURadio 3.8 migration
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
|
|
Part of GNURadio 3.8 migration
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
|
|
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
|
|
|
|
|
|
|
|
|
|
Implement compatibility with older libbladeRF versions
|
|
Squashed commit of rtucker-bladerf-hierarchy branch:
commit 35442da7d390919f6f9cbae3f69d6dc32ca595bb
through
commit 9026136cfdbc7116f55af18cb06d1731330fa13f
|
|
Based on experimentation, a good value for transfers seems to be 16, but
more buffers are definitely warranted for an optimal default experience.
|
|
Also plumb through as rxmux= device argument
|
|
|
|
|
|
By default, the bladeRF source and sink will expose 1 channel, unless
nchan is set, in which case it will expose either that number of
channels, or the number of channels supported by the device if lesser.
If nchan > 1 (after validation), MIMO mode is enabled.
|
|
Instead of haphazardly iterating through the gain strings, just use the
count returned.
|
|
|
|
|
|
|
|
More closely matches the handling in the API
|
|
Turns out that source/sink_impl already handle the AGC->MGC gain
preservation, so this was redundant and counterproductive.
Also DRY the code a bit.
|
|
|
|
This is not meaningful with bladeRF hardware
|
|
|
|
|
|
|
|
|
|
|
|
Relies on some new libbladeRF API calls. Has been tested
with gqrx on new bladeRF hardware (as a source) but have
not yet tested sink, or existing bladeRF hardware.
|
|
Fix from c98be5dd for MSVC which does not require pthreads for boost threading library.
Under gcc -pthread adds support for multithreading with the pthreads library.
|
|
|
|
Signed-off-by: Steve Markgraf <steve@steve-m.de>
|
|
|
|
|
|
|
|
|
|
gpio0
|
|
|
|
The existing RTL TCP driver is quite different from its brother RTL_SDR.
It's much more complicated, uses gr::blocks::deinterleave and
gr::blocks::float_to_complex, and generally doesn't work correctly
(e.g. https://github.com/csete/gqrx/issues/99
Spectrum is mirrored when filter or demodulator changes (rtl_tcp) #99)
I've converted the RTL TCP driver to the model used by RTL_SDR,
simplifying it in the process, and fixing the GQRX issue.
|
|
The _lut is being indexed by I + Q (16 bits = 65536 entries), however
both samples can be processed independently, resulting in 8-bit LUT.
Saves a bit of RAM and CPU cache.
|
|
This is a typo, some modules use the "CORR" string
in the setFrequency(dir, chan, name, value) API
to perform fine frequency adjustments.
Updated modules will use setFrequencyCorrection(),
this is support for backwards compatible implementations.
|