I have a need to use the match parameter in a flex decoder, but can't figure out how to use it on the id: tag. This is my decoder:
decoder {
name=DrivewayAlert,
modulation=OOK_PWM,
short=670,
long=1340,
reset=2000,
bits=9,
get=@4:{1}:battery_ok:[0:1 1:0],
get=@5:{4}:id,
sync=3800
}
I can make it match the full 9-bit data field with match={9}720, but that value changes with
the status of the battery. The id field begins in bit 5 of the
data field, so it doesn't change, but I can't figure out how to
tell the match parameter to just look at bits 5-8 of the data
field.
Can someone please explain how that works?
Thanks, David
-- Inflation is an economic device by which each man can make more than the next.
Hmmm... in that case, can I use more than one "match" option on
the decoder? I could match the entire 9-bit data field twice,
once with the battery bit set to 1 and once with it set to 0.
Then it would trigger either way.
dp
The "match"-option just matches the given bits anywhere in the data. If your ID is "9" then use match=9 or match={4}9Not a very good filter with only 4 bits and we currently don't support matching at a fixed position, sorry.
--
You received this message because you are subscribed to the Google Groups "rtl_433" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtl_433+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rtl_433/df0e25d0-a684-47b5-99ba-f5bdd0537670n%40googlegroups.com.
-- If you think nobody cares about you, try missing a couple of payments.