Commit Graph

1927 Commits

Author SHA1 Message Date
Tommy Vestermark
c0beea4ad3 Make bitbuffer even less noisy
Some decoders with large .short_limit may add a lot of bits...
2015-07-10 21:29:01 +02:00
Tommy Vestermark
1dcdeba855 Converted Prologue sensor to pulse based decoding
Reset limit changed to be compatible with 10ms minimum gap. That is OK,
as gap between messages is 9ms.
Tested with: rtl_433_tests/tests/prologue/01/gfile001.data
2015-07-10 21:14:31 +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
cf889856cd Convert Cardin sensor to pulse based decoding
Converted to less CPU intensive decoding.
Tested before and after with the following data files:
rtl_433_tests/tests/cardin/01/S466-TX2_01.data
rtl_433_tests/tests/cardin/01/S466-TX2_02.data
2015-07-10 17:07:21 +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
c1fe85b59b When reading file, add extra empty samples to ensure EOP detection.
Some test data files have too few "idle" samples at the end to ensure
end of packet is robustly detected. Decode an extra empty buffer to
ensure decoders are flushed.
2015-07-10 17:03:23 +02:00
Tommy Vestermark
81d7ec9e9f Merge https://github.com/merbanan/rtl_433 2015-07-09 21:55:44 +02:00
Tommy Vestermark
924ef1cfbd Merge https://github.com/merbanan/rtl_433 2015-07-09 21:53:31 +02:00
Benjamin Larsson
d96f8e3814 Merge pull request #124 from vestom/generic_demod
New packet based pulse demodulation infrastructure
2015-07-09 21:45:31 +02:00
Benjamin Larsson
5b34364080 Merge pull request #127 from onlinux/master
Fixup OWL CM180 code
2015-07-09 21:43:02 +02:00
Benjamin Larsson
44cf792788 Merge pull request #125 from jcarduino/master
Changed Alecto output, Corrected errors in rain data routine
2015-07-09 21:42:04 +02:00
eric
d316356f83 Fixup OWL CM180 code 2015-07-09 19:30:31 +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
7757bae6b2 Converted the Oregon Scientific driver to pulse based decoder.
The conversion is tested successfully with the following datafiles:
rtl_433 -r ~/rtl_433_tests/tests/oregon_scientific/01/BTHGN129.data
rtl_433 -r ~/rtl_433_tests/tests/oregon_scientific/01/BTHR968.data
rtl_433 -r ~/rtl_433_tests/tests/oregon_scientific/02/gfile003.data
2015-07-02 22:57:18 +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
johan
f473e7f9e3 Changed Alecto output
Corrected errors in rain data routine
2015-07-02 03:07:07 +02:00
Tommy Vestermark
44ed039ed0 pulse_analyzer: Added histogram fusing
Added fusing of overlapping histogram bins to make detection more robust
2015-06-30 23:45:08 +02:00
Tommy Vestermark
b6ab70b9be Merge https://github.com/merbanan/rtl_433 2015-06-30 19:25:54 +02:00
Tommy Vestermark
e4260e5acf Changed to -std=gnu99
In maybe 10 years we can go to -std=gnu11 ;-)
2015-06-30 18:13:58 +02:00
Tommy Vestermark
8f8094024b Merge https://github.com/merbanan/rtl_433 into generic_demod 2015-06-30 18:01:54 +02:00
Benjamin Larsson
988c115dc6 Merge pull request #123 from rct/read-recorded-without-rtl
Read recorded data without opening RTL device
2015-06-29 23:52:14 +02:00
Benjamin Larsson
1f7bc43cd2 Merge pull request #121 from rct/lacrosse-data-check
LaCrosse added data integrity check and other clean-up. Fixes #120
2015-06-29 23:51:54 +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
7b89c5c119 bitbuffer.c: Add test code and fix an overflow bug 2015-06-29 21:21:52 +02:00
rct
a4a328bf33 Fix to allow reading saved data files without an RTL device
librtl calls will be skipped when using -r to play back files
saved with -t.
2015-06-28 18:17:31 -04:00
rct
d7870111d3 LaCrosse added data integrity check and other clean-up. 2015-06-28 17:15:58 -04: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
4a2b5f3c72 Minor cleanup 2015-06-28 13:35:53 +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
vestom
a0608cd9e0 Merge pull request #2 from merbanan/master
Update from merbanan
2015-06-14 18:46:46 +02:00
Benjamin Larsson
99ed459ced Merge pull request #116 from Serveurperso/master
Disable buffering for stdout and stderr, workaround for data redirection...
2015-05-07 23:01:33 +02:00
root
260f7fe833 Disable buffering for stdout and stderr, workaround for data redirection and logging 2015-05-01 20:38:22 +02:00
Benjamin Larsson
1def756a32 Merge pull request #114 from sherbang/f007th-rebase
Add support for Ambient Weather F007TH Temperature/Humidity sensors
2015-04-25 23:37:18 +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
Benjamin Larsson
610f1a02d8 Merge pull request #112 from klattimer/master
Added OWL CM160 support
2015-04-10 11:12:34 +02:00
Karl Lattimer
be3d35a3bf Added OWL CM160 support 2015-04-10 09:38:07 +01:00
Benjamin Larsson
79f37a37c5 Fixup the Nexus sensor code 2015-04-07 21:48:36 +02:00
Benjamin Larsson
994228a57b Merge pull request #111 from ukshady/master
Nexus sensor from Clas Ohlsen
2015-04-07 21:43:12 +02:00
Benjamin Larsson
1a2f67ce6a protocols: change all stderr to stdout 2015-04-01 23:56:47 +02:00
Benjamin Larsson
f005e82242 Merge pull request #110 from tarantir/patch-1
Update lacrosse.c
2015-04-01 23:40:38 +02:00
ukshady
1d674b8193 Added Nexus sensor 2015-03-30 13:44:26 +01:00
ukshady
d0e087941a Added Nexus termperature and humidity sensor 2015-03-30 13:42:57 +01:00
ukshady
96c89707fd Added support for Nexus temperature and humidity sensor from Clas Ohlsen
On each temperature event a local file called nexus.csv is created containing the just the most recent readings.
2015-03-30 13:35:40 +01:00
Randy T
ba79590292 Update lacrosse.c
Fix to write output to stderr
2015-03-29 17:42:39 -04:00