Commit Graph

383 Commits

Author SHA1 Message Date
hayati ayguen
18bf26989c Add option '-T' for activating bias-T in rtl_(adsb|fm|power|tcp)
* added debug output when activating
Signed-off-by: hayati ayguen <h_ayguen@web.de>
* fixed options argument
Signed-off-by: Fabian P. Schmidt <kerel-fs@gmx.de>
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2017-06-13 01:20:32 +02:00
Dimitri Stolnikov
fa3a113b77 rtl_tcp: add command for bias tee control 2017-06-12 00:04:05 +02:00
Lucas Teske
2be1612e60 lib: Use GPIO P0 to toggle an (optional) bias-t
At least one distributor of rtl-sdr dongles (rtl-sdr.com) added
a bias-t to their dongles which could be toggled via GPIO P0 of the
RTL2832U chip.

source: http://www.rtl-sdr.com/rtl-sdr-blog-v-3-dongles-user-guide/

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2017-06-09 15:06:23 +02:00
Lucas Teske
ba64a7459a lib: fix direction bit in GPIO code
source: http://lea.hamradio.si/~s57uuu/mischam/rtlsdr/ports.html

* Removed unnecessary comment of old code.
Signed-off-by: Fabian P. Schmidt <kerel-fs@gmx.de>
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2017-06-09 15:06:09 +02:00
Steve Markgraf
e3e6ee23b7 lib: add new HanfTek dongle
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2016-11-27 12:19:44 +01:00
Hoernchen
e3c03f738f lib: check for libusb init failure 2015-06-09 01:53:23 +02:00
Hoernchen
5c376fc79c tools: allow built-in functions for newer versions of MSVC 2015-06-09 01:37:46 +02:00
Steve Markgraf
8b4d755ba1 Merge pull request #20 from lcl7/correct-e4k_reg_write
Correct return code of e4k_reg_write().
2015-05-16 00:48:37 +02:00
Jiří Pinkava
92df068dc5 New functions rtlsdr_set_tuner_bandwidth()
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2015-05-16 00:38:01 +02:00
Jiří Pinkava
d892279085 Allow setting bandwidth for R820T
This improves SDR performence for nearby channel interference.
As a sideeffect also improves dynamic range becase ADC is not overloaded
by onwanted singlas.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2015-05-16 00:37:17 +02:00
lcl
c5dc459fc5 Correct return code of e4k_reg_write().
In contradiction with the documentation, e4k_reg_write() was
returning the value 2 upon success (the number of bytes written),
not zero as documented.
Patched to return zero upon success.

As a consequence, this corrects also the return value of
e4k_reg_set_mask() and e4k_dc_offset_calibrate().
2015-05-08 11:10:30 +02:00
Dimitri Stolnikov
d447a2e983 cmake: include resource file for MSVC builds 2014-08-26 21:26:26 +02:00
Steve Markgraf
6ee5573606 rtl_tcp: make all global variables static
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-10 23:59:21 +01:00
Steve Markgraf
89f73b183f lib: change default number of transfers to 15
So far we had 32 * 256KB which was a bit overkill,
15 are more than enough.

15 was chosen instead of 16 because at least on Linux
there seems to be a system-wide limit of 63 transfers
(when they are 256KB large), so 4 dongles can be used
on a single machine without lowering the default transfer
number.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-10 23:57:19 +01:00
Steve Markgraf
5b0137abaf lib: handle events after canceling transfers
Otherwise the new transfer status does not propagate
into the xfer->status and we try to cancel all transfers
twice.

