Metal cold room cabinet causes ESP-01 disconnects, external antenna options
Translated from Türkçe by AI ·
Me again 🙂 This time it’s the hotel’s kitchen side. We monitor temperature in six cold rooms, each with a small box built from a DS18B20 + ESP-01 (ESP8266) that sends data to Hermetry every minute via MQTT. The boxes are inside the stainless steel electrical cabinet outside the room, and the probe cable goes inside.Two rooms keep disconnecting. On the device page’s Log tab I see keepalive_timeout 30-40 times a day, the offline alarm keeps switching on and off, and the night shift is tired of the alarm notifications. The access point is in the corridor, about 15 meters away.When I leave the cabinet door open it gets better, so the problem is probably the metal cabinet. Can an external antenna be attached to the ESP-01, or should I buy a different module? I don’t know much about electronics, a technician friend built the box inside the cabinet.
Yine ben 🙂 Bu sefer otelin mutfak tarafı. Altı soÄŸuk odada sıcaklık izliyoruz, her birinde DS18B20 + ESP-01 (ESP8266) ile yapılmış küçük bir kutu var, Hermetry’ye MQTT ile her dakika veri gönderiyor. Kutular odanın dışındaki paslanmaz çelik elektrik dolabının içinde, prob kablosu içeri giriyor.
İki oda sürekli kopuyor. Cihaz sayfasındaki Log sekmesinde günde 30-40 kez keepalive_timeout görüyorum, offline alarmı da sürekli açılıp kapanıyor, gece vardiyası alarm bildirimlerinden bıktı. Access point koridorda, 15 metre kadar uzakta.
Dolabın kapağını açık bırakınca düzeliyor, yani sorun metal dolap herhalde. ESP-01’e harici anten takılabiliyor mu, yoksa baÅŸka modül mü almalıyım? Elektronikten çok anlamıyorum, dolap içi kutuyu bir teknisyen arkadaÅŸ yaptı.
Translated from Türkçe by AI ·
What RSSI are you seeing? If you add WiFi.RSSI() to the telemetry in the code, you’ll see it on the graph instead of guessing.
RSSI kaç görüyorsun? Kodda WiFi.RSSI()‘yi telemetriye ekletirsen grafikte görürsün, tahmin yürütmek yerine.
Translated from Türkçe by AI ·
The technician added: with the lid closed between -86 and -91, when open -68.
Teknisyen ekledi, kapak kapalıyken -86 ile -91 arası, açıkken -68.
Translated from Türkçe by AI ·
At -86 and below, the limit for ESP8266 is marginal, and the metal cabinet acts like a Faraday cage. The ESP-01 has a PCB antenna and no external antenna input. We had the same problem in our warehouse and solved it like this:We replaced the module with an ESP-07S or with the U.FL connector version of the ESP-12 (the ESP-07S has no PCB antenna, only U.FL, so there is no confusion). With an RP-SMA panel-type pigtail cable from the U.FL, we brought the antenna out through the top of the cabinet, and on the outside we fitted a small 3 dBi rod antenna. If you want to use an ESP32, the ESP32-WROOM-32U follows the same approach. The code does not change, only the pin definitions.Keep the cable short (20-30 cm), since a long thin coaxial cable causes losses at 2.4 GHz. Keep the antenna at least a few cm away from the metal surface of the cabinet, and keep it upright. For us, the signal went from -88 to -61.On the Hermetry side, also do this: check the Open after (seconds offline) value in the offline rule. The default is 600, but yours may have been set to something short like 60, so set it back to 600. Short disconnections will not open an alarm, and a device that really disconnects will still be caught within 10 minutes. Details: Offline alarmları. Also keep the keepalive in the 30-60 second range; the PubSubClient default is 15 seconds.
-86 ve altı ESP8266 için sınırda, metal dolap Faraday kafesi gibi davranıyor. ESP-01’in PCB anteni var, harici anten giriÅŸi yok. Bizim depoda aynı ÅŸeyi yaÅŸadık, şöyle çözdük:
Modülü ESP-07S ya da ESP-12’nin U.FL konnektörlü versiyonuyla deÄŸiÅŸtirdik (ESP-07S’te PCB anteni yok, sadece U.FL var, karışıklık olmuyor). U.FL’den RP-SMA panel tipi geçiÅŸ kablosu ile dolabın üstünden dışarı, dışarıya da 3 dBi küçük bir çubuk anten. ESP32 kullanmak isterseniz ESP32-WROOM-32U da aynı mantık. Kod deÄŸiÅŸmiyor, sadece pin tanımları.
Kablo boyunu kısa tutun (20-30 cm), uzun ince koaksiyel 2.4 GHz’te kayıp yapar. Anteni dolabın metal yüzeyinden en az birkaç cm uzakta, dik tutun. Bizde -88’den -61’e çıktı.
Hermetry tarafında da ÅŸunu yapın: offline kuralında Open after (seconds offline) deÄŸerine bakın, varsayılanı 600 ama sizde biri 60 gibi kısa bir ÅŸey girmiÅŸ olabilir, 600’e geri çekin. Kısa kopmalarda alarm açılmaz, gerçekten kopan cihaz yine 10 dakikada yakalanır. Ayrıntı: Offline alarmları. Keepalive’ı da 30-60 saniye aralığında tutun, PubSubClient’ın varsayılanı 15 saniye.
Translated from Türkçe by AI ·
Thanks a lot, Kerem. We fitted two rooms with ESP-07S and external antennas, RSSI is -63 / -66, and there have been no drops for two days. I also set the offline timeout to 600. The technician forgot to pull GPIO15 to ground while flashing the ESP-07S, and we struggled with it for half a day, so I’ll mention that too.
Kerem Bey saÄŸ olun. İki odaya ESP-07S ve dışarı anten taktırdık, RSSI -63 / -66 oldu, iki gündür tek kopma yok. Offline süresini de 600 yaptım. Teknisyen ESP-07S’te flash ederken GPIO15’i topraÄŸa çekmeyi unutmuÅŸ, yarım gün onunla uÄŸraÅŸtık, onu da yazayım.
Translated from Türkçe by AI ·
Keep logging RSSI in telemetry. If you also set a threshold rule, you will get early warning if the antenna cable loosens.
RSSI’ı telemetride tutmaya devam edin, bir eÅŸik kuralı da koyarsanız anten kablosu gevÅŸerse önceden haber alırsınız.
- You must be logged in to reply to this topic.
Join the conversation
Sign in to ask and answer, like helpful posts and mark the reply that solved your problem. Every contribution earns points and levels.

