sinara-hw / Stabilizer

2-channel microcontroller servo with EEM and Ethernet based on STM32 CPU
Other
22 stars 5 forks source link

PoE turns on and off with Netgear GS308P #23

Closed sbourdeauducq closed 4 years ago

sbourdeauducq commented 5 years ago

When connected to a Netgear GS308P switch, the board is powered for a few seconds, then the Ethernet link establishes, then the switch cuts off power, and the cycle repeats. After a few cycles, sometimes the board stays powered on.

sbourdeauducq commented 5 years ago

Problem is not present on a second board.

gkasprow commented 5 years ago

It may be a result of slightly different capacitance tolerance causing a small difference in startup current

gkasprow commented 5 years ago

Should I buy such a switch and try to solve the issue or we can assume that the user must use 30W power delivery? I don't have any stabilizer board in my lab.

hartytp commented 5 years ago

What should we do about this?

gkasprow commented 5 years ago

I'm not able to recreate the issue right now. All PoE switches I have in my lab work fine.

hartytp commented 5 years ago

Can you think of anything that might have caused this on one of @sbourdeauducq's boards? Or do you think it was a defective board?

@sbourdeauducq can you send Greg the problematic board and switch?

sbourdeauducq commented 5 years ago

I already sent the board back, the switch is in use 24/7.

hartytp commented 5 years ago

Sounds like an isolated incident maybe with one board. Shall we close for now and reopen if we see this again?

sbourdeauducq commented 5 years ago

As Greg explained earlier, it could be that the board is near the maximum for low-power PoE injectors and component tolerances put it on one side or the other of the limit.

hartytp commented 5 years ago

Which component tolerances? What do we want to do about this issue?

sbourdeauducq commented 5 years ago

If the solution is to reduce inrush current, we should fix it.

gkasprow commented 5 years ago

But, the issue appeared once the Ethernet LEDs went on. It means it is not inrushed current of the DC/DC converters but current consumption of the Ethernet chip or something else which triggers the overcurrent protection. I wouldn't do any design changes until we make sure what causes this issue. The Stabilizer has multi-stage power sequencing and the 3V3 wakes up after 5V rail So it looks like the OVC is triggered by +/-12V LDO, because it turns on just after the 3V3 rail. The opamps may consume some excessive current before they reach working voltage. Can you connect the scope to +12V input rail, +3V3, +- 12VA and +5V ? Trigger it on falling +12V and see what rail causes the issue.

hartytp commented 5 years ago

@gkasprow do you have a stabilizer card? If so, this is easy isn't it? Replace L6 with a 0R1/0R01 resistor and look at the voltage across that resistor with a differential probe while you power stabilizer on. That will tell you the current v time profile during startup. If that's marginal according to the PoE specification then we should fix it, if not I think we can assume that there was an issue with the specific board that @sbourdeauducq had.

dtcallcock commented 5 years ago

How important is it that POE is supported by Sinara boards given POE+ kit doesn't seem that hard to come by? For example that GS308P (8 port | 4xPoE 53W) is a $70 switch but the GS108LP (8 port | 8xPoE+ 60W) switch is only $85.

hartytp commented 5 years ago

It's a nice to have, as it saves on the external clutter of having PoE splitters. It's particularly useful for small modules like Thermostat where one might want to get them into a tight space with limited cabling access.

gkasprow commented 5 years ago

The question is about scrapping POE(802.3af) and support only PoE+ (802.3at) switches

dtcallcock commented 5 years ago

This ^

hartytp commented 5 years ago

aah, ok.

While I don't feel too strongly, I'd prefer to keep 802.3af support unless it turns out to be particularly hard to do. The reason being that it's likely that users will get confused about the distinction and use the wrong PoE switch type anyway.

gkasprow commented 5 years ago

The design supports, but @sbourdeauducq found a single case where it doesn't work. So, if we want to support standard PoE, one needs to debug it.

hartytp commented 5 years ago

Replaced L6 with 1R0 to monitor current transients during power on. Powering from external 12V supply via barrel connector.

image

hartytp commented 5 years ago

Peak is 690mA. So only 8W

image

hartytp commented 5 years ago

Longer time scale image

hartytp commented 5 years ago

even longer image

hartytp commented 5 years ago

So, no sign of anything bad there. GS308P is specified for 15.4W per channel and our peak power is just over half that.

image

I'll try again with a PoE switch to be sure.

hartytp commented 5 years ago

Now with a netgear prosafe jgs516pe

image

image

hartytp commented 5 years ago

So, based on that, I think we can rule out inrush currents from being an issue on Stabilizer.

Unless anyone can think of anything else that could be the issue here and ,given that we cannot reproduce this issue and we no longer have access to the board it manifested on, I suggest we close this for now and repoen/debug if it occurs again. Any objections?

hartytp commented 5 years ago

hmm...one possibility here is that the real issue is the reference buffer oscillating on your board (due to the lack of decoupling). That's really marginal and is completely unstable on some boards. That can sink a hell of a lot of current into the decoupling caps.

Anyway, we've done some work on rail stability in general, so maybe that will help...

hartytp commented 5 years ago

