Commit Graph

409 Commits

Author SHA1 Message Date
Tommy Vestermark
44ea405c73 Test I/O handling of FSK data + mode consistency
Separate modes for input and output should be considered.
2015-08-12 23:59:34 +02:00
Tommy Vestermark
43aa8cdd92 Merge branch 'upstreaming' into experimental 2015-08-12 18:58:03 +02:00
Tommy Vestermark
36ffe92d57 Merge branch 'master' into upstreaming 2015-08-12 18:11:26 +02:00
Tommy Vestermark
ec442eac4f Initial FM/FSK demodulator 2015-08-12 18:10:05 +02:00
Tommy Vestermark
c781d87527 Prepare low_pass filter for reuse and encapsulate implementation better 2015-08-11 22:54:39 +02:00
Tommy Vestermark
660cc2d40c Lower default level limit to 8000
Max theoretical value is 16384 (values above is ripple due to
saturation). Decodes better signals with lower levels.
Analyses rtl_433_tests/tests/GT-WT-02/gfile003.data cleanly
2015-08-09 23:17:11 +02:00
Paul Ortyl
536dbb14d0 support Brennstuhl RCS 2044 remote control 2015-08-09 17:58:59 +02:00
Tommy Vestermark
7e6bbfafc1 Add pulse and gap level statistics
Useful for determining signal and noise level.
Changed interval notation to mathematically correct notation [;]
2015-08-09 17:51:02 +02:00
Tommy Vestermark
a9b0411ca8 Refactor baseband sample processing functions into own file 2015-08-09 13:08:37 +02:00
Tommy Vestermark
89a52d6f1e Merge branch 'experimental' into upstreaming
Conflicts:
	src/devices/alecto.c
	src/devices/lacrosse.c
2015-07-15 22:12:03 +02:00
Tommy Vestermark
b005d4410a Clean up bitbuffer a bit
num_rows is more logical than row_index for users
2015-07-15 21:03:40 +02:00
Tommy Vestermark
139fad4918 Rename bitbuffer_t::bits_buffer to bitbuffer_t::bb
Better now than later...
2015-07-15 19:47:30 +02:00
Tommy Vestermark
c59375705e Moved all drivers to use bitbuffer_t directly
And removed lots of compile warnings...
2015-07-15 00:57:55 +02:00
Tommy Vestermark
00ff066903 Added binary printout to bitbuffer_print()
For feature parity.. Only print if number of bits is low.
2015-07-14 23:20:38 +02:00
Tommy Vestermark
cba8159180 Removed debug_callback()
Now drivers do no longer need to print out themselves
2015-07-14 22:50:21 +02:00
rct
7740d4d9d5 LaCrosse removed unneeded start bit removal workaround
Moved time stamp to util.c
Alecto, fixed compile warnings (%%, time stamp, demod_arg init)
2015-07-14 14:01:08 -04:00
Tommy Vestermark
67cf942d04 Add some documentation to pulse demodulators
Hopefully this will help potential driver writers
2015-07-12 09:06:58 +02:00
Tommy Vestermark
414ac89f63 Clean up and re-order alphabetically :-)
Old sample based decoders are not recommended for future use
2015-07-12 08:11:21 +02:00
Tommy Vestermark
554166c52c Remove unused ID parameter from all devices 2015-07-12 00:18:17 +02:00
Tommy Vestermark
b8732fae35 Reverse polarity of pulse_demod_pcm_rz()
When reading the DSC protocol this makes more sense
2015-07-11 22:55:47 +02:00
Tommy Vestermark
b48ea3af50 Merge branch 'upstreaming' into experimental
Conflicts:
	include/rtl_433.h - resolved
2015-07-11 21:02:07 +02:00
Tommy Vestermark
bb8a773597 Simplify parameter handling for pulse_demod_pcm()
Removed explicit start_bit parameter and use demod_arg instead
2015-07-11 20:53:03 +02:00
Tommy Vestermark
9c24549c70 Add DSC stub driver
Tested with:
rtl_433_tests/tests/dsc/01/gfile001.data
Does not now how to interpret the bits though...
2015-07-11 20:34:32 +02:00
Tommy Vestermark
ba28bc0835 Add decoder for Pulse Code Modulation, Return-to-Zero
To be used by DSC
2015-07-11 20:33:27 +02:00
Tommy Vestermark
2ddb7fda7f Added X10 RF stub driver 2015-07-11 18:02:52 +02:00
Tommy Vestermark
81cd3d66a6 Converted demod_ bit functions to common bitbuffer
Saved some lines for now.
Long term plan is to convert all drivers to receive a bitbuffer.
2015-07-11 16:43:01 +02:00
Tommy Vestermark
bf5b0a58e1 Made a util.c with generic helper functions (CRC8)
For use with device drivers
2015-07-11 15:59:06 +02:00
Tommy Vestermark
8fd6bb3f37 Added Calibeur RF-104 Sensor
Tested with both live data and:
rtl_433_tests/tests/calibeur/RF104/01/gfile001.data
2015-07-11 14:16:27 +02:00
Tommy Vestermark
90e9b85da4 Added ternary PWM decoder with configurable sync bit.
Needed for Calibeur RF-104 sensor.
2015-07-11 14:15:14 +02:00
Tommy Vestermark
52a9d62fb4 Pulse demodulators: Added support for useful debug output
Has to be manually enabled by uncommenting printer functions
2015-07-10 18:57:24 +02:00
Tommy Vestermark
9d1e6f5430 Pulse detector: added MIN and MAX gap time before EOP
Implemented minimum and maximum gap times in addition to current
gap/pulse ratio. Changed values to be independent of sample rate.
Also made bitbuffer less noisy for decoders with small .long_limit
Tested with:
rtl_433_tests/tests/ambient_weather/01/f007th.data
rtl_433_tests/tests/cardin/01/S466-TX2_01.data
rtl_433_tests/tests/cardin/01/S466-TX2_02.data
rtl_433_tests/tests/fineoffset/01/gfile001.data
rtl_433_tests/tests/lacrosse/01/gfile001.data
rtl_433_tests/tests/lacrosse/01/gfile002.data
rtl_433_tests/tests/lacrosse/01/gfile006.data
rtl_433_tests/tests/oregon_scientific/01/BTHGN129.data
rtl_433_tests/tests/oregon_scientific/01/BTHR968.data
rtl_433_tests/tests/oregon_scientific/02/gfile003.data
rtl_433_tests/tests/prologue/01/gfile001.data
2015-07-10 18:46:07 +02:00
Tommy Vestermark
86534ec4d2 Add pulse based PPM decoder as replacement for pwm_d_decode() 2015-07-10 17:04:51 +02:00
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