Also replace the ifdefs with a single macro for backwards
compatibility.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-09 15:50:32 +01:00
Steve Markgraf
929beafc6e lib: only print to stderr in tuner_r82xx_set_pll()
Found by keenerd.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-08 14:48:24 +01:00
Steve Markgraf
03a40c44f5 change version to 0.5.3git
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-08 14:46:26 +01:00
Steve Markgraf
df9596b2d1 change version to 0.5.3
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-07 02:04:24 +01:00
Steve Markgraf
7fc97c40ed add configuration file for Travis CI
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-05 18:07:15 +01:00
Steve Markgraf
50743b1ccb remove unused variables, type fixes
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-04 19:53:24 +01:00
Steve Markgraf
0a90c7d417 rtl_test: update copyright header
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-04 19:26:40 +01:00
Steve Markgraf
f2be2f945b rtl_sdr: clean up getopt-string
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-04 19:16:11 +01:00
Michael Tatarinov
1cc9d64d98 rtl_test: refactoring and optimization for PPM error
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-04 19:11:10 +01:00
Denys Berkovskyy
2c171630fa lib: add missing 'goto' in tuner detection code
Add missing ‘goto’ to avoid checks for other tuners when
R828D tuner is found.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-29 00:17:57 +01:00
Steve Markgraf
bf92121aff unbreak 'make distcheck' with automake
Thanks to zecke for pointing this out.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-26 13:49:39 +01:00
Steve Markgraf
be8716b2c8 cflags: add -Wdeclaration-after-statement
This allows people working on the code to spot the
most common error that breaks the MSVC build

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-24 17:45:55 +01:00
Steve Markgraf
c25f9cbc38 rtl_tcp: fix warning
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-24 14:35:22 +01:00
Steve Markgraf
4f31e5f560 rtl_fm/rtl_test: fix build with MSVC after recent changes
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-24 14:05:47 +01:00
Steve Markgraf
ad4a029405 unbreak automake build
after the latest sublib changes we got:
src/Makefile.am:31: compiling `convenience/convenience.c' in
subdir requires `AM_PROG_CC_C_O' in `configure.ac'

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-24 10:58:01 +01:00
Steve Markgraf
a2bc5b5117 lib/cmake: check for libusb_handle_events_timeout_completed()
libusb < 1.0.9 doesn't have libusb_handle_events_timeout_completed(),
but libusb <= 1.0.8 doesn't have version.h, so we need to check
for the function.

The cmake-code was borrowed from UHD, which also checks
for libusb_error_name(), we add that as well since it might come
handy later on.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-24 03:57:53 +01:00
Steve Markgraf
929972f835 lib: add SVEON STV27, sort device list
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-24 01:06:55 +01:00
Steve Markgraf
3409c0315f lib: speed up exiting from async handler
Now we're using libusb_handle_events_timeout_completed()
instead of the deprecated libusb_handle_events_timeout(),
and notify our async state machine when rtlsdr_cancel_async()
is called. This speeds up exiting from any program that uses the
device asynchronously.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-24 00:44:36 +01:00
Kyle Keen
e90cd17d36 rtl_fm: overhaul
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-23 23:28:19 +01:00
Kyle Keen
f459214894 rtl_power: fix dBm math
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-23 23:26:41 +01:00
Kyle Keen
835bd23542 rtl_test: useful ppm
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-23 23:26:05 +01:00
Kyle Keen
8520c7c3d7 rtl_adsb: fix threading
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-23 23:23:06 +01:00
Kyle Keen
27c0929939 utils: convenience functions
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-23 23:21:23 +01:00
Steve Markgraf
003bd51167 lib: check for validity of sample rates
Thanks to Joris van Rantwijk for finding what seems to be
a hardware limitation/bug (bit 28 of the rsamp register being
forced to the value of bit 27).

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-05 22:51:44 +01:00
Steve Markgraf
d683b128f9 lib: abort if submitting transfer fails, don't deadlock when cancelling fails
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-03 05:56:43 +01:00
Kyle Keen
3ab6fffbdd rtl_power: MSVC 2010 doesn't have log2()
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-12-27 00:41:49 +01:00
Hoernchen
7855c7c876 rtl_tcp: clean up error handling
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-12-27 00:22:30 +01:00
Steve Markgraf
67302f4665 lib: add yet another Terratec OEM stick
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-12-26 19:33:30 +01:00
Kyle Keen
fca2b7d52f rtl_power: apply first series of patches
* fix typos
* droop compensation
* improve sample rates, peak hold
* direct sampling
* offset tuning

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-12-26 19:29:53 +01:00
Steve Markgraf
1050b96b47 lib: add OEM versions of Terratec NOXON sticks
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-12-24 02:10:05 +01:00
Steve Markgraf
5f38c0519d change device name of OEM dongles
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-12-16 21:34:01 +01:00
Steve Markgraf
2890fe96e0 change version to 0.5.2git
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-12-16 21:31:08 +01:00
Steve Markgraf
2d0eaa898d change version to 0.5.2
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-12-12 00:26:43 +01:00
Steve Markgraf
e1bf239a6d lib: add KWorld KW-UB450-T to device list
The TUA9001 tuner it uses is unsupported
at the moment, though.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-12-08 16:48:07 +01:00
Jiri Pinkava
a42659602d lib: use FIR coefficients instead of magic + documentation
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-12-02 01:31:14 +01:00
Steve Markgraf
f17818f737 rtl_test: use static instead of global var
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-11-21 16:33:44 +01:00