Commit Graph

36 Commits

Author SHA1 Message Date
Christian W. Zuckschwerdt
edf19a393e Refactor includes 2018-12-17 13:45:57 +01:00
Christian W. Zuckschwerdt
08d192b95f Change short/long _limits to _width (#888) 2018-12-01 13:38:50 +01:00
Christian W. Zuckschwerdt
c98d55ac3a Fix file perms 2018-11-30 15:03:40 +01:00
Christian W. Zuckschwerdt
40ae704af3 Remove PPM_RAW in favour of precise PPM 2018-11-29 20:58:21 +01:00
Christian W. Zuckschwerdt
e54d3146ba Add precise PPM to deprecated PPM_RAW 2018-11-29 09:22:40 +01:00
Christian W. Zuckschwerdt
3d12af2032 Rename PWM_PRECISE 2018-11-25 15:23:36 +01:00
Christian W. Zuckschwerdt
163c71c153 Remove PWM_RAW 2018-11-25 15:18:55 +01:00
Christian W. Zuckschwerdt
dba22bb4c5 Unify protocol state with r_device 2018-11-25 10:41:31 +01:00
Christian W. Zuckschwerdt
8a014ae436 Remove start_bit logic (superseded by sync) and demod_arg 2018-11-24 21:51:42 +01:00
Christian W. Zuckschwerdt
d01a1c6427 Add PiWM decoding (#724) 2018-05-19 11:12:02 +02:00
Christian W. Zuckschwerdt
5c728b3f6e remove PWM_TERNARY, use PWM_PRECISE for sync bits 2018-01-22 12:38:06 +01:00
Christian W. Zuckschwerdt
e45c77649e rename CLOCK_BITS to DMC 2018-01-22 12:17:21 +01:00
Christian W. Zuckschwerdt
4d4482ffbe enhance pwm_precise to cover raw and ternary cases 2018-01-22 09:18:01 +01:00
Christian W. Zuckschwerdt
83fb1ede8a fold PWM_precise_parameters into r_device 2018-01-11 10:37:47 +01:00
Christian W. Zuckschwerdt
1ffb86ad39 change PWM_Precise_Parameters pulse_tolerance to use us instead of samples 2017-11-13 12:25:53 +01:00
Christian W. Zuckschwerdt
9c3cecf681 Add option to verify simulated decoding of raw data 2017-07-14 19:27:39 +02:00
YGator
aca1569a65 Oregon Scientific V1 Decoding
Oregon Scientific V1 Decoding

Oregon Scientific V1 Decoding
2016-03-17 18:56:36 -04:00
Christian W. Zuckschwerdt
3c4c28a09c fix: change doc comments from "samples" to "us" 2016-03-12 10:20:13 +01:00
David Woodhouse
6896d45b53 Revert "Support framed FSK Manchester decoding compatible with Si4320/RFM01"
... and also "Add heuristic for detecting RFM01-framed FSK"

This reverts commits 3470b458 and 712f97e4 to remove the newly-added
pulse_demod_manchester_framed() functionality.

It turns out this isn't done by the hardware; it's application-specific.
The watchman code has been converted to use FSK_PULSE_PCM and handle the
framing and the Manchester decoding in the bitbuffer domain instead, and
this code can die since it wasn't as general-purpose as originally hoped.

See issue #224.
2015-12-10 10:19:46 +00:00
David Woodhouse
3470b45813 Support framed FSK Manchester decoding compatible with Si4320/RFM01
Detection in pulse_analyzer() is left to a separate commit because it's
ugly and wants separate review.
2015-12-07 14:42:30 +00:00
Robert Högberg
494601e49c Minor documentation update 2015-10-14 18:33:12 +02:00
Ladislav Foldyna
49647d09f9 Add support for new demodulation
No level shift within the clock cycle translates to a logic 0
One level shift within the clock cycle translates to a logic 1
Each clock cycle begins with a level shift

+---+   +---+   +-------+       +  high
|   |   |   |   |       |       |
|   |   |   |   |       |       |
+   +---+   +---+       +-------+  low

^       ^       ^       ^       ^  clock cycle
|   1   |   1   |   0   |   0   |  translates as
2015-09-30 21:47:49 +02:00
Tommy Vestermark
f6fc204bbb Implement a PWM decoder with precise timing for increased selectivity
Makes Chuango less noisy
Has provision for replacing ternary encoder (implements sync)
Can be expanded to include more selectivity (e.g. gap timing)
Can be expanded to include start bit removal (for replacing RAW)
2015-08-29 15:20:21 +02:00
Tommy Vestermark
9232c8dbc1 FSK: Complete the stack. Add stub drivers
May still need some tweaking - but works for Danfoss.
E3CK has very small pulses! (~12) and should probably have higher
samplerate.
2015-08-18 21:33:55 +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
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
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
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
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
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
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