NorthernMan54 / rtl_433_ESP

Trial port of the rtl_433 Library for use with OpenMQTTGateway on a ESP32 and a CC1101 Transceiver
GNU General Public License v3.0
520 stars 125 forks source link

Is there a way to specify only the protocols we want? Would that help with sensitivity? #137

Open melyux opened 7 months ago

melyux commented 7 months ago

Current Situation

RTL_433 offers a -R flag to specify the protocol(s) you want to decode. Is there a compile flag we can use with this library to do that too? It's not that I care about it decoding other protocols than my devices, but I'm wondering if that would help with the automatic adjustment of the signal floor (not exactly sure how that works) if it didn't have to consider all my neighbors' devices, just my own.

Logs

N/A

Configuration

N/A

Environment

Process Supervisor

not applicable

Additional Context

I love you

DigiH commented 7 months ago

Hi @melyux

Have you had a look at the MY_DEVICES compile definition option?

While I haven't used it myself for quite a while it was working nicely when I did, and seems to be exactly what you're looking for.

https://github.com/NorthernMan54/rtl_433_ESP?tab=readme-ov-file#compile-definition-options

NorthernMan54 commented 7 months ago

@melyux PS - Reducing the number of supported devices with the MY_DEVICES option would not change sensitivity, just remove potential false positives from your environment.

The decoder logic, checks all enabled decoders, and returns the results from all. So additional decoders wouldn't stop other decoders from processing the signal.

melyux commented 7 months ago

@DigiH @NorthernMan54 MY_DEVICES is just a Boolean, right? No way to specify what exact protocols I want?

But good to know that it wouldn't change anything anyone would care about in the first place

NorthernMan54 commented 7 months ago

@melyux MY_DEVICES is a compiler directive that enables you to specify which decoders to bundle and is in multiple locations within the code base. It is best used to remove false positives from the results. And if this isn't your issue, then it isn't worth the effort