Email us

Este artículo está en inglés. Ver el sitio en español

Cet article est en anglais. Voir le site en français

Dieser Artikel ist auf Englisch. Website auf Deutsch ansehen

Este artigo está em inglês. Ver o site em português

本文为英文。 查看中文网站

WiFi drops out inside a metal enclosure: what to check

Move the antenna outside the box on a bulkhead stud and seal the hole to the same IP66 rating as the wall: a stainless shell shields 2.4 GHz by roughly 10-20 dB, which turns a bench-strong link into a dropout. The Modbus -11 that lands on every other poll rides the wired LAN between PLC and router, so treat it as a poll timeout, not a radio fault; hold -57 dBm or stronger at the machine.

NEMA4 Enclosure engineering team · Published November 24, 2026 · 9 min read

Short answer: treat this as two faults. Get the antenna out of the box for good — a bulkhead jack through a factory-cut hole, sealed to the same IP66 rating as the wall — because a gasketed stainless shell shields 2.4 GHz by roughly 10-20 dB, and that alone turns a bench-strong link into a production dropout. Then leave the Modbus -11 out of the WiFi hunt: the PLC polls the router over the wired LAN, so a radio fault cannot produce it, and a code that lands on every other poll is a timeout or socket problem in the poll itself. Below: what each symptom points to, the checks that split the causes, the link budget that shows why the bench passed and the floor fails, and the fix that holds the washdown rating.

What each symptom points to

Each symptom sorts cleanly once you separate the two paths in the system: the tablet-to-router link over the air, and the PLC-to-router link over cable.

  • Solid on the bench, dead in production. The bench test never combined a closed metal box, 30 m of floor and the plant's electrical noise. Production runs all three at once.
  • Bars look full, then the connection vanishes. The bars read the average carrier; a dropout is a burst or a session reset measured in milliseconds. A full bar with a dead session points at interference or the network, not at distance.
  • Moving the antenna outside helps a lot, and the dropouts stay. That result is two causes stacked. The wall was the big one and the move removed most of it; the smaller one lives in the plant.
  • Every other Modbus poll returns -11. That transaction rides the Ethernet cable between PLC and router. The WiFi link between tablet and router carries none of it, so this is a separate fault that happens to share a cabinet.
  • The tablet reconnects VNC every time. The session died with the radio link. Once the link holds, this symptom leaves on its own.

The causes, in order of likelihood

1. The antenna radiates inside a metal can. A stainless wall reflects almost all of the 2.4 GHz energy that hits it, so the antenna lights up the inside of its own box. What reaches the plant leaks through seams, the door gasket and every cutout. That leak moves: the door flexes, the gasket compresses under the latch, a washdown film wets the seal. Inside the can, the reflected energy forms standing waves, so a few inches of position change shifts the dead spots. On a mobile machine, vibration and door slam swing the pattern shift by shift. The improvement when an antenna moves from inside to outside is the confirming measurement, and the worked example below puts numbers on it.

2. Burst noise on the washdown floor. A microwave oven radiates at 2.45 GHz, inside the band, and one oven running raises the noise floor across much of it. Washdown food plants also run washdown-rated drives on pumps and conveyors, and a drive's fast switching dumps broadband hash onto the power and ground wiring near the machine. Welders, induction heaters and brushed motors add impulses of their own. These are bursts, not averages, which is why a full-strength link dies for seconds and comes back on its own.

3. The router's own radio housekeeping. Many small routers re-scan and re-select their channel on a timer or on congestion, and every client drops and reconnects when the radio re-homes mid-shift. Fixed-channel operation ends this class of dropout.

4. Power sag from the machine itself. A washdown pump or a drive start can sag a shared DC rail long enough to reboot the router's radio. This cause leaves a fingerprint: the router's LEDs blink at the moment of every dropout.

How to check each one

Run the checks in this order; the first two split the fault cleanly.

  1. Log RSSI at both ends. The router's client list reports the tablet's level, and the tablet's WiFi details report the router's. A level that sits at -50 dBm through a dropout says the carrier was present and something transmitted over it or the session reset; a fall toward -80 dBm says the path itself faded.
  2. Ping at 1 s and log it. From the tablet, ping the router's LAN address every 1 s while VNC runs. A frozen screen with clean pings puts the fault above the link; dead pings alongside the freeze put it in the air.
  3. Scan channels at production time. A WiFi analyzer app on the tablet lists the networks per channel plus the noise floor. The 2.4 GHz band has three non-overlapping channels: 1, 6 and 11. Scan during a washdown, with ovens and drives running, and fix the router on the emptiest of the three.
  4. Run the suspects on purpose. Stream video on the tablet and run an oven 20 ft [6 m] away: a stutter that tracks the oven is your noise floor. Then cycle the washdown pump and the drive; a dropout that tracks a start points at power sag, and the router's LEDs confirm it.
  5. Watch the -11 on its own wire. Ping the router from the PLC at every poll. Pings that never fail while every other transaction returns -11 clear the cable and point at the poll's timeout handling, covered below.

