Les anciens shields W5100 ont perdu leur liaison après notre passage à de nouveaux switches gigabit
Traduit de English par IA ·
Nous avons six shields Ethernet Arduino Mega + W5100 (d’anciennes cartes clones) sur un site solaire, qui comptent les impulsions des compteurs d’énergie et publient chaque minute sur Hermetry. Ils ne peuvent pas faire de TLS ; ils sont donc placés dans leur propre profil avec le MQTT non chiffré autorisé, à l’intérieur du VPN du site, et fixés avec Allowed networks.Le mois dernier, le site a reçu de nouveaux switches gigabit managés. Depuis, quatre des six shields n’ont plus aucune liaison : la LED de liaison du shield reste éteinte. Les deux autres fonctionnent sur le même switch. Branché sur l’ancien switch 10/100 du stock de pièces détachées, un des appareils défaillants s’allume immédiatement. Même câble.L’onglet Log de ces appareils montre la dernière déconnexion keepalive_timeout le jour du remplacement, et rien après.
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.
Traduit de English par IA ·
Vérifiez si Energy Efficient Ethernet (EEE, « green ethernet ») est activé sur ces ports, les anciens PHY le supportent mal.
Check whether Energy Efficient Ethernet (EEE, « green ethernet ») is on for those ports, old PHYs hate it.
Traduit de English par IA ·
J’ai désactivé l’EEE sur les six ports. Ensuite, j’ai aussi forcé les ports en 100/full. Maintenant la LED de liaison s’allume, mais il n’y a aucun trafic, le DHCP ne reçoit jamais de réponse.
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.
Traduit de English par IA ·
Peut-être essayer un autre câble ?
Maybe try a different cable?
Traduit de English par IA ·
Nous avons eu ce problème avec les anciens shields sur une ligne d’embouteillage, deux problèmes superposés.Forcer le port du switch en 100/full est ce qui a tué le trafic une fois la liaison établie. Le W5100 négocie toujours automatiquement. Quand l’autre côté est forcé, la négociation automatique ne peut pas déterminer le duplex et revient en half duplex. Switch en full, shield en half : on obtient un désaccord de duplex, la liaison est active mais presque rien ne passe. Remettez les ports en auto, ou forcez les deux extrémités (et vous ne pouvez pas forcer le W5100 depuis la bibliothèque Arduino).Le problème initial d’absence de liaison vient très souvent du reset de ces shields clones. Le W5100 sort de reset avant que son alimentation soit stable, et son PHY ne négocie parfois jamais correctement. L’ancien switch était tolérant, le nouveau ne l’est pas. Correctif qui a fonctionné chez nous :
// 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);
Et si l’un d’eux refuse encore, un switch 10/100 non géré et bon marché placé entre le shield et le switch géré met fin au débat. À long terme, les shields W5500 n’ont pas ce problème.
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.
Traduit de English par IA ·
Ports remis en auto, EEE resté désactivé, impulsion de reset ajoutée : cinq sur six sont revenus et publient depuis mardi. Le dernier refusait, alors il a reçu un petit switch 10/100 dans son boîtier. Remplacement des six par des W5500 lors de la prochaine intervention sur site.
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.
Traduit de English par IA ·
Bon à savoir, nous avons deux de ces anciens shields dans la buanderie de l’hôtel et le service informatique parle de nouveaux switches.
Good to know, we have two of these old shields in the hotel laundry and IT is talking about new switches.
- Vous devez être connecté pour répondre à ce sujet.
Rejoignez la discussion
Connectez-vous pour poser et répondre à des questions, aimer les messages utiles et marquer la réponse qui a résolu votre problème. Chaque contribution rapporte des points et des niveaux.

