Traducido del English por IA ·
Aisha tiene razón, y añadiría algunas cosas de haber usado pasarelas Pi en una planta de producción.
Compre un splitter que indique 802.3af/at y que deje que el switch negocie, nunca un inyector pasivo. Revise el tramo de cable: los latiguillos largos y finos pierden suficiente tensión como para que la Pi se limite. Puede verlo en la propia Pi:
$ vcgencmd get_throttled
throttled=0x50005 # bit 0 = under-voltage now, bit 16 = has happened since boot
Yo enviaría ese valor a Hermetry junto con las lecturas de las sondas. La pasarela puede informar su propia telemetría en v1/telemetry como un dispositivo normal, mientras que las sondas van en v1/gw/telemetry como hijos. Entonces, una regla de alarma en el perfil de la pasarela para pi.undervolt == 1 le indica que la alimentación está al límite antes de que la tarjeta SD se corrompa.
Tenga en cuenta que, cuando la pasarela se desconecta, todos sus hijos se desconectan con ella. Por eso la alarma de pasarela fuera de línea es la que importa, y las alarmas de fuera de línea de los hijos también se activarán a menos que su retardo sea mayor. Nosotros configuramos la pasarela en 300 s y los hijos en 900 s. El comportamiento de los hijos se describe aquí: Pasarelas y dispositivos detrás de una pasarela.
Mantenga también el búfer SQLite que usaría de todos modos: un reinicio del switch PoE durante una actualización de firmware supone una interrupción de 2 minutos.
Aisha’s right, and I’d add a few things from running Pi gateways on a production floor.
Buy a splitter that says 802.3af/at on it and lets the switch negotiate, never a passive injector. Check the cable run, long thin patch leads drop enough voltage that the Pi throttles. You can see that from the Pi itself:
$ vcgencmd get_throttled
throttled=0x50005 # bit 0 = under-voltage now, bit 16 = has happened since boot
I’d send that value to Hermetry with the probe readings. The gateway can report its own telemetry on v1/telemetry as a normal device, while the probes go on v1/gw/telemetry as children. Then an alarm rule on the gateway’s profile for pi.undervolt == 1 tells you the supply is marginal before the SD card gets corrupted.
Remember that when the gateway goes offline, every child goes offline with it. So the gateway’s offline alarm is the one that matters, and the children’s offline alarms will all fire too unless their delay is longer. We put the gateway on 300 s and the children on 900 s. The child behaviour is described here: Gateways and devices behind a gateway.
And keep the SQLite buffer you’d use anyway, a PoE switch reboot during a firmware update is a 2-minute outage.