The inputs, with their sources:

  • Router transmit power: 20 dBm (100 mW) at 2.4 GHz — the common factory setting, taken here as a worked-example assumption; put your router's own figure in its place.
  • Antenna gain: 2 dBi at the router and 2 dBi at the tablet, typical omnidirectional sticks — also an assumption.
  • Wall loss: 15 dB with the door closed, the midpoint of the 10-20 dB a gasketed stainless box costs at 2.4 GHz.
  • Distance: 9 m [30 ft] on the bench, 30 m [98 ft] across the production floor.

The rule, in words: received power in dBm equals transmit power, plus both antenna gains, minus wall loss, minus free-space path loss. Path loss at 2.44 GHz works out as 32.44 + 20 log10(f in MHz) + 20 log10(d in km).

The arithmetic:

  • Bench, 9 m: 32.44 + 20 log10(2440) + 20 log10(0.009) = 32.44 + 67.75 - 40.92 = 59.3 dB. Received power = 20 + 2 + 2 - 0 - 59.3 = -35.3 dBm. Healthy, which is why development on the bench passed.
  • Floor, antenna outside: 32.44 + 67.75 + 20 log10(0.03) = 32.44 + 67.75 - 30.46 = 69.7 dB. Received power = 24 - 69.7 = -45.7 dBm, about 21 dB above the -67 dBm floor that WLAN surveys hold for a reliable video stream.
  • Floor, antenna inside, door closed: -45.7 - 15 = -60.7 dBm; call it -61 dBm, a 6 dB margin. At the 20 dB end of the wall range it lands at -65.7 dBm, a 1 dB margin.

The result: across the floor, the antenna inside the box leaves 1-6 dB of margin over -67 dBm, and a washdown floor spends that margin in seconds — one oven, one drive start, one wet gasket.

The decision: hold -57 dBm or better at the machine, which is 10 dB over the -67 dBm floor. The antenna outside the wall delivers that at 30 m; the antenna inside the can cannot. Raising the gain inside the can feeds the standing waves more than it feeds the plant.

The fix: a bulkhead antenna outside the box

Put the radiator on the wall, not in the box, and keep the washdown rating intact while you do it.

  • Order the hole with the box. A round, deburred hole in the top wall for an RP-SMA bulkhead jack, or an N-type if the antenna will carry a low-loss lead, placed away from the door fold and the hinge so the gasket path stays continuous. A custom box arrives with the cutout already in; the cutouts, glands and windows guide covers placement and edge finish.
  • Seal with the jack. The jack's own O-ring and sealing washer do the sealing; torque them to the datasheet figure and keep compound out of the threads. The discipline matches any rated penetration, and sealing rated bulkhead penetrations shows the fitting end to end.
  • Keep the inside jumper short. Coax loss climbs with frequency and length, and 2.4 GHz punishes a long thin lead. A jumper under 6 in [150 mm] keeps the feed loss small. The layout rule runs from small radio modules to machine routers — radiator outside, feed short — and the ISM-band external-antenna layout guide walks it step by step.
  • Rate every part in the wall. The assembly rating is the lowest-rated part in it. For a washdown box that means the jack, its gasket and the antenna base each carry IP66 or better, and the antenna is a washdown stainless or sealed-radome type. Our wall-mount boxes are rated NEMA 4X / IP66 by the manufacturer, not UL listed; an accessory boot rated IP54 in the wall turns the whole box into IP54.
  • Aim the whip vertical for coverage across the floor, and mount it where hose spray does not blast the base end-on. The full layout — position, height, keep-outs — is in the router antenna bulkhead layout guide, and planning the RF path for an antenna in a metal enclosure covers the feed side in depth.

The -11 is a poll timeout, not a radio fault

The PLC and the router are joined by cable, so no WiFi fault can touch that transaction. A negative return such as -11 is the client library's own code for 'request sent, no valid response inside the timeout'. A positive code would be a Modbus exception the router composed and sent. -11 comes from the client side, so the session is the suspect.

The every-other-poll rhythm is the classic churn pattern. The client opens and closes a TCP session per transaction; the router keeps a closing socket alive for its cleanup interval, so the next connect lands inside that gap. By the following poll the socket is gone, and the transaction succeeds. On a 10 s poll period that prints success, fail, success, fail for a whole shift.

The fix lives on the client: reuse one TCP session for every poll, or stretch the timeout to at least 3x the worst logged response and stagger the retry. A LAN Modbus exchange on a quiet switch typically answers in tens of milliseconds; log one shift, find the worst, size the timeout from it. The router's connected-client list shows the churn directly: the same PLC listed twice, one session stale.

Stop it coming back

