Alte W5100-Shields verloren nach dem Umstieg auf neue Gigabit-Switches die Verbindung
Von English mit KI übersetzt ·
Wir betreiben an einem Solarstandort sechs Arduino Mega + W5100 Ethernet-Shields (ältere Clone-Boards), die Impulse von Energiezählern erfassen und jede Minute an Hermetry senden. Sie können kein TLS, daher liegen sie in einem eigenen Profil mit erlaubtem Klartext-MQTT, innerhalb des VPNs des Standorts, fixiert mit Allowed networks.Letzten Monat wurden am Standort neue managed Gigabit-Switches installiert. Seitdem haben vier der sechs Shields gar keine Verbindung mehr, die Link-LED auf dem Shield bleibt dunkel. Die anderen beiden funktionieren am selben Switch. Steckt man eines der ausgefallenen auf den alten 10/100-Switch aus dem Ersatzteilkarton, kommt es sofort hoch. Gleiches Kabel.Der Log-Tab dieser Geräte zeigt den letzten keepalive_timeout-Disconnect am Tag des Austauschs und danach nichts mehr.
We have six Arduino Mega + W5100 Ethernet shields (older clone boards) at a solar site, counting energy meter pulses and publishing every minute to Hermetry. They can’t do TLS, so they sit on their own profile with plain MQTT allowed, inside the site’s VPN, pinned with Allowed networks.
Last month the site got new managed gigabit switches. Since then four of the six shields get no link at all, the link LED on the shield stays dark. The other two work, on the same switch. Put one of the dead ones on the old 10/100 switch from the spares box and it comes up immediately. Same cable.
The Log tab for those devices shows the last keepalive_timeout disconnect on the day of the swap and nothing after.
Von English mit KI übersetzt ·
Prüfe, ob Energy Efficient Ethernet (EEE, „green ethernet“) für diese Ports aktiviert ist, alte PHYs vertragen das nicht.
Check whether Energy Efficient Ethernet (EEE, „green ethernet“) is on for those ports, old PHYs hate it.
Von English mit KI übersetzt ·
Habe EEE auf allen sechs Ports deaktiviert. Dann habe ich die Ports zusätzlich auf 100/Full fest eingestellt. Jetzt leuchtet die Link-LED, aber es gibt keinen Datenverkehr, DHCP bekommt nie eine Antwort.
Turned EEE off on all six ports. Then I also forced the ports to 100/full. Now the link LED comes on, but there is no traffic, DHCP never gets an answer.
Von English mit KI übersetzt ·
Vielleicht mal ein anderes Kabel probieren?
Maybe try a different cable?
Von English mit KI übersetzt ·
Das hatten wir an einer Abfüllanlage mit alten Shields, zwei Probleme haben sich übereinandergelegt.Das Festsetzen des Switch-Ports auf 100/full hat den Datenverkehr getötet, nachdem die Verbindung stand. Der W5100 handelt weiterhin automatisch aus. Ist die Gegenseite fest eingestellt, kann die Auto-Negotiation den Duplex-Modus nicht ermitteln und fällt auf Halbduplex zurück. Switch auf full, Shield auf half ergibt eine Duplex-Fehlanpassung: Link ist oben, aber kaum etwas kommt durch. Stellen Sie die Ports wieder auf Auto oder fixieren Sie beide Seiten (und den W5100 können Sie aus der Arduino-Bibliothek nicht festsetzen).Das ursprüngliche Problem ohne Link liegt sehr oft am Reset bei diesen Clone-Shields. Der W5100 verlässt den Reset, bevor seine Versorgung stabil ist, und sein PHY handelt manchmal gar nicht richtig aus. Der alte Switch war nachsichtig, der neue ist es nicht. Die Lösung, die bei uns funktioniert hat:
// shield RESET pin wired to D8 with a jumper wire
pinMode(8, OUTPUT);
digitalWrite(8, LOW);
delay(50);
digitalWrite(8, HIGH);
delay(500); // let the PHY settle
Ethernet.begin(mac, ip);
Und wenn einer trotzdem nicht will, beendet ein günstiger unmanaged 10/100-Switch zwischen Shield und managed Switch die Diskussion. Langfristig haben W5500-Shields dieses Problem nicht.
We had this with old shields on a bottling line, two problems stacked on top of each other.
Forcing the switch port to 100/full is what killed traffic after you got a link. The W5100 still auto-negotiates. When the other side is forced, auto-negotiation can’t find out the duplex and falls back to half duplex. Switch on full, shield on half, and you get a duplex mismatch: link up, almost nothing passes. Put the ports back to auto, or force both ends (and you can’t force the W5100 from the Arduino library).
The original no-link problem is very often the reset on those clone shields. The W5100 comes out of reset before its supply is stable and its PHY sometimes never negotiates properly. The old switch was forgiving, the new one isn’t. Fix that worked for us:
// shield RESET pin wired to D8 with a jumper wire
pinMode(8, OUTPUT);
digitalWrite(8, LOW);
delay(50);
digitalWrite(8, HIGH);
delay(500); // let the PHY settle
Ethernet.begin(mac, ip);
And if one still refuses, a cheap unmanaged 10/100 switch between the shield and the managed one ends the argument. Long term, W5500 shields don’t have this problem.
Von English mit KI übersetzt ·
Ports wieder auf Auto, EEE blieb aus, Reset-Impuls ergänzt: Fünf von sechs sind hochgekommen und senden seit Dienstag. Der letzte wollte das nicht, daher bekam er einen kleinen 10/100-Switch in sein Gehäuse. Alle sechs werden beim nächsten Vor-Ort-Termin durch W5500 ersetzt.
Ports back to auto, EEE stayed off, reset pulse added: five of six came up and have been publishing since Tuesday. The last one would not have it, so it got a small 10/100 switch in its box. Replacing all six with W5500s at the next site visit.
Von English mit KI übersetzt ·
Gut zu wissen, wir haben zwei dieser alten Shields in der Hotelwäscherei, und die IT spricht über neue Switches.
Good to know, we have two of these old shields in the hotel laundry and IT is talking about new switches.
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.
Mitdiskutieren
Melde dich an, um Fragen zu stellen und zu beantworten, hilfreiche Beiträge mit „Gefällt mir“ zu markieren und die Antwort zu kennzeichnen, die dein Problem gelöst hat. Jeder Beitrag bringt Punkte und Stufen.

