RTL_433 Decode Moisture Sensor

I’m noob to rtl_433 and I am trying to decode the Dr.Meter (Amazon.com: Dr.meter 4 Pack Soil Humidity Sensor Probe, Plant Soil Moisture Meter, Accessory Only, Cannot Be Used Alone : Patio, Lawn & Garden) but it doesn’t have a standard protocol. I have gotten the pulse information but cannot figure out how to decode it and put a custom protocol in the config file. Anyone try this or open to help?

i’d like to do same things, can you share you work until now?

I have given up on this project at this time. I was unable to figure out how to decode the sensor. I tried multiple configurations and even tried to have chatGTP help.
Here is some of the last suggestions i received
It looks like you’re analyzing a couple of OOK (On-Off Keying) signals with Pulse Width Modulation (PWM). Here’s a summary of the data:

From this packet:

  • Short pulse (s): ~564 µs
  • Long pulse (l): ~1370 µs
  • Gap (g): ~1102 µs
  • Reset (r): anything >1122 µs (interpreted as end of frame)
  • Timing threshold (t): 322 µs (helps in distinguishing between logical 0 and 1)
  • PWM mode: So pulse width determines data, gap is fixed (typical for OOK_PMW).

The suggestion at the bottom gives a valid -X config:

bash

CopyEdit

-X 'n=customPWM,m=OOK_PWM,s=564,l=1370,r=1122,g=0,t=322,y=0'

This lets rtl_433 interpret:

  • A short pulse = binary 0
  • A long pulse = binary 1

1st OOK Package (Detected at 14:14:51)

  • Total Pulse Count: 779 pulses
  • Pulse Width Distribution:
    • Short pulse: 566 µs (503 occurrences)
    • Long pulse: 1359 µs (276 occurrences)
  • Gap Width Distribution:
    • Short gap: 251 µs (322 occurrences)
    • Long gap: 3836 µs (12 occurrences)
    • Medium gap: 1055 µs (444 occurrences)
  • Pulse+Gap Period Distribution:
    • Short: 814 µs (46 occurrences)
    • Long: 4402 µs (12 occurrences)
    • Medium: 1618 µs (720 occurrences)
  • Gap+Pulse Period Distribution:
    • Several varying periods ranging from 587 µs to 5196 µs.

It seems this package involves some regular pulse and gap period patterns, with multiple different packet periods observed.

2nd OOK Package (Detected at 14:14:52)

  • Total Pulse Count: 2 pulses
  • Pulse Width Distribution:
    • Short pulse: 14 µs (1 occurrence)
    • Long pulse: 10 µs (1 occurrence)
  • Gap Width Distribution:
    • 4585 µs (1 occurrence)
  • Pulse+Gap Period Distribution:
    • 4599 µs (1 occurrence)

This package has a very short duration and appears to be a simpler signal, possibly a part of a larger system or a specific short message.

Suggested Decoding Approach:

For both signals, you can try decoding them using the given PWM modulation parameters with -X options as suggested by rtl_433:

  • For the first signal, the parameters would be:
    -X 'n=name,m=OOK_PWM,s=566,l=1359,r=3844,g=1094,t=317,y=0'
  • For the second signal:
    -X 'n=name,m=OOK_PWM,s=10,l=14,r=4586,g=0,t=2,y=0'

These settings specify the short and long pulse widths, reset limits, and sync patterns.