rtl_433 icon indicating copy to clipboard operation
rtl_433 copied to clipboard

Option to include/exclude protocols from the default set

Open drws opened this issue 3 years ago • 4 comments

The default protocol list can be overriden, but there is no option to simply include or exclude some protocols from it. It would make a handy option sometimes.

drws avatar Oct 16 '22 08:10 drws

Please describe in more detail what you want to achieve and what you tried. The -R option should exactly handle that use case:

  [-R <device> | help] Enable only the specified device decoding protocol (can be used multiple times)
       Specify a negative number to disable a device decoding protocol (can be used multiple times)

zuckschwerdt avatar Oct 16 '22 09:10 zuckschwerdt

Oh, sorry about missing exclusion possibility. However, I believe that a protocol cannot be included with the default list. Specifying positive number overrides the protocol list.

For example, I would like to use the default protocol list while also including protocol 216 (ANT/ANT+). Am I missing something?

drws avatar Oct 16 '22 10:10 drws

In that case use an exclusion first to setup the default list, e.g. -R -216 -R 216

zuckschwerdt avatar Oct 16 '22 10:10 zuckschwerdt

That is great to hear and will come in handy. It would still be great to have a shorter and more intuitive way, for example -R +216.

drws avatar Oct 23 '22 20:10 drws

IMHO this is both a doc bug, and a functionality bug.

We have a default set of enabled protocols, basically the ones that are not problematic (due to false decodes). It makes perfect sense for someone to want to add one and keep the defaults.

gdt avatar Sep 27 '23 13:09 gdt

I lean to making -R add/remove, and have another switch, perhaps "-R all" to remove all defaults. That's breaking. Another approach is to add a new "-Z n" (but not Z) to add n w/o clearing the defaults. But basically I find that "enable a decoder" removes other decoders to be very surprising/non-intuitive semantics.

gdt avatar Sep 27 '23 13:09 gdt