Commit Graph

191 Commits

Author SHA1 Message Date
Martin Hauke
d2fe3a07cf Add support for Conrad S3318P 2016-02-09 00:34:22 +01:00
igorok107
d7a73d545e Correction data types in bitbuffer_find_repeated_row() 2016-02-07 21:37:29 +03:00
Benjamin Larsson
17c90be3c7 Merge pull request #287 from ovrheat/master
Added support for Fine Offset WH1080 weather station. Merged with Digitech XC0348
2016-02-05 18:44:10 +01:00
Benjamin Larsson
61b19cdf52 Merge pull request #288 from igorok107/master
Add remote control on chip HT680
2016-02-05 18:42:29 +01:00
Christian W. Zuckschwerdt
913b51a415 adding a bitbuffer_find_repeated_row() with examples how it simplifies device code 2016-02-04 19:15:46 +01:00
igorok107
8fe86df258 Add remote control on chip HT680 2016-02-02 19:04:32 +03:00
ovrheat
95027fb2d0 Added support for Fine Offset WH1080 weather station. Merged with Digitech XC0348 (a rebranded WH1080). 2016-02-02 13:39:21 +01:00
Tommy Vestermark
56ebc1cb4d Pulse analyzer: Print OOK carrier frequency 2016-01-23 18:28:32 +01:00
Tommy Vestermark
c7e81ca716 Pulse analyzer: Print FSK frequencies 2016-01-23 18:07:20 +01:00
Tommy Vestermark
ff56d009a5 Pulse analyzer: Print absolute timing 2016-01-23 18:06:33 +01:00
Benjamin Larsson
22330d87f0 Merge pull request #272 from vestom/upstream
Pulse detect: Suppress spurious short gaps
2016-01-23 16:29:03 +01:00
Tommy Vestermark
7e82322ff8 Pulse detect: Minor renaming for consistency 2016-01-23 14:48:32 +01:00
David Woodhouse
a7b60db353 Change bit limits in r_device structure to float too
Oops, missed this. In order to decode tests/emontx/01/gfile001.data we do
*really* need emonTx to be able to give the 20.3µs bit period precisely.
2016-01-22 15:37:55 +00:00
David Woodhouse
0df00e0fa4 Add crc16() function 2016-01-22 13:14:09 +00:00
David Woodhouse
4be45997fc Add bitbuffer_extract_bytes() function for accessing unaligned data 2016-01-22 13:13:57 +00:00
Benjamin Larsson
412fe2e6a5 Merge pull request #268 from vestom/experimental
FSK demodulator rewritten
2016-01-22 13:54:45 +01:00
David Woodhouse
9afca9da90 Switch protocol decoder limits to µs instead of "samples at 250000Hz"
Strictly no intentional functional change here. So this patch includes
things like (in ec3k.c):
-       .short_limit    = 12,   // NRZ decoding (it apparently 12.5 which is a problem!!)
+       .short_limit    = 48,   // NRZ decoding (should be 50µs)