Close the loop with these checks at commissioning:

  • Antenna on the bulkhead, O-ring seated, base and antenna rated IP66.
  • Channel fixed to 1, 6 or 11, chosen from a scan taken during a washdown.
  • RSSI logged at the farthest working position: -57 dBm or stronger, 10 dB over the -67 dBm stream floor.
  • A 1 s ping log from the tablet, clean for a full shift.
  • One TCP session for the Modbus poll, timeout at 3x the worst response, zero -11 codes over a shift.
  • The router fed from its own supply rail, so a pump start cannot brown it out.

Condensation is the slow fault on the same list: it corrodes connectors and boards long before it bothers a radio, and how PCB corrosion starts inside an enclosure covers the drying and coating side.

When to re-specify the box

If the box in service was ordered empty and the antenna hole would be a field job, put it on the drawing instead. A custom stainless box arrives with every cutout placed and is delivered in 10 business days, anywhere in the world. For custom work the count starts at your approval of the drawing.

A router, a compact PLC and their supply land in a box of about 16 x 12 x 8 in outside; the catalog's 16 x 12 x 8 in 316L wall-mount matches that outside size (16 x 12 x 8 in, H x W x D) with a nominal 15.88 x 11.88 x 7.88 in interior from the CAD, leaving room for the bulkhead stud and a short jumper. In a chlorinated or caustic washdown, 316L is the grade. 304 pits under chloride deposits even at room temperature, and about 60 °C (140 °F) is the stress-corrosion threshold for both grades.

If the machine keeps growing radios, settle once what lives on the frame and what lives in the box. Machine-mounted IO vs enclosed remote IO for washdown lays out that split.

Catalog dimensions to compare

Compare these catalog dimensions with your component layout. Open each enclosure for its rating, material and usable space, then check those specifications against your application.

EnclosureMaterialOutside H x W x D / displayRating
16 × 12 × 8 in316L stainless16 x 12 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
16 × 12 × 8 in304 stainless16 x 12 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
10 × 8 × 6 in304 stainless10 x 8 x 6 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
12 × 10 × 6 in304 stainless12 x 10 x 6 inRated NEMA 4X / IP66 by the manufacturer; not UL listed

Questions

How much signal does a stainless enclosure block at 2.4 GHz?

Expect roughly 10-20 dB through a gasketed stainless box with the door closed; 15 dB, the midpoint used in the example, is a factor of about 30 in received power. Continuous sheet metal is a near-perfect shield, so the seams, the door gasket and the cutouts do the leaking, and the loss swings a few dB with door compression and gasket wetness. At 5 GHz the loss runs a few dB higher again, because absorption in the metal and in any water film both rise with frequency.

Will a higher-gain antenna inside the box fix the dropouts?

It recovers less than it promises. Moving from a 2 dBi stick to a 9 dBi antenna adds 7 dB, which lifts the example's -61 dBm to -54 dBm at 30 m — decent margin on paper, but the extra gain also drives the standing waves inside the can harder, so what leaks through the seams gets less predictable. The same 9 dBi antenna on the bulkhead outside buys the same 7 dB with a clean path; that is the version that holds a shift.

Can the Modbus -11 come from the WiFi dropouts?

No, while the PLC talks to the router over the wired LAN: that transaction never touches the radio, so a dropout between tablet and router cannot cause it. The rhythm says the same: a failure on every other transaction at a 10 s poll period is a timeout or socket-cleanup pattern, not a fade. Reuse one TCP session and set the timeout to at least 3x the worst logged response; the -11 codes stop when the churn stops.

Does washdown water or condensation make the RF loss worse?

A few dB, yes. Water absorbs 2.4 GHz energy, so films on the wall and a soaked gasket right after a washdown add loss on top of the 10-20 dB the dry box already costs; treat the minutes after a wash as the worst case when you log RSSI. The durable risk is corrosion, not the radio: condensation after washdown attacks connectors and boards first, and a sealed box that swings hot to cold every shift is the one that fogs.

Checklist before you order

Specify it once, built to your drawing

  • Environment and NEMA type: Type 1, Type 3R, Type 4, Type 4X, Type 6P, Type 12, Type 13 (manufacturer ratings, not UL listed)
  • Material: 304 stainless steel, 316L stainless steel, Powder-coated carbon steel, Aluminum, Polycarbonate, Fiberglass (FRP)
  • Size: inside or outside height, width and depth, with the depth your deepest component needs
  • Cutouts, glands and windows, dimensioned from one datum on each face
  • Mounting and access: wall, pole or stand, hinge side, mounting panel
  • Quantity: from one piece

Delivered in 10 business days, anywhere in the world. Counted from your order; for custom work, from your approval of the drawing.

Build it from 16 × 12 × 8 inRequest a custom quote

Outdoor enclosures: sizes for this job

Keep reading

Related engineering answers

All articles

Buying guides

The guides behind this answer

All guides