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

Irremoteesp8266 and rfrh22 from radiohead #2013

Open
Vorms opened this issue Jul 25, 2023 · 3 comments
Open

Irremoteesp8266 and rfrh22 from radiohead #2013

Vorms opened this issue Jul 25, 2023 · 3 comments
Labels

Comments

@Vorms
Copy link

Vorms commented Jul 25, 2023

I use an esp32.
When I receive an infrared message I have to transmit an rf message, the corresponding node send a message to the node just receiving the infrared message and this not has to send an other message and so on.

I have a lot of crash (timer interrupt) I dont understand what'happend and how to solve it.

@crankyoldgit
Copy link
Owner

Can I suggest disabling collection of IR messages when you transmit via RF? Maybe the RF library you are using uses the same hardware timer.
See documentation: https://crankyoldgit.github.io/IRremoteESP8266/doxygen/html/classIRrecv.html#a8fe4d26ef1f863db1db9994fed5fc209

e.g.

IRrecv irrecv(RecvPin,  // GPIO Pin to use
              CaptureBufferSize, //  Size of the capture buffer
              Timeout,  // How long to wait before we give up on a signal
              false,  // Wait for a .resume() call before we start capturing again
              TimerNumber);  // Which hardware timer should we use?

void setup() {
  irrecv.enableIRIn();  // Start up the IR receiver.
}

void loop() {
  // Check if an IR message has been received.
  if (irrecv.decode(&results)) {  // We have captured something.
    // The capture has stopped at this point.
    // Do your RF thing.
    // then
    // Resume capturing IR messages. It was not restarted until after we did the RF
    // message.
    irrecv.resume();
  }
  yield();
}

Or see the DumbIRRepeater.ino example code.

@Vorms
Copy link
Author

Vorms commented Jul 25, 2023 via email

@crankyoldgit
Copy link
Owner

Do you have a minimum viaable example of your code that you can share that produces the issue/errors/etc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants