Yeni gigabit switch'lere geçtikten sonra eski W5100 shield'lerin bağlantısı koptu
Yapay zekâ tarafından English dilinden çevrildi ·
Bir güneş enerjisi sahasında altı adet Arduino Mega + W5100 Ethernet shield’imiz var (eski klon kartlar); enerji sayacı darbelerini sayıyor ve her dakika Hermetry’ye yayınlıyorlar. TLS yapamadıkları için kendi profillerinde, düz MQTT’ye izin verilmiş halde, sahanın VPN’i içinde duruyorlar ve Allowed networks ile sabitlenmişler.Geçen ay sahaya yeni yönetilebilir gigabit switch’ler geldi. O tarihten beri altı shield’in dördü hiç link alamıyor; shield üzerindeki link LED’i sönük kalıyor. Diğer ikisi aynı switch’te çalışıyor. Ölü olanlardan birini yedek kutusundaki eski 10/100 switch’e taktığımızda hemen bağlanıyor. Kablo aynı.Bu cihazların Log sekmesinde, değişim gününde son keepalive_timeout bağlantı kopması görünüyor, bundan sonra hiçbir kayıt yok.
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.
Yapay zekâ tarafından English dilinden çevrildi ·
Bu portlarda Energy Efficient Ethernet (EEE, “green ethernet”) özelliğinin açık olup olmadığını kontrol edin, eski PHY’ler bundan hoşlanmaz.
Check whether Energy Efficient Ethernet (EEE, “green ethernet”) is on for those ports, old PHYs hate it.
Yapay zekâ tarafından English dilinden çevrildi ·
Altı portun tamamında EEE özelliğini kapattım. Ardından portları da 100/full moduna zorladım. Şimdi link LED’i yanıyor, ancak trafik yok, DHCP hiçbir yanıt alamıyor.
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.
Yapay zekâ tarafından English dilinden çevrildi ·
Belki farklı bir kablo deneyebilirsiniz?
Maybe try a different cable?
Yapay zekâ tarafından English dilinden çevrildi ·
Bir şişleme hattında eski shield’lerle bunu yaşadık, üst üste binmiş iki sorun vardı.Bağlantı kurulduktan sonra trafiği öldüren şey, switch portunu 100/full’e sabitlemendi. W5100 hâlâ otomatik müzakere yapar. Karşı taraf sabitlendiğinde otomatik müzakere duplex modunu bulamaz ve half duplex’e geri döner. Switch full, shield half olursa duplex uyuşmazlığı oluşur: bağlantı var, ama neredeyse hiçbir şey geçmez. Portları tekrar otomatike alın ya da iki ucu da sabitleyin (Arduino kütüphanesinden W5100’ü sabitleyemezsiniz).Baştaki bağlantı yokluğu sorunu çoğu zaman bu klon shield’lerdeki reset kaynaklıdır. W5100, besleme gerilimi kararlı olmadan reset’ten çıkar ve PHY’si bazen hiç düzgün müzakere edemez. Eski switch hoşgörülüydü, yenisi değil. Bizde işe yarayan çözüm:
// shield RESET pini, atlama kablosuyla D8'e bağlı
pinMode(8, OUTPUT);
digitalWrite(8, LOW);
delay(50);
digitalWrite(8, HIGH);
delay(500); // let the PHY settle
Ethernet.begin(mac, ip);
Yine de bir tanesi çalışmazsa, shield ile yönetilebilir switch arasına ucuz bir yönetilemez 10/100 switch koymak tartışmayı bitirir. Uzun vadede W5500 shield’lerde bu sorun yoktur.
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.
Yapay zekâ tarafından English dilinden çevrildi ·
Portlar yeniden otomatik moda alındı, EEE kapalı tutuldu, reset darbesi eklendi: altıdan beşi ayağa kalktı ve salıdan beri veri yayınlıyor. Son olanı bunu kabul etmedi, bu yüzden kutusuna küçük bir 10/100 switch konuldu. Bir sonraki saha ziyaretinde altısının tamamı W5500 ile değiştirilecek.
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.
Yapay zekâ tarafından English dilinden çevrildi ·
Bilmek güzel, otel çamaşırhanesinde bu eski shield’lerden iki tane var ve BT ekibi yeni switch’lerden bahsediyor.
Good to know, we have two of these old shields in the hotel laundry and IT is talking about new switches.
- Bu konuyu yanıtlamak için giriş yapmış olmalısınız.
Sohbete katılın
Soru sormak ve yanıtlamak, yararlı gönderileri beğenmek ve sorununuzu çözen yanıtı işaretlemek için oturum açın. Her katkı puan ve seviye kazandırır.

