Steve Markgraf
3c4aa46f5a
lib: detach and reattach kernel driver if needed
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
f1803fe10f
lib: special handling of dongle disconnect for OS != win32
...
libusb reacts differently to a device loss during runtime,
and sporadic errors can happen when starting a second
instance interfacing another dongle, thus we need to wait
for all transfers to fail before assuming the dongle has
been removed.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
b656896f66
lib: remove "e.g. hama nano" from the default device description
...
This caused some confusion...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Hoernchen
3cbf139261
exit if our usb device disappears
12 years ago
Steve Markgraf
84f0a9084b
lib: enable standby mode of e4k and r820t on exit
...
Since the R820T is a power hog and gets quite hot,
this makes sense, especially when being battery-
powered.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Hoernchen
c338e5a8c1
let's not depend on libusb >= 1.0.9, avoid libusb_error_name()
12 years ago
Hoernchen
5d2d5a4ae4
more verbose error message if opening the usb device fails
12 years ago
Hoernchen
f1ac20c371
disable force canceling for now to prevent crashes
12 years ago
Steve Markgraf
7840ec21d3
lib: reset device if needed
...
This improves the situation on hosts with flaky host
controllers like the Raspberry Pi and the WR703N.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
4b057fea0f
rtlsdr_set_sample_rate(): don't access dev structure before checking for NULL
...
Thanks to Derek Lieber for reporting this bug.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Dimitri Stolnikov
314683a51e
librtlsdr: remove unneeded casting
...
Signed-off-by: Hoernchen <la@tfc-server.de>
12 years ago
Steve Markgraf
d3c9015d26
lib: add rtlsdr_get_index_by_serial()
...
This allows to open a device by a name (serial number string)
that has been programmed with rtl_eeprom -s.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
b85ffcfea5
add library support for EEPROM access and tool for modification
...
rtl_eeprom can be used to modify the USB descriptor
strings etc.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
ac05f9084c
make sure offset tuning works with gr-osmosdr
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
105e77c5d9
add vid/pid of PixelView PV-DT235U(RN)
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
ed449bc04d
add PID of MSI DigiVox Micro HD
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
25789493c6
tuner_r820t: add manual RF gain setting
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
c5d47b7f04
e4000_init(): use corrected xtal frequency
...
Otherwise the tuner would use the uncorrected xtal value
after enabling and disabling the direct sampling mode
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
9b8b0e53f6
add getters for direct sampling and offset tuning mode
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
22549e0da0
rtlsdr_set_direct_sampling(): fix issue when switching between inputs
...
Switching back from input 2 to 1 didn't work.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
b70c7d99f1
add function for offset tuning with zero-IF tuners
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
1e67d2a9a3
rtlsdr_demod_write_reg(): return 0 on success
...
Thanks to DreamNik for reporting this issue.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
28ea914422
add new product ID
...
thanks to Andrew Harrison for reporting it.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
b4e48d9555
rtlsdr_init_baseband: initialize possibly uninitialized registers
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
a48f48e3b1
correct sample frequency with ppm offset
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
35263d0df3
rtlsdr_set_direct_sampling: reset IF freq to 0 on zero-IF tuners
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
143b103061
tuner_fc0013: fix and improve manual LNA gain
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
15b9e7ef02
tuner_fc0013: setting GPIO not needed for filter selection
...
The driver selects the VHF/UHF filter via I2C.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
01d8d308fc
disable second ADC in IF mode, make input selectable in DS-mode
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
519406264c
make rtlsdr_close() build on win32 again
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
fc5881d4cd
add support for direct sampling mode
...
This commit adds the function rtlsdr_set_direct_sampling()
which can be used to enable/disable a mode where the
RTL2832 acts as a direct sampling receiver.
This mode disables the tuner, and by attaching a long
wire, or better, a 50Ω to 200Ω transformer and a lowpass-
filter to the In-phase ADC input (pin 1 or 2 of the RTL2832,
whereas pin 1 is at the molded dot) it is possible to listen to
shortwave radio stations. The coupling capacitors can be
left in place, but for better results they should be removed.
Tuning in this mode is done with the DDC, and since the
ADC samples with 28.8 MHz, tuning is possible from 0 to
28.8 MHz.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
5a26bd51e7
add initial support for the R820T tuner
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
5f88049c0c
rtlsdr_i2c_rad_reg: fix uninitialized variable
...
This could lead to a misdetection of the tuner on some
platforms (E4K instead of FC0013 on the raspberry pi).
Thanks to Christoph Gommel for reporting this issue.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Dimitri Stolnikov
22b9d82fb5
implement a more robust cancelation mechanism of async reader
12 years ago
Dimitri Stolnikov
b49a8336ee
disable e4k enhanced mixer gain as it seems to have no effect
12 years ago
Dimitri Stolnikov
88cd4b33cf
return RTLSDR_TUNER_UNKNOWN (0) on failure of rtlsdr_get_tuner_type
12 years ago
Steve Markgraf
54fe3eca01
don't print i2c read/write errors for now
...
During autodetection of the tuner they are
normal and may cause confusion.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
3dff6f3c26
add pid of MyGica TD312 stick
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
9d0232385b
add debug messages to rtlsdr_read/write_array
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
42a6592e63
disable sample rate correction until we find a proper solution
13 years ago
Steve Markgraf
2ad7b39e2d
rtlsdr_set_tuner_if_gain(): enable i2c repeater
...
Thanks to Stefan Sydow for noticing this bug.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
f9b5d7b0a6
apply frequency correction value on the xtal clock directly
...
by using this approach both, the tuning frequency and the sample rate
should be corrected at the same time.
13 years ago
Steve Markgraf
7dc15d9fd7
add PIDs for 2 variants of the Terratex NOXON dongle
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
f3cf83e3d7
disable DAGC by default, add control function
...
This adds rtlsdr_set_agc_mode() to enable/disable it.
Thanks to Leif Asbrink for finding this setting.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
98d1b864b6
have *_write_reg() functions pass through the return value
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
6ea029d92c
add api function to control the IF gain for E4000 tuners
13 years ago
Steve Markgraf
fc736ae67f
init: disable 4 MHz clock output
...
The pin where this clock is outputted is quite close to the
ADC inputs, so better disable it.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
b09628b3e8
fix symbol visibility for automake builds
13 years ago
Steve Markgraf
e5afd9894d
tuner_fc0012: add manual gain support
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
1686a0f905
add another PID for Noxon v1 stick
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago