Commit Graph

77 Commits

Author SHA1 Message Date
Tommy Vestermark
bef229713a Added PWM decoding with startbit removal. Converted Lacrosse sensor.
Tested with the following data:
rtl_433 -r ~/rtl_433_tests/tests/lacrosse/01/gfile001.data
rtl_433 -r ~/rtl_433_tests/tests/lacrosse/01/gfile002.data
rtl_433 -r ~/rtl_433_tests/tests/lacrosse/01/gfile006.data
2015-07-03 00:49:02 +02:00
Tommy Vestermark
6ef21b25ad Remove sample based manchester_decode() 2015-07-02 23:01:26 +02:00
Tommy Vestermark
24d6cba9ba Added pulse based Manchester demodulator. Ambient Weather sensor converted.
A pulse based Manchester demodulator is added based on the current
sample based manchester_decode() dunction.
The Ambient Weather sensor is converted and successfully tested to work.
With: rtl_433 -r ~/rtl_433_tests/tests/ambient_weather/01/f007th.data
2015-07-02 22:42:07 +02:00
Tommy Vestermark
6ddbd67c8a Remove old style PWM raw decoder 2015-06-29 23:08:45 +02:00
Tommy Vestermark
5e12ab1044 Minor whitespace cleanup 2015-06-29 22:34:27 +02:00
Tommy Vestermark
e0579b6cc9 Gluing it together. Converting fineoffset sensor. Tested!
The proofing of the new packet based pulse detection. The pulse
demodulator for PWM_RAW is added (with some minor corrections). The
fineoffset sensor is switched to the new decoder and tested to work
correctly (both with test data and live).
2015-06-29 22:22:57 +02:00
Tommy Vestermark
e5e0e19989 Add pulse demodulator for PWM. Separate bitbuffer into own file.
Made a prototype for a PWM pulse demodulator. Broke out bit_packet
functions into own file to avoid circular references and for clean up.
Compiles cleanly, but untested.
2015-06-28 23:15:56 +02:00
Tommy Vestermark
a8eca367a9 Minor cleanup 2015-06-23 23:33:16 +02:00
Tommy Vestermark
faeba88759 Added a pulse analyzer function 2015-06-17 01:09:21 +02:00
Tommy Vestermark
c59860eb36 Added generic pulse detector
Initial attempt at making CPU efficient demodulation by making a common
data sample processing. The CPU intensive sample based demodulation will
be replaced by a common pulse detector outputting a pulse data structure
for further processing.
2015-06-16 22:10:37 +02:00
David Ediger
6025f328e8 Add support for Ambient Weather F007TH Thermo-Hygrometer
Thanks to @davidediger for writing the code.
2015-04-25 10:04:57 -04:00
ukshady
d0e087941a Added Nexus termperature and humidity sensor 2015-03-30 13:42:57 +01:00
Denis Bodor
48f6bfce59 added Cardin S466-TX2 garage door remote 2015-03-20 12:12:34 +01:00
Helge Weissig
c4323207fa Added command line option to specify remote devices to listen for 2015-02-12 13:41:04 -08:00
Benjamin Larsson
c614ce9198 Increase MAX_PROTOCOLS to 20 2015-02-03 19:09:19 +01:00
Tommy Vestermark
af9e55493b Corrected tab to space 2015-01-28 00:14:54 +01:00
Tommy Vestermark
df0217c211 Added support for Fine Offset Electronics Temp/Humidity sensor 2015-01-28 00:04:17 +01:00
Helge Weissig
a6877d1ccc Merged branch 'refactor' into rmrtlsdr 2015-01-19 12:19:32 -08:00
Helge Weissig
50cfd95da1 removed rtl-sdr files and modified CMake and autotools configurations 2015-01-19 12:05:01 -08:00
Helge Weissig
67da17bdb9 added include to satisfy unresolved dependencies on some systems 2015-01-17 09:38:42 -08:00
Helge Weissig
7748f464cf added back in registration of protocols lost in merge process 2015-01-16 16:33:27 -08:00
Helge Weissig
54e9595ae8 factored out Acurite TH support 2015-01-16 16:11:13 -08:00
Helge Weissig
527c0112be factored out support for Alecto and KlikAanKlikUit devices 2015-01-16 16:03:46 -08:00
Helge Weissig
a74f24a3a2 factored out mebus and intertechno devices 2015-01-16 15:12:58 -08:00
Helge Weissig
a368ab602f factored out the oregon scientific support and re-added acurite rain gauge support 2015-01-16 14:30:06 -08:00
Helge Weissig
9fc9526629 shored up handling of debug output 2015-01-16 14:21:47 -08:00
Helge Weissig
6233f83c4b cleaned up callback function signature 2015-01-16 14:21:47 -08:00
Helge Weissig
55a013f2c0 minor clean up 2015-01-16 14:21:46 -08:00
Helge Weissig
5c220c78f0 modularized device specifications 2015-01-16 14:21:46 -08:00
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>
2012-11-04 13:57:56 +01:00
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>
2012-11-02 21:47:14 +01:00
Steve Markgraf
25789493c6 tuner_r820t: add manual RF gain setting
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-10-19 01:17:28 +02:00
Steve Markgraf
9b8b0e53f6 add getters for direct sampling and offset tuning mode
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-10-07 17:43:32 +02:00
Steve Markgraf
d64c969bd6 tuner_r820t: improve tuning accuracy, allow freq correction
We now use Hz instead of KHz for calculating the PLL
parameters, and use the actual crystal frequency in Hz,
which allows to correct the frequency error in ppm.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-10-07 02:32:14 +02:00
Steve Markgraf
b70c7d99f1 add function for offset tuning with zero-IF tuners
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-10-06 19:43:25 +02:00
Steve Markgraf
143b103061 tuner_fc0013: fix and improve manual LNA gain
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-09-20 00:47:11 +02:00
Steve Markgraf
01d8d308fc disable second ADC in IF mode, make input selectable in DS-mode
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-09-16 16:24:58 +02:00
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>
2012-09-13 21:53:51 +02:00
Steve Markgraf
9f3f44e03b autotools: add missing header
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-09-08 21:42:58 +02:00
Steve Markgraf
5a26bd51e7 add initial support for the R820T tuner
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-09-08 02:37:30 +02:00
Dimitri Stolnikov
88cd4b33cf return RTLSDR_TUNER_UNKNOWN (0) on failure of rtlsdr_get_tuner_type 2012-08-02 19:32:40 +02:00
Steve Markgraf
4e2a0ea0c4 tuner_e4k: update license in header
Changing the license of the header as well,
which had been forgotten in commit
6aec27c6d0
- "tuner_e4k: relicense driver under GPLv2+"

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-07-30 23:29:41 +02:00
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.
2012-07-08 15:52:59 +02:00
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>
2012-07-07 21:06:38 +02:00
Dimitri Stolnikov
6ea029d92c add api function to control the IF gain for E4000 tuners 2012-07-05 00:28:52 +02:00
Dimitri Stolnikov
7bd3933c41 introduce getters for tuner parameters (gain, type) 2012-06-02 01:36:42 +02:00
Steve Markgraf
4031d6ed04 tuner_fc0012: use new cleaned-up driver
The driver was taken from http://git.linuxtv.org/ and adapted
for librtlsdr. Manual gain will be added in a follow-up commit.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-05-29 03:31:49 +02:00
Steve Markgraf
75548c8bf3 tuner_fc0013: improve tuning resolution
We now use Hz instead of kHz for the internal
calculations, and thus improve the tuning resolution
to ~50 Hz (tested with DAB).

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-05-27 15:33:11 +02:00
Steve Markgraf
6d34b04b42 tuner_fc0013: use new cleaned-up driver
The driver was taken from http://git.linuxtv.org/ and adapted
for librtlsdr. Also, fc0013_set_gain() was added.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-05-25 17:25:13 +02:00
Dimitri Stolnikov
505f40d9a0 introduce api function to read usb string descriptors
This API allows to read manufacturer and product names as well as the
serial number advertized by the device on the bus.
2012-05-20 16:41:15 +02:00