Schlagwort: PoE

  • Anatomy of a product quality issue: PoE HAT

    Anatomy of a product quality issue: PoE HAT

    Reading Time: 5 minutes

    One of the neat new features of the Raspberry Pi 3 Model B+ is its support for IEEE 802.3af Power-over-Ethernet (PoE). This standard allows up to 13W of power to be delivered over the twisted pairs in an Ethernet cable without interfering with the transmission of data. The Raspberry Pi board itself provides a PoE-capable Ethernet jack and circuit protection components; the power regulation electronics, which would be too costly and bulky to include on the main board, live on a separate HAT.

    Raspberry Pi PoE HAT Power over ethernet

    The Raspberry Pi 3B+ wearing a PoE HAT

    When we announced the 3B+, we revealed that an official Raspberry Pi PoE HAT was in the works and, after a few unforeseen production delays, we we released this HAT at the end of August. Feedback was, and remains, generally very positive; but fairly quickly, we started to see some reports from users who were experiencing issues.

    The problem

    The problem they reported was this: when powering certain Raspberry Pi units via the PoE HAT, it was not possible to draw the full rated current from the USB ports.

    Our 5V USB output, denoted VBUS, is fed by the main 5V rail via a current-limiting switch. This switch is designed to protect the system by detecting short-circuit, over-current, or reverse-voltage events, and disconnecting the USB ports in response. Our current-limiting switch is set to a limit of just over 1A.

    Despite the PoE HAT’s ability to supply up to 2.5A, the experiments we ran in response to the reports suggested that, when it was used to supply some boards, the USB supply would trip out at a much lower current. Mice and keyboards worked fine, but higher-current devices such as wireless dongles and hard disks would fail.

    Our initial theory was that the PoE HAT was injecting noise into the Pi via the 5V rail, and that this was somehow upsetting the switch. However, we were able to rule this out, since we found no evidence of high-frequency noise at the input to the switch. Another theory was that the flyback transformer’s close physical proximity to the switch was somehow coupling noise in. But we were able to rule this out as well: we showed that the behaviour persisted when the HAT was connected using a right-angle header, which moves the power electronics away from the Raspberry Pi.

    What was happening?

    The PoE HAT works by converting the incoming 48V from the Ethernet lines to 5V using a flyback transformer. In simple terms, the primary side of the transformer is switched across the 48V, and energy is stored in the transformer in the form of a magnetic field. The primary is then disconnected and the magnetic field collapses. This changing magnetic field induces a voltage (scaled based on the transformer turns ratio) in the secondary, which is rectified by a schottky diode and output capacitance. This output capacitance is formed from the output capacitors on the PoE HAT itself, the capacitors on the Raspberry Pi 5V rail, and, when the switch is on, the VBUS reservoir capacitors.

    The switching frequency of the flyback transformer is relatively low (~100 kHz). This means that when the system is under load, each switching cycle must transfer a relatively large amount of energy. During each cycle, the 5V rail is discharged according to the load on the system, and charged up again by the flyback’s secondary, dumping more energy into the caps. In each cycle, a spike of high current is pushed through the output diode into the capacitors.

    To cut a long story short, putting a current probe on the input to switch showed large current spikes, as energy from the flyback made its way into the VBUS reservoir capacitors. This was expected. However, it turned out that the switch was erroneously registering these spikes as true over-current events. The switch is supposed to have a filter that allows it to ignore brief spikes, but we discovered that only one of the two approved versions of the switch did this correctly.

    Current into switch (yellow) and VBUS voltage (blue)

    If it’s not been tested, it’s broken

    It’s a truism that if you don’t test an aspect of a design, it will certainly be broken. Those of us with a Broadcom background sometimes refer to this as Alan Morgan’s rule, after its most enthusiastic proponent.

    Extensive testing over all configurations, operating parameters, and use cases is the only way to minimise the likelihood of releasing a product with a hardware issue. Even relatively simple hardware can end up catching you out by throwing up some unexpected bug or issue. And even the big guys with huge development teams and test labs occasionally mess things up — anyone remember the Pentium FDIV bug?

    We made several mistakes with the first version of the PoE HAT:

    • USB load testing was performed using boards that had the working switch
    • Our field testing programme was abbreviated because the product was late
    • We didn’t inquire as to whether our field testers were using high-current peripherals (they weren’t)

    It’s embarrassing to have released a product with a bug like this, but it’s a lesson well-learned, and we will be improving our internal processes to prevent a recurrence.

    The solution

    Fortunately, this bug turned out to be easy to fix. We designed an L-C filter to apply further smoothing to the output current from the HAT. The filter consists of a little extra input and output capacitance and a 4.7µH inductor (chosen to have a suitable current rating and DC resistance), as well as 330mR resistor in parallel to provide damping. We were even able to wrap the mod up in a little mezzanine PCB that fits neatly underneath the board.

    The original, un-modded board

    Hand-modded board with L-C filter

    Final board with mezzanine

    Once we had confirmed that there was a problem with the PoE HAT, we took the product off sale, and recalled and reworked the outstanding units. We are now happy to announce that most Approved Resellers should now have the revised boards in stock. We believe that most people who have been affected by this issue have already returned their PoE HATs for a refund; if you’re experiencing issues and haven’t yet returned your product, you can get in touch with your reseller to arrange a replacement.

    I’d like to thank the members of the Raspberry Pi engineering team, our contract manufacturing partners Taijie, our licensee partners and Approved Resellers, and also the community members who kindly tested prototypes of the fixed board design. This hasn’t been the easiest product launch in our history, but hopefully the lessons learned have set us up well for the future.

    Website: LINK

  • Introducing the PoE HAT – available now!

    Introducing the PoE HAT – available now!

    Reading Time: 3 minutes

    In March 2018 we announced the launch of Raspberry Pi 3 Model B+. One of the many features added to the new board was the ability to be powered through Power over Ethernet (PoE) with a HAT. We are really pleased to announce that the PoE HAT is on sale from today.

    Raspberry Pi PoE HAT Power over ethernet

    The HAT connects to the Raspberry Pi 3+’ 0.1” headers; the 40-way GPIO; and the new 4-pin header near the USB connectors, which allows you to power the system using your Ethernet cable.

    Power over Ethernet

    Power over Ethernet is a widely adopted standard that places power on the Ethernet cable along with the data. It has no effect on the data, so you won’t lose bandwidth by using PoE. There are various standards of PoE; this HAT uses the most common standard 802.3af, which allows delivery of up to 15W. This means that the HAT is capable of providing all the power needed for running your Raspberry Pi. You will need power sourcing equipment to power your Pi. This is either provided by your network switch or with power injectors on an Ethernet cable.

    Raspberry Pi PoE HAT Power over ethernet

    Using the PoE HAT

    The HAT is a compact, single-sided board that sits within the footprint of the Raspberry Pi. It will fit comfortably inside an official Raspberry Pi case. A small (25mm) fan is pre-installed on the board. We see the product as a useful component for people building systems that may be in tougher environments, so the addition of the fan helps with cooling. The fan is controlled over I2C via a small ATMEL processor which allows for it to be temperature-controlled: when your Raspberry Pi processor hits certain temperatures, the fan will be turned on to cool it down. To enable this you will need to get the latest firmware (sudo rpi-update).

    Raspberry Pi PoE HAT Power over ethernet

    Because the fan is controlled over I2C, none of the GPIO are used, so you can stack a second HAT on top of the connector. To do this you will need to buy some longer pass-through headers that expose the pins on the other side of the PoE HAT. You will need one for the 40-way and one for the 4-way connector that has the PoE splitters on it.

    We’ve tested a variety of pass-through headers and can recommend the 2×20 pin header from Pimoroni and the 4-way risers from RS and element14.

    Getting mains power to remote areas of buildings is often tricky. PoE support enables this with just an Ethernet cable, allowing you to provide power (and data) to your Pi wherever it is located. With the improved network booting you can now dispense with not only the power supply but also the SD Card, making deployment even cheaper for a Raspberry Pi based system in your factory or workplace.

    Get ahead, get a HAT

    We are very excited to see what new projects this enables for you. The Raspberry Pi Power over Ethernet HAT is available for sale now at $20, from Farnell, RS and The Approved Reseller Network.

    Edit: I just saw this online and thought it was cool – Alex

    Chris Burton on Twitter

    Official @Raspberry_Pi PoE HAT powering the #ClusterHAT. With “temp_soft_limit=70” set, running #dnetc on all Pi Zeros and 4 cores of the #3Bplus looks to max out at 68.8C with no throttling 🙂

    Website: LINK