The camera does not care that it is dark. Something on the switch decided the port was no longer worth feeding, and that decision happened within about a second of the IR array coming on. In almost every call-out, the camera was fine and the switch was fine. The number behind the port was wrong, and it had been wrong since the day the rack was dressed.
"It fails at night" is not a diagnosis. It is a timestamp, and the timestamp narrows the suspect list to four things. Three live in the switch or the cable. Only one lives in the camera, and it is the least likely of the four.
The Five-Watt Step Nobody Puts in the Spreadsheet
A 4 MP IR bullet on my bench draws 4.2 W at 48 V in daylight. Same camera, same port, lights off: 9.4 W. That is a 5.2 W step, and at 48 V it means the port current goes from about 88 mA to about 196 mA. The current more than doubles in roughly one second.
Where the watts go is not mysterious. The IR-cut filter swings out of the optical path on a small solenoid, then the LED driver ramps a constant-current source into six or eight 850 nm emitters. That array is the 4 to 7 W of the step.
The step is not gradual, so it never shows up in an average. Clamp a meter at 10 a.m., read 4.2 W, and you will size the site on 4.2 W. The nameplate says "≤ 12 W" — worst case at 25 °C, array at full drive, pan motor running — printed in 6 pt type and nobody believes it. Both numbers are true. Neither is the design number. The design number is what the port sees at 17:52 in December.
That is why the phone rings in December. The step is the same 5 W in June, but in June it lands at 19:40 with the rack cool. Here in Shenzhen the sun is down by about 17:40 in early December, the photocell crosses its threshold twenty minutes later, and the switch takes the step while the cabinet is still warm. Same load, worse moment. I have watched a site run clean for eleven months and fall over in the first week of December. The installer was not wrong for eleven months. He was wrong for the one hour that mattered.
Four Ceilings, Four Fingerprints
A PoE port is not a pipe with one diameter. Four independent limits sit in series between the PSU and the camera's DC jack, and the dusk step crosses whichever one is lowest. They fail differently, which is the useful part: the failure signature tells you which ceiling you hit before you touch a screwdriver.
| Ceiling | What the step pushes past | What you see on site | How to confirm |
|---|---|---|---|
| Port class current | 350 mA (af) or 600 mA (at), enforced in tens of milliseconds | Dead from dusk to dawn, healthy all day; fault follows the port | Read the negotiated class, not the box label |
| PSE bank or total budget | The sum of all ports crossing the group allocation at the same minute | Always the same ports — usually the highest numbers; or the whole group flaps together | Sum night wattage against usable budget, then check bank split |
| End-of-run voltage | The PD input falling under 42.5 V (Type 2) or 37 V (Type 1) as current rises | Only the farthest camera, only at night; survives on a short patch cord | Force IR at noon on the installed run, then on a 2 m cord |
| Camera's own converter | The internal DC/DC or the LED driver running out of headroom or heat tolerance | Reboots 2 to 20 minutes after IR on, not at the instant of the step | Reproduces on a 2 m cord at noon; camera is genuinely guilty |
1. The port ceiling: 350 mA is a wall
802.3af gives the port 15.4 W, which is 350 mA at 44 V. Those two numbers are the same statement. The PSE enforces the current, because current heats the MOSFET and the sense resistor, and it does so in tens of milliseconds. I have scoped the cut at 50 to 75 ms on my bench controllers.
Now put a PTZ on an af port. Nameplate 22 W with IR and the pan motor, which at 44 V wants 500 mA. The comparator sees 500 mA against a 350 mA limit and cuts. The PTZ reboots, parks, IR goes off, it draws 5 W, the port comes back, the camera boots for forty seconds, IR comes on, the port cuts. All night. The picture never comes back long enough to see, and the NVR fills with thirty-second video-loss events.
This is where "30 W per port" on the box misleads people. It means the port can negotiate at. It does not mean a device that asks for af will be given at. A cheap PTZ that classifies as Class 3 gets 15.4 W allocated and then tries to draw 22 W. The port is not being generous; it is being compliant. The port class line on the datasheet is the one to read before you assume a port has room.
2. The bank ceiling: why it is always ports 7 and 8
Small switches do not have one budget. They have a budget per PSE group, commonly eight ports, and the group total is what the controller polices. An eight-port box with a 60 W sticker is usually one group of eight sharing 60 W.
Run the numbers on a closet I opened in November. Eight IR bullets, nameplate 12 W, measured 4.4 W at midday. Total at noon: 35 W against a 60 W budget, which is why two installers signed it off. At dusk: 8 × 9.6 = 77 W. Six ports at 9.6 W is 57.6 W; the seventh takes the bank to 67.2 W and the controller sheds. That is why the complaint is never "all the cameras" but "the two on the end". When the controller retries the shed port every thirty seconds, you get the flap instead of the clean dark.
The arithmetic is the same one in the power budget arithmetic, with one substitution: use the night figure, and use usable PoE watts rather than the adapter's input rating. A "120 W" adapter at 88% efficiency with 8 W of housekeeping does not put 120 W on the ports.
3. The voltage ceiling: only the farthest camera
A Type 2 (802.3at) PD needs 42.5 V at its jack to keep operating. A Type 1 (802.3af) PD only needs 37 V. The newer, more capable camera is 5.5 V more fragile at dusk than the old one, because its threshold is higher. I have seen a site where the 2019 af domes rode out the evening fine and the two new PoE+ bullets on the same closet dropped every night, and the client had already decided the new cameras were defective.
Do the sum on the worst run I measured this year. 118 m of 26 AWG copper-clad aluminium, about 21 Ω per 100 m once you allow for the aluminium core, so roughly 25 Ω, and 28 Ω at 50 °C in the conduit. Day current 0.09 A drops 2.5 V, invisible. Night current on a 20 W unit is 0.42 A, which drops 11.8 V. Off a 50 V port the camera sees 38.2 V, under 42.5 V, so the PD drops out, the load disappears, the voltage recovers, the PD restarts, and the cycle begins. The camera is being starved by 4 V nobody budgeted.
4. The camera ceiling, which is real but rare
Sometimes the camera is at fault: the internal DC/DC runs out of input range, or the LED driver's bulk capacitor has aged and the step collapses the rail inside the housing. The tell is timing. An internal supply problem shows up two to twenty minutes after the IR comes on, as the driver heats, not in the same second. It also reproduces on a two-metre patch cord.
The Camera Is Usually Innocent
I got this wrong once, in a way that cost a client three weeks. Twelve cameras at a logistics yard, dropping between 18:00 and 19:00, back by 07:00. I measured port voltage at noon, saw 51 V on every port, and told them to RMA the cameras. Two came back marked "no fault found". They had already replaced the third, and the replacement behaved identically.
The cause was two things stacked: a 60 W budget serving eight IR bullets, and two runs of 26 AWG CCA at just over 110 m. Neither is visible at noon. Both are obvious at 196 mA. I had measured the one condition that could not fail.
What I do now, before blaming a camera: put it on a two-metre cord on the same port, at noon, with the IR forced on. If it survives that, the camera is not the problem, and no amount of RMA paperwork will fix the site.
Force the IR On at Noon: Seven Steps
If the drop is not happening right now, the job is to reproduce it in daylight. All of this fits into one visit with a laptop and the NVR log page. If the camera is not powering at all rather than cycling, start with the nine-step camera power-up checklist instead.
- Get the timestamps. Open the NVR's own log page, not the phone app, and export five days of video-loss events. You want the first loss of each evening, to the minute.
- Subtract local sunset. A first loss 10 to 30 minutes after sunset is the photocell and the IR array. A loss at the same clock time in June and December is a schedule, a heater, or a firmware reboot, and this article does not apply.
- Swap two cameras for one night. Fault stays with the port: the problem is upstream. Fault follows the camera: the camera or its pigtail is suspect.
- Force the IR on at noon. In the camera's web interface, set Day/Night to B&W or IR ON. Watch the port for three minutes. If it drops at noon, the night was never relevant.
- Repeat on a two-metre patch cord at the switch. Survives the short cord but dies on the installed run: voltage ceiling. Dies on both: camera or port class.
- Read the switch, not the label. A managed box gives you negotiated class, allocated watts, delivered watts and the last overload event. An unmanaged box gives you a blinking LED and my sympathy.
- Add up the night load. Nameplate maximum × port count, against usable PoE watts at the cabinet's summer temperature. Within 15% of the budget means no margin for the step, and you will be back next December.
What I Would Change Before Next December
Fixes are ordered by cost. In the twelve-camera yard, the first two would have solved it without buying anything.
- Turn the IR down. Most bullets have an auto/smart/low setting. Low drive cuts the array from about 6 W to about 3.5 W and costs nothing but a little range. On a camera aimed at a wall six metres away, full drive was doing nothing.
- Move the heavy loads off the same bank. Keep each bank's night total under 80% of its allocation. Ten minutes at the patch panel.
- Fix the worst run, not all of them. Re-terminate, reroute, or replace the CCA section. At 118 m the arithmetic leaves no choice; at 60 m proper termination usually recovers 3 V.
- Move the power boundary closer. A powered extender closer to the camera shortens the high-current segment, which is the part that drops the volts. It adds no budget at the switch, so it will not help a bank ceiling.
- Only then replace the switch, and buy on usable PoE watts at 45 °C with the bank split written down.
- Do not add a watchdog. It will reboot the port all night, log a clean recovery every time, and bury the cause. Useful for a hung encoder. Actively harmful here.
Questions I Get on Site
Why does it only happen at night and not on a dark cloudy afternoon?
Because the photocell has hysteresis and a debounce, and it measures illuminance, not your schedule. A heavy storm can trigger it at 14:00, which is a free test: if the cameras drop in a downpour, you have your answer.
Can I just move it to a 30 W port and be done?
Only if the port actually negotiates at and the device classifies as Class 4. Check the negotiated class in the switch's PoE table. A port labelled 30 W that classifies the camera as Class 3 still allocates 15.4 W, and you have moved the cable without moving the ceiling.
The camera comes back on its own at dawn. Is that safe to leave?
No. You are hot-plugging a PoE port every night, sometimes every thirty seconds, and each cycle restarts the detection handshake. That is wear on the port MOSFET and on the camera's input capacitors, and you are losing eight to fourteen hours of recording a day in the meantime.
Will an inline PoE injector fix it?
It fixes exactly one of the four ceilings. An injector is a second PSE with its own budget, so it solves a port-class or bank-budget problem. It does nothing for a long CCA run, because the current still travels the same copper, and nothing for a camera whose own supply is failing.
My switch says 120 W. Why does it trip at 70?
Two reasons. The 120 W is often the adapter's input rating, so usable PoE output is lower after conversion losses. And many small boxes split ports into groups with a shared allocation, so the group limit binds before the total.
If you are chasing one of these right now, two numbers are worth writing down before you touch anything: the negotiated class on the port, and the current at 20:00. Those separate three of the four ceilings on their own. The rest of the field notes in this column go deeper on the budget arithmetic, the cable side and the port-level failures. I am always interested in the cases where the fingerprint matches none of the four, because those are the ones that teach me something.