Can Argon work with a W5500 module? I'm starting up with this today, and before I start digging any deeper, I wanted to ask the community.
I am aware that there's the featherwing, but I had a couple of W5500 sitting in my drawer from previous Arduino projects. I have read posts like this, a more recent one and from my understanding I don't see why I can't interface W5500. This blogpost allegedly made it work.
Up to now I tried the output of this and surprisingly I get Ethernet present but not ready. The FDX lights from the Ethernet module won't even light up (the module is on).
I also tried a very simple sketch whose output does not make sense to me:
SYSTEM_THREAD(ENABLED);
void setup()
{
System.enableFeature(FEATURE_ETHERNET_DETECTION);
Serial.begin(9600);
}
void loop() {
delay(1s);
if (!Ethernet.ready()) {
uint16_t seconds = Ethernet.getListenTimeout();
Serial.printlnf("Timeout is set to %16x", seconds);
Ethernet.listen();
Ethernet.connect(); // If there are no credentials stored, this will enter listening mode. WRONG! IT WONT CHANGE TO LISTEN MODE
if (Ethernet.listening()) {
Serial.printlnf("localIP: %s", Ethernet.localIP().toString().c_str());
Serial.printlnf("Device is listening...");
Ethernet.setListenTimeout(30000);
seconds = Ethernet.getListenTimeout();
}
Serial.printlnf("Timeout is set to %u\n", (unsigned int)seconds);
}
delay(3s);
Timeout is set to 0
localIP: 0.0.0.0
Device is listening...
Timeout is set to 0
Meaning that I'm probably not even using setListenTimeout()
correctly.
The device successfully runs on Listening Mode, but I don't know how to set it up, as I couldn't find a similar to this function.
I have also tried setting D4 and D5 as output, but nothing turns up.
Bonus Q...
Ethernet.setListenTimeout()
at least on my system did not work with chrono literals as advised.
Apologies if that's a long trial-then-error post I just wanted to showcase that I really gave it sometime before resorting to the experts