Skip to content

Commit

Permalink
minor: Fix ORIA WA50B (closes merbanan#2088)
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Jun 10, 2022
1 parent cca69d1 commit 5c17e4e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ See [CONTRIBUTING.md](./docs/CONTRIBUTING.md).
[37]* Inovalley kw9015b, TFA Dostmann 30.3161 (Rain and temperature sensor)
[38] Generic temperature sensor 1
[39] WG-PB12V1 Temperature Sensor
[40] Acurite 592TXR Temp/Humidity, 5n1 Weather Station, 6045 Lightning, 3N1, Atlas
[40] Acurite 592TXR Temp/Humidity, 5n1 Weather Station, 6045 Lightning, 899 Rain, 3N1, Atlas
[41] Acurite 986 Refrigerator / Freezer Thermometer
[42] HIDEKI TS04 Temperature, Humidity, Wind and Rain Sensor
[43] Watchman Sonic / Apollo Ultrasonic / Beckett Rocket oil tank monitor
Expand Down
2 changes: 1 addition & 1 deletion conf/rtl_433.example.conf
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ stop_after_successful_events false
# protocol 37 # Inovalley kw9015b, TFA Dostmann 30.3161 (Rain and temperature sensor)
protocol 38 # Generic temperature sensor 1
protocol 39 # WG-PB12V1 Temperature Sensor
protocol 40 # Acurite 592TXR Temp/Humidity, 5n1 Weather Station, 6045 Lightning, 3N1, Atlas
protocol 40 # Acurite 592TXR Temp/Humidity, 5n1 Weather Station, 6045 Lightning, 899 Rain, 3N1, Atlas
protocol 41 # Acurite 986 Refrigerator / Freezer Thermometer
protocol 42 # HIDEKI TS04 Temperature, Humidity, Wind and Rain Sensor
protocol 43 # Watchman Sonic / Apollo Ultrasonic / Beckett Rocket oil tank monitor
Expand Down
3 changes: 2 additions & 1 deletion src/devices/acurite.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ similar RF encoding and data format:
- 5-n-1 weather station
- 6045M Lightning Detector with Temperature and Humidity
- Atlas
- 899 Rain Fall Gauge
CC RR IIII | IIII IIII | pBMMMMMM | pxxWWWWW | pWWWTTTT | pTTTTTTT | pSSSSSSS
C:2d R:2d ID:12d 1x BATT:1b TYPE:6h 1x ?2b W:5b 1x 3b T:4b 1x 7b S: 1x 7d
Expand Down Expand Up @@ -1460,7 +1461,7 @@ static char *acurite_txr_output_fields[] = {
};

r_device acurite_txr = {
.name = "Acurite 592TXR Temp/Humidity, 5n1 Weather Station, 6045 Lightning, 3N1, Atlas",
.name = "Acurite 592TXR Temp/Humidity, 5n1 Weather Station, 6045 Lightning, 899 Rain, 3N1, Atlas",
.modulation = OOK_PULSE_PWM,
.short_width = 220, // short pulse is 220 us + 392 us gap
.long_width = 408, // long pulse is 408 us + 204 us gap
Expand Down
4 changes: 3 additions & 1 deletion src/devices/lacrosse_tx141x.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ LaCrosse TX141-Bv2, TX141TH-Bv2, TX141-Bv3, TX145wsdth sensor.
Also TFA 30.3221.02 (a TX141TH-Bv2),
also TFA 30.3222.02 (a LaCrosse-TX141W).
also TFA 30.3251.10 (a LaCrosse-TX141W).
also some rebrand (ORIA WA50B) with a slightly longer timing, s.a. #2088
LaCrosse Color Forecast Station (model C85845), or other LaCrosse product
utilizing the remote temperature/humidity sensor TX141TH-Bv2 transmitting
Expand Down Expand Up @@ -129,7 +130,8 @@ static int lacrosse_tx141x_decode(r_device *decoder, bitbuffer_t *bitbuffer)

// Find the most frequent data packet
// reduce false positives, require at least 5 out of 12 or 3 of 4 repeats.
r = bitbuffer_find_repeated_row(bitbuffer, bitbuffer->num_rows > 4 ? 5 : 3, 32); // 32
// allows 4-repeats transmission to contain a bogus extra row.
r = bitbuffer_find_repeated_row(bitbuffer, bitbuffer->num_rows > 5 ? 5 : 3, 32); // 32
if (r < 0) {
// try again for TX141W/TX145wsdth, require at least 2 out of 3-7 repeats.
r = bitbuffer_find_repeated_row(bitbuffer, 2, 64); // 65
Expand Down

0 comments on commit 5c17e4e

Please sign in to comment.