Commit Graph

1927 Commits

Author SHA1 Message Date
Tommy Vestermark
6b8a0c9190 Correct offset in conversion from Uint8 to Int8
Minor correction to avoid overflowing int16. Should not be significant
in later corrections due to integer promotions.
2015-08-11 18:58:14 +02:00
Tommy Vestermark
f5db517c2e Correct divide by zero bug and minor cleanup. 2015-08-09 23:18:16 +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
Tommy Vestermark
a8ea818551 Oregon: lower limit to compensate for shorter pulses
Decoding problems tracked to be due to on pulses being shorter than off
pulses
(http://wmrx00.sourceforge.net/Arduino/OregonScientific-RF-
Protocols.pdf)
And we are apparrently getting even shorter pulses...
2015-08-09 21:09:39 +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
c82384af46 Add hysteresis to pulse detector
Should always have been there - but especially needed with less low-pass
filtering.
2015-08-09 16:07:13 +02:00
Tommy Vestermark
79ed98c040 Change low pass filter to reduce step response time (95%) from ~10 to ~20 samples
Works better across all test files. OK for DSC as well.
2015-08-09 15:55:54 +02:00
Tommy Vestermark
e0fd62a4c3 Change low pass filter to reduce step response time (95%) from ~100 to ~10 samples
100 sample step response is too excessive for small pulses (e.g. DSC)
and increases pulse variance.
Now decodes all DSC test files.
2015-08-09 14:21:19 +02:00
Tommy Vestermark
a9b0411ca8 Refactor baseband sample processing functions into own file 2015-08-09 13:08:37 +02:00
Benjamin Larsson
37d51eca76 Merge pull request #135 from rct/dsc-contact-parse
Initial DSC security parsing and debugging improvments
2015-07-28 23:49:29 +02:00
rct
e432c1d3ea pulse_demod_pcm_rz: Additional debugging info 2015-07-28 15:09:08 -04:00
rct
8e188f670c Debug output improvements
Use multiple -D to increase debug level
Two -D's will print pulse data
2015-07-28 15:00:25 -04:00
rct
8bcc71b7ee DSC Security Contact initial parsing 2015-07-28 14:41:29 -04:00
rct
da2bdcd140 Uncomment printing of pulse data during debugging 2015-07-28 13:42:12 -04:00
Benjamin Larsson
4399043ce3 Merge pull request #132 from vestom/upstreaming
Overall cleanup - fix most compile warnings
2015-07-25 16:23:15 +02:00
Tommy Vestermark
8232cb273d Minor pretty-print change 2015-07-15 22:17:17 +02:00
Tommy Vestermark
153ced0878 Remove some noise from LaCrosse sensor in debug mode
This is very noisy when testing other sensor data than LaCrosse.
2015-07-15 22:13:36 +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
Benjamin Larsson
fa7b436206 Merge pull request #131 from rct/lacrosse-new-demod-cleanup
LaCrosse removed unneeded start bit removal workaround
2015-07-15 14:51:05 +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
4bc796d9e4 Fix many compile warnings 2015-07-14 23:43:30 +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
Tommy Vestermark
26de006eef Added common debug printout - and corrected minor bug
Make generic debug printout of bitbuffer instead of each driver
implementing their own.

Corrected potential bug, where bitbuffer would not be cleared for
drivers without callback function.
2015-07-14 22:01:15 +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
Benjamin Larsson
db5b8baacb Merge pull request #129 from vestom/upstreaming
Added Calibeur RF104 (aka Biltema Art. 84-056), DSC and X10 RF drivers
2015-07-12 12:31:01 +02: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
5a5e8dcfec Add X10 and DSC to README.md 2015-07-12 08:48:35 +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
0cdf4f62ef X10 RF: print data until proper decoding 2015-07-11 23:58:55 +02:00
Tommy Vestermark
72c9f2bf22 DSC: Refine decoding
Based on https://fccid.io/document.php?id=100988
2015-07-11 23:50:28 +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
1f22df530e Merge branch 'upstreaming' into experimental 2015-07-11 17:00:57 +02:00
Tommy Vestermark
5e40523920 Add Calibeur to README.md 2015-07-11 16:51:21 +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
9c89eb1b18 Calibeur: Better validation with parity check 2015-07-11 15:59:45 +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
bc8fe73467 Merge https://github.com/merbanan/rtl_433 into experimental 2015-07-11 14:48:17 +02:00
Benjamin Larsson
c21644e4d8 Merge pull request #128 from vestom/upstreaming
Pulse based demod: more sensors converted..
2015-07-11 14:39:58 +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