Git Product home page Git Product logo

Comments (6)

fingolfin avatar fingolfin commented on July 28, 2024

In the current implementation, I am afraid some pin with interrupt capabilities is required. For the Uno, that means pin 2 or pin 3.

But if you actually have pin 2 available for use with rc-swich, I don't quite see what the problem is / what is causing it. Weird...

from rc-switch.

inflamers avatar inflamers commented on July 28, 2024

Basically, here is below a piece of my code, I have 2 main functions in setup() :

  • mySwitch.enableReceive(0);
  • server.begin();

Serial.println("Starting rcswitch");
mySwitch.enableReceive(0);
Serial.println("Starting comm");
Ethernet.begin(mac);
server.begin();

When I execute this, I have an infinite loop in the monitor :
Starting rcswitch
Starting comm
Starting rcswitch
Starting comm
Starting rcswitch
Starting comm
...

If I disable mySwitch.enableReceive(0); with comments ("//") everything else works perfectly fine, but not rcswitch.Any idea ? Pretty weird. I used pin 2 for RCSwitch (Interr. 0).

Mickael

from rc-switch.

fingolfin avatar fingolfin commented on July 28, 2024

Perhaps something else is also trying to use pin 2 and/or messing with interrupts? E.g. the ethernet code?

In any case, I doubt this is due to a bug in rc-switch. You are most likely better of asking for help in a general Arduino forum. And if you could provide more (or ideally all) of the source code, it would be easier to pinpoint where things go wrong.

from rc-switch.

inflamers avatar inflamers commented on July 28, 2024

This is what I was thinking, I guess the issue comes from the ethernet module. I already opened a thread in the general forum and in the github page for ENC28J60, no solution so far... Thanks to you anyway !

from rc-switch.

fingolfin avatar fingolfin commented on July 28, 2024

Actually, what library are you using to drive the ENC28J60? AS far as google tells me, the stock ethernet library is not compatible with it.

from rc-switch.

fingolfin avatar fingolfin commented on July 28, 2024

Without more details (such as what library you use to drive the ENC28J60; or perhaps a complete "minimal crashing demo"), there is nothing really we can do about this.

from rc-switch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.