Nb if you have cheap Ethernet cables with high resistamce you’ll have issues like this due to loss in the cables during the turn on current spikes

hartytp commented 5 years ago

Okay, closing for now. Let's reopen if anyone is able to reproduce similar symptoms, or if anyone can think of any further tests we should do

sbourdeauducq commented 5 years ago

I am using high-quality short Ethernet cables and I had already tried to replace them, without effect. They also power other devices correctly.

hartytp commented 5 years ago

@sbourdeauducq noted. But, without access to hardware that displays this issue, I don't see any good way of debugging it further. e.g. from the sounds of it, this could have been a QC issue like a short on the PoE module rather than a design fault.

hartytp commented 5 years ago

Note to self, the spec is

image

=

hartytp commented 5 years ago

hmm...it's possible that the issue here is that we're right on the edge of the PoE module's minimum load specification. cf #50. Again, however, hard to tell witout hardware (if we had it, we could add a load resistor to the board and see if that fixed the problem).

hartytp commented 5 years ago

We're nowhere near maximum current. Assume Vi = 37V, efficiency=0.8, Iout_peak=700mA. Peak input current is then 280mA, which is comfortably within spec.

hartytp commented 5 years ago

Anyway, from a design review of the PoE design, the only potential issues I can see are the min load and the missing ESD diode. Other pairs of eyes always welcome!

sbourdeauducq commented 5 years ago

@gkasprow I can send the switch now. Technosystem have the problematic board already.

gkasprow commented 5 years ago

OK, let's sort this out before next revision

gkasprow commented 4 years ago

I got the board. I also have a switch but it works. The switch is, however, AF/AT. I ordered Netgear GS308P, the same @sbourdeauducq has. It is AF only.

hartytp commented 4 years ago

I can reproduce this on a thermostat board. Interestingly, the first time I plugged it into PoE I got a green light on my switch. After that, each time I plugged it in, I get an error light and the power cycles on/off. Powering from a barrel connector it seems fine (5V, 3V3 and 3V3A all have the correct voltage).

@gkasprow what measurements should I take on this thermostat board to help narrow down the issue?

hartytp commented 4 years ago

@gkasprow on this Thermostat, the PoE switch error LED blinks on/off for a while before eventually giving me a green LED. Someone (you??) kindly soldered antennae to the PoE rectifier diodes to make them easy to probe. Screen shots below

hartytp commented 4 years ago

PoE + and PoE - (all using 10x DC-coupled probes)

image

Same but zoomed in time scale

image

hartytp commented 4 years ago

Same but channel 2 now looking at the +12V output of the PoE module:

image

image

image

In the last shot you can see the power come on and stay on

gkasprow commented 4 years ago

I think we have to look at the current. For such measurements, I use battery-powered scope

hartytp commented 4 years ago

hmm...I think some of the photos above look odd because the scope probe came disconnected and so was basically AC coupled. I've got better photos I'll post later.

I think we have to look at the current. For such measurements, I use battery-powered scope

That was my thought too. But, it's not totally straightforward since there is no easy place to probe (will probably have to life a rectifier diode and solder a sense resistor between the diode and its pad) and I'll be measuring a small signal on a large offset. I'll try that, but won't be for a couple of days.

What I may have time for later this eve would be to try adding a load resistor to the 12V output. That could tell us if it's the switch being fussy over minimum loads.

gkasprow commented 4 years ago

I will play with it once I get a switch with 15W power delivery. All the switches I own are 30W ones

hartytp commented 4 years ago

Cutting the PoE+ trace and adding a 100Ohm sense resistor seems to "fix" the issue. No idea why yet. Vsense=1.5V, so input current is 15mA or approx 75mW.

hartytp commented 4 years ago

So, it sounds like this may just be a surge current issue. I bet that if I was using a long/cheap ethernet cable I wouldn't be able to reproduce this. The EMI filter in the next revision will almost certainly do the job.

I'll try a 10Ohm sense resistor and see if I can still reproduce the issue. But, it may be that any resistor large enough to give me a sensible reading is also large enough to stop the PSU from tripping...

hartytp commented 4 years ago

Still boots reliably with 10Ohm

hartytp commented 4 years ago

Probing across my sense resistor, I can't see any transients. So, maybe there is some funny instability that only occurs when the input resistance to the PoE module is too low.

FWIW adding a 150R load resistor to the 12V output didn't help, suggesting that it really is an issue with the input, not a violation of the minimum current.

Putting a 0R resistor back in and the problem promptly returns.

A longer ethernet cable didn't fix the problem.

hartytp commented 4 years ago

NB the resistor I added was between the PoE module pin 1 and the diodes.

@gkasprow I wasn't able to find a sense resistor largel enough to give me a current signal I could measure easily, which didn't make the issue go away...

What do you think about all of this? Any more measurements we should take? Or, shall we just hope that the EMI filter resolves the issue, but leave pads for some small damping resistors between the module and the diodes just in case.

The only issue is if we want to draw close to max power: 25W at 50V is 0.5A, so even 1Ohm would be 0.5W! Let's just hope the EMI filter fixes the issue!