Commit Graph

513 Commits (3b60de66c50ff0bb1f6d33189d9510421fa32bc4)

Author SHA1 Message Date
hayati ayguen 3b60de66c5 added USB vendor/device ID for use with and without dvb drivers
* added vendor/manufacturer id 0x1209 and product id 0x2832,
  see http://pid.codes/howto/
idea is to use modified rtl-dongle for SDR
 - without having to blacklist dvb_usb_rtl28xxu,
 that another unmodified device could be used with dvb
* added options -M and -P to rtl_eeprom for modification of USB IDs

Signed-off-by: hayati ayguen <h_ayguen@web.de>
2018-11-06 19:36:17 +00:00
hayati ayguen fd362261e5
Merge pull request #63 from hayguen/development
amend usage, that option '-d' also accepts serial
2018-10-29 23:16:39 +01:00
hayati ayguen e30dbd52b6 amend usage, that option '-d' also accepts serial
Signed-off-by: hayati ayguen <h_ayguen@web.de>
2018-10-29 23:12:49 +01:00
hayati ayguen 4d21e62b32
Merge pull request #62 from xloem/development
Merge of osmocom HEAD
2018-10-29 23:09:05 +01:00
Karl Semich 0229ee2ceb Merge commit '1f0eafe60' from 'osmocom/master' 2018-10-03 20:34:47 +00:00
Karl Semich ea24b438d9 debian: update version to match librtlsdr 2018-10-03 20:34:27 +00:00
Karl Semich a4f0de4185 Merge commit '8a26aba' from 'osmocom/master' 2018-10-03 20:34:14 +00:00
Karl Semich e4da2e4f8b Merge deeprtl PR #61 into development
Only remaining change is in url in README, which was fixed in 3910a14.
Closes #61.
2018-10-03 20:33:45 +00:00
Karl Semich 3180dba9ff Merge commit '9573e68' from 'osmocom/master' 2018-10-03 20:32:19 +00:00
Steve Markgraf 1f0eafe604 change version to 0.6.0
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-08-26 14:54:51 +02:00
David Woodhouse 9047eef701 Fix inline functions to use 'static inline'
With just 'inline', if the compiler decides not to inline them, it isn't
required to emit them at all. For some targets with -Os that is causing
build failures, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86360.

Perhaps we might consider using '__attribute__((always_inline))' for
GCC builds, but 'static inline' is a good start.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-07-03 23:59:01 +02:00
hayati ayguen 3df609056b fix rtl_udp target_link_libraries
Signed-off-by: hayati ayguen <h_ayguen@web.de>
2018-06-11 23:54:19 +00:00
hayati ayguen f220d812a6 added cmake option LINK_RTLTOOLS_AGAINST_STATIC_LIB
Signed-off-by: hayati ayguen <h_ayguen@web.de>
2018-06-11 23:34:40 +00:00
Harald Welte 8a26abaf79 Add Debian packaging information
This allows (among others) to build rtl-sdr nightly packages
for a variety of distributions as part of the network:osmocom:nightly
builds
2018-06-03 15:19:53 +02:00
Harald Welte 9573e68d10 README: Update homepage/wiki URL from old trac to redmine
Signed-off-by: Harald Welte <laforge@gnumonks.org>
2018-06-03 14:31:39 +02:00
Harald Welte 8e9d4e6f2a Fix "make uninstall" for documentation
During "make uninstall", the documentatin was not deleted properly,
if DESTDIR was used.  The existing commands expanded to:

make[3]: Entering directory '/home/osmocom-build/jenkins/workspace/master-rtl-sdr/a1/default/a2/default/a3/default/label/osmocom-master-debian9/librtlsdr-0.5.4.5-5c30/_build/sub'
cd /tmp/am-dc-24621/ && rm -rf /home/osmocom-build/jenkins/workspace/master-rtl-sdr/a1/default/a2/default/a3/default/label/osmocom-master-debian9/librtlsdr-0.5.4.5-5c30/_inst/share/doc/librtlsdr/librtlsdr-0.5.4.5-5c30/html

This fixes the "make distcheck" step of rtl-sdr, and hence should also
fix the long-standing jenkins build verification for rtl-sdr
at https://jenkins.osmocom.org/jenkins/job/master-rtl-sdr/

Signed-off-by: Harald Welte <laforge@gnumonks.org>
2018-06-03 13:24:42 +02:00
Steve Markgraf 5c3073f417 tuner_r82xx: turn off loop-through, remove dead code
As pointed out by Carl Laufer on the mailing list,
turning the loop-through output off reduces the
current consumption by 10-20mA which in turn reduces
the heat a bit. So far there seem to be no devices
that have anything connected to the loop-through output.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-05-25 00:16:38 +02:00
Pete Zaitcev ce9595ef53 rtl_adsb: fix hanging upon a signal in Fedora 27
This code stayed unchanged for many years, but for some reason
rtl_adsb started hanging upon exit:

*b66116a5164b69281eacc42ae950;
^CSignal caught, exiting!
 <------ hangs here forever

Examining it with gdb reveals that the demod thread waits
peacefully on the condition variable, which we're trying to
destroy. Either the signals killed all threads before, or
condition variables were possible to destroy while other
threads still waited on them.

