Los shields W5100 antiguos perdieron el enlace tras cambiar a los nuevos switches gigabit
Traducido del English por IA ·
Tenemos seis shields Ethernet Arduino Mega + W5100 (placas clónicas antiguas) en una instalación solar, contando pulsos de medidores de energía y publicando cada minuto en Hermetry. No pueden usar TLS, así que están en su propio perfil con MQTT sin cifrar permitido, dentro de la VPN de la instalación, fijados con Allowed networks.El mes pasado la instalación recibió nuevos switches gigabit gestionados. Desde entonces, cuatro de los seis shields no tienen enlace en absoluto; el LED de enlace del shield permanece apagado. Los otros dos funcionan en el mismo switch. Al conectar uno de los que no funcionan al switch 10/100 antiguo del almacén de repuestos, se levanta de inmediato. Mismo cable.La pestaña Log de esos dispositivos muestra la última desconexión keepalive_timeout el día del cambio y nada despué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.
Traducido del English por IA ·
Compruebe si Energy Efficient Ethernet (EEE, «green ethernet») está activado en esos puertos, los PHY antiguos no lo soportan bien.
Check whether Energy Efficient Ethernet (EEE, «green ethernet») is on for those ports, old PHYs hate it.
Traducido del English por IA ·
Desactivé EEE en los seis puertos. Luego también forcé los puertos a 100/full. Ahora el LED de enlace se enciende, pero no hay tráfico, DHCP nunca recibe respuesta.
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.
Traducido del English por IA ·
¿Quizás probar con otro cable?
Maybe try a different cable?
Traducido del English por IA ·
Lo tuvimos con shields antiguos en una línea de embotellado, dos problemas apilados uno sobre otro.Forzar el puerto del switch a 100/full es lo que mató el tráfico una vez que se obtuvo el enlace. El W5100 sigue auto-negociando. Cuando el otro extremo está forzado, la auto-negociación no puede detectar el dúplex y cae a half duplex. Switch en full, shield en half: se produce un desajuste de dúplex, el enlace está activo pero casi nada pasa. Vuelva a poner los puertos en auto, o fuerce ambos extremos (y no puede forzar el W5100 desde la biblioteca de Arduino).El problema original de falta de enlace suele deberse al reset de esos shields clónicos. El W5100 sale del reset antes de que su alimentación sea estable, y su PHY a veces nunca negocia correctamente. El switch antiguo era tolerante, el nuevo no lo es. La solución que nos funcionó:
// 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);
Y si alguno aún se niega, un switch 10/100 no administrado y barato entre el shield y el switch administrado zanja la discusión. A largo plazo, los shields W5500 no tienen este problema.
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.
Traducido del English por IA ·
Puertos devueltos a auto, EEE se mantuvo desactivado, añadido un pulso de reset: cinco de seis se levantaron y llevan publicando desde el martes. El último no aceptaba, así que se le puso un pequeño switch 10/100 en su caja. Sustituiremos los seis por W5500 en la próxima visita a la planta.
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.
Traducido del English por IA ·
Bien saberlo, tenemos dos de estos shields antiguos en la lavandería del hotel y el departamento de TI está hablando de nuevos switches.
Good to know, we have two of these old shields in the hotel laundry and IT is talking about new switches.
- Debes estar registrado para responder a este debate.
Únete a la conversación
Inicia sesión para preguntar y responder, dar me gusta a las publicaciones útiles y marcar la respuesta que resolvió tu problema. Cada aportación suma puntos y niveles.