These *will* be changed to what the driver presumably intended, but in
separate bisectable commits.
2016-01-22 10:54:10 +00:00
David Woodhouse
a06fb730f9 Convert decoder limits to float instead of int, to allow more precision
The (about to be submitted) emonTx decoder really needs to be allowed to
specify a limit of 20.3µs, and neither '50 samples' (20µs) nor
'51 samples' (24µs) will suffice.
2016-01-22 10:13:23 +00:00
Tommy Vestermark
b692da8a35 bitbuffer: Add function to invert bits 2016-01-21 00:03:43 +01:00
Tommy Vestermark
b73031a6c9 Merge branch 'master' into experimental 2016-01-18 23:56:59 +01:00
Stanisław Pitucha
414ed77ac9 Include stdio for FILE 2016-01-18 11:25:44 +11:00
Tommy Vestermark
945b99df70 Change pulse data from unsigned to int to avoid undefined behaviour
Thanks to zuckschwerdt for noticing this!
2016-01-17 21:41:25 +01:00
Tommy Vestermark
93571a535a emonTx: Add stub driver
Proof of concept...
2016-01-17 19:49:37 +01:00
somesortoferror
faef9f189e minor changes to support (cross-)compilation with MinGW 2016-01-13 18:48:31 +00:00
Tommy Vestermark
1fa0de275a Remove OOK_PWM_D: Clean-up header 2016-01-12 21:46:03 +01:00
Tommy Vestermark
937e85c924 Pulse_detect: Increase maximum number of pulses
The Ascot files have 1104 pulses...
2016-01-10 23:33:07 +01:00
Tommy Vestermark
3e1337b4cb Merge https://github.com/merbanan/rtl_433 into upstreaming 2015-12-16 00:24:52 +01:00
David Woodhouse
12b1fc9480 When reading sample files, make local_time_str() show offset not time of day 2015-12-14 10:26:41 +00:00
Tommy Vestermark
17ca38e84d Auto level - print level in analyzer 2015-12-13 21:46:27 +01:00
Emmanuel N
7881eadcbb Add CurrentCost TX device
For now it is more a draft...
2015-12-10 22:13:10 +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
Emmanuel N
ba621888ca Add bitbuffer_search() and bitbuffer_manchester_decode() functions
Originally written by Emmanuel N as part of issue #224; modified and
moved to bitbuffer.c by David Woodhouse
2015-12-10 10:15:44 +00:00
David Woodhouse
a75ed5ab6f Add Watchman Sonic ultrasonic oil tank monitor
Also the Apollo Ultrasonic device, which is apparently identical.
2015-12-07 14:44:25 +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
Emmanuel N
6f8348532f Add Hideki TS04 sensors 2015-12-06 23:54:02 +01:00
Tommy Vestermark
015dac3c98 Remove pwm_p_decode() and OOK_PWM_P 2015-12-02 00:34:46 +01:00
Punit Agrawal
e99c2ef81e util: Fix mismatched comment
Fixes: 8fb0c0895e ("Acurite 592TXR Temperature/Humidity Sensor")
2015-11-24 10:18:04 +00:00
Punit Agrawal
3df6353c84 util: Make comment consistent
Fixes: a2b6069e6c ("initial implementation for GT_WT_02 decoder")
2015-11-24 10:14:36 +00:00
Benjamin Larsson
e7081ce54d Merge pull request #201 from eras/json
Structural data & JSON support
2015-11-23 22:57:21 +01:00
Erkki Seppälä
920e9f6504 rtl_433: added CSV support. Requires driver support.
Driver support is required for building the common CSV header.
2015-11-23 23:47:54 +02:00
Erkki Seppälä
a3f7561a61 data: added CSV support
This requires the client code to first collect the permitted CSV fields
and use data_csv_init to pass them to the CSV builder.
2015-11-23 23:47:54 +02:00
Erkki Seppälä
06c4d39c4a data: introduce auxiliary data as an argument 2015-11-23 23:47:54 +02:00
Erkki Seppälä
5ef147f99f rtl_433: added JSON support 2015-11-23 23:47:54 +02:00
Erkki Seppälä
c7673f7cee data: added formatting support 2015-11-23 23:47:54 +02:00
Erkki Seppälä
17eb918cde data: provide a key-value-printer 2015-11-23 23:47:54 +02:00
Erkki Seppälä
44d0740a8c General structural data support for generating (ie.) JSON
Adds a new interface for constructing, printing and releasing data_t*
structures. The data structure describes typed hierarchical data (much like
json) and then provides a function for dumping it to a file descriptor.

It comes with a small test.
2015-11-22 12:25:58 +02:00
rct
ca8c60e6ec Acurite 986 Refrig/Freezer Temp initial support 2015-11-14 14:16:54 -05:00
rct
4583725f78 Merge branch 'acurite-592txr' of https://github.com/rct/rtl_433 into acurite-592txr
Conflicts:
	include/rtl_433.h
	include/rtl_433_devices.h
2015-11-07 17:50:08 -05:00
rct
8fb0c0895e Acurite 592TXR Temperature/Humidity Sensor
- Add support for 592TXR "Tower" temperature/humidity sensor
- Alternate 5n1 weather station shared device decode with 592TXR
- Wind direction decoding matches Aculink bridge and Acurite 1512 consoles
- More reliable decoding/detection with PWM_TERNARY demod (wider level range)
- Timestamps on 5n1 output
- Original 5n1 implementation left unchanged for compatibility
2015-11-07 17:46:31 -05:00
rct
67dc53df1f Acurite 592TXR Temperature/Humidity Sensor
- Add support for 592TXR "Tower" temperature/humidity sensor
- Alternate 5n1 weather station shared device decode with 592TXR
- Wind direction decoding matches Aculink bridge and Acurite 1512 consoles
- More reliable decoding/detection with PWM_TERNARY demod (wider level range)
- Timestamps on 5n1 output
- Original 5n1 implementation left unchanged for compatibility
2015-11-07 17:02:33 -05:00