The easiest fix appears to be just cancel the demod thread
and wait for it to exit before proceeding for the door.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-05-23 23:20:26 +02:00
Steve Markgraf a854ae8b48 lib: use USB zero-copy transfers if possible
Decreases CPU load especially for embedded machines.
Requires Linux >= 4.6 and libusb >= 1.0.21. If this
is not the case or the allocation fails, we will
fall back to buffers allocated in userspace.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-05-01 14:23:37 +02:00
Martin Hauke 326b0e3acc Fix build with MinGW
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-05-01 14:13:00 +02:00
Steve Markgraf d93819d29d change version to 0.6git
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-05-01 12:46:31 +02:00
Steve Markgraf 9ca8780df7 change version to 0.5.4
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-04-29 00:30:45 +02:00
Steve Markgraf c403ef0bc1 rtl_test: fix build on Mac OS
Thanks to mot for reporting.
closes #3130

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-04-26 23:51:15 +02:00
Harald Welte 566a1b942f Makefile.am: Fix "permission denied" during "make distcheck"
This fixes the following error during "make distcheck":
	echo 0.5.3.24-2a36 > ../../.version-t && mv ../../.version-t ../../.version
	/bin/sh: ../../.version-t: Permission denied
2018-04-19 00:09:15 +02:00
Harald Welte 2a36e5dd65 add contrib/jenkins.sh for build testing 2018-04-18 23:59:17 +02:00
Harald Welte f7f3e3f6d7 configure.ac: Add --enable-sanitize and --enable-werror
this is "osmocom standard" these days, and is used by our CI scripts
2018-04-18 23:59:17 +02:00
Harald Welte 5a9864c56d fix "-Wshift-negative-value" compiler warning on ggc-7.3.0 2018-04-18 23:59:17 +02:00
Harald Welte e92b11bfb7 cosmetic: Fix "implicit fall-through" gcc 7.3.0 warnings 2018-04-18 23:59:17 +02:00
deeprtl fa06ddb746
Merge branch 'development' into master 2018-03-24 14:51:04 +02:00
Steve Markgraf 4520f001d8 lib: fix FC0012 reset GPIO
Since a typo in rtlsdr_set_gpio_output() was fixed,
FC0012 tuners were not detected anymore, as the reset pin
is actually 4, not 5.

Thanks to David Basden et al for reporting the bug.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-02-20 22:24:46 +01:00
Kacper Michajłow a03198c5b7 rtl_test: Support PPM error measurement on Windows.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-02-20 22:24:40 +01:00
Hoernchen b04c2f9f03 fix for msvc14 2017-09-19 19:26:49 +02:00
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
Lucas Teske 769da46da8 Merge pull request #47 from hayguen/development
bugfix and static build options
2017-04-09 13:24:37 -03:00
hayati ayguen ea168c1d6d changed default of option RTL_FULL_STATIC_BUILD to ON
This only affects the extra CMakeLists.txt below win32-qtcreator.
  This compiles fully static - without librtlsdr.dll.

Root CMakeLists.txt, with option RTL_STATIC_BUILD ON,
  does compile librtlsdr.dll and the rtl_* tools require it.

Signed-off-by: hayati ayguen <h_ayguen@web.de>
2017-02-15 21:20:49 +01:00
hayati ayguen f236b57bb9 added OPTION RTL_STATIC_BUILD for MinGW/Win32, default: ON
* Build rtl-tools static (except RTLSDR.DLL) on MinGW/Win32
  Option is ON by default, cause it only affects MinGW/Win32.
* win32-qtcreator/README.txt has some explanations howto setup
  for compilation with QT 5.5/qtcreator

Signed-off-by: hayati ayguen <h_ayguen@web.de>
2017-02-15 21:11:17 +01:00
hayati ayguen 7d46a6e3d5 added missing tools to win32-qtcreator/CMakeLists.txt
rtl_sdr, rtl_eeprom
(and rtl_rpcd, which isn't compiling in windows)
were missing

Signed-off-by: hayati ayguen <h_ayguen@web.de>
2017-02-15 20:49:57 +01:00
hayati ayguen 7cefcce955 bugfix compiler error on windows for rtl_udp
Signed-off-by: hayati ayguen <h_ayguen@web.de>
2017-02-15 20:42:58 +01:00
Joseph Poirier 7514ce9a04 Merge pull request #46 from jpoirier/development
fixes issue #39
2017-02-14 19:03:59 -06:00
Joseph Poirier dade15ff3f fixes issue #39 2017-02-14 19:02:44 -06:00
Joseph Poirier c7d970ac5b Merge pull request #45 from jpoirier/master
Add contrib info to the readme (#42)
2017-02-14 19:00:20 -06:00
Joseph Poirier 69409fa2b3 Add contrib info to the readme (#42)
* add contrib info

* indention

* additional info/formatting

* fix spelling
2017-02-14 18:57:16 -06:00
Joseph Poirier 9cc63a9dc9 Add contrib info to the readme (#42)
* add contrib info

* indention

* additional info/formatting

* fix spelling
2017-02-14 13:18:04 -06:00
Lucas Teske 0ce63326ac Merge pull request #33 from tomtastic/patch-1
Print frequency on PLL locking failure (r82xx)
2017-01-15 02:23:40 -02:00
tomtastic c28886f89b Print frequency on PLL locking failure.
Make the PLL lock failure error the same format as in tuner_e4k.c, it's nice to see the frequency in the output.
2017-01-11 21:17:51 +00:00
MiniLight 730e6f6a22
cmd is one byte only. 2016-12-21 01:25:06 -02:00
MiniLight d86cf516b9
Two small fixes
for keep listen, cannot "closesocket(s)" in while loop.
udp need use "sendto()".
2016-12-21 01:25:06 -02:00