#3687·rtl_433

wh1050/TFA303151 has inadequate validation

Author: gdtCreated Sep 7, 2026Updated Sep 7, 2026
Labelsdevice support

I got a bad decode

{"serial":"3","time":"2026-09-07 12:50:58","protocol":246,"model":"TFA-303151","id":16,"msg_type":5,"battery_ok":0,"temperature_C":-54.2,"humidity":84,"wind_avg_km_h":36.72,"wind_max_km_h":310.896,"rain_mm":7416.5,"mic":"CRC","mod":"FSK","freq1":914.9664,"freq2":915.01536,"rssi":-29.095,"snr":7.16535,"noise":-36.2604}

The driver fineoffset_wh1050.c handles this, and more validation is needed.

The perhaps-hard problem is that there are two devices that are related but quite different. One is OOK and has one kind of preamble, and the other (TFA-303151) has a completely different preamble. Both are sent to the same callback. Instead of checking modulation and then the appropriate preamble, both preambles (actually 3 kinds) are checked for any callback, giving up some reliability.

Beyond that, there seem to be unchecked bitbuffer reads.

Finally, there's the idea that there are repeated structures within the same bitbuffer row, but the driver treats those as independent rather than FEC.