Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple RF modules simulatenously #2130

Draft
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

melyux
Copy link
Contributor

@melyux melyux commented Dec 11, 2024

Description:

So this is how I've been successfully using the Pilight and RF modules simultaneously on the same OMG installation. I have a normal RXB6 receiver, and its same data pin goes to 2 different pins on the ESP8266 (presumably to take advantage of the hardware interrupts thereof).

The code change is dead simple: just enable all the RF modules you want instead of only enabling one.

I use a bitfield for setting the active receiver (0000), so you can set multiple receivers at the same time with e.g. 0011, meaning {"active": 3} for Pilight + RF.

There are obviously some things that might not work that I haven't tried, like CC1101 using Pilight + RF or HA discovery, but I'm just a simple man, I use the old fashioned RXB6 variants for most OOK things like this. The code will need adjustment and sanity checks like this. Since I'm not sure how you'd want to implement configurations and etc, this is a draft, but it works perfectly for my purposes, so I wanted to share it in hopes of getting a variation of it merged for others' benefit. (see #450)

Thanks @1technophile for your efforts and openminded kindness through the years.

Checklist:

  • The pull request is done against the latest development branch
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • I accept the DCO.

@melyux melyux marked this pull request as draft December 11, 2024 11:05
@melyux melyux mentioned this pull request Dec 11, 2024
@melyux melyux changed the title Allow multiple RF receivers simulatenously Allow multiple RF modules simulatenously Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant