PoE para una pasarela Pi 3B en el cobertizo de campo, que no tiene conector PoE
Traducido del English por IA ·
Es el mismo proyecto de parcela de campo. El nodo ya informa bien, y queremos añadir una pasarela adecuada en el cobertizo: una Pi 3B (no B+, que es la que tenemos) que lee 6 sondas de suelo Modbus a través de un HAT RS-485 y las envía a Hermetry como hijos. Hay un cable Ethernet desde el edificio de la granja con un switch PoE en el otro extremo, pero no hay enchufe de red en el cobertizo.El HAT PoE oficial dice que solo es compatible con la 3B+ y la 4, la 3B no tiene conector PoE de 4 pines. ¿Hay una forma sensata de alimentar una 3B mediante PoE, o debería simplemente pedir una 3B+?
Same field plot project. The node now reports fine, and we want to add a proper gateway in the shed: a Pi 3B (not B+, that’s what we have) reading 6 Modbus soil probes over an RS-485 HAT and sending them to Hermetry as children. There’s an Ethernet cable from the farm building with a PoE switch at the other end, but no mains socket in the shed.
The official PoE HAT says it fits the 3B+ and 4 only, the 3B has no 4-pin PoE header. Is there a sensible way to power a 3B from PoE, or should I just beg for a 3B+?
Traducido del English por IA ·
Un splitter 802.3af con salida micro-USB de 5 V funciona en una 3B, yo tengo uno en mi invernadero. Consigue uno de 2,4 A, los de 1 A se caen de tensión cuando el HAT RS-485 y el Wi-Fi están ocupados a la vez.
An 802.3af splitter with a micro-USB 5 V output works on a 3B, I run one in my greenhouse. Get one rated 2.4 A, the 1 A ones brown out when the RS-485 HAT and Wi-Fi are both busy.
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.
Traducido del English por IA ·
Pedí un splitter af de 2,4 A y lleva funcionando 9 días. Throttled estaba en 0x50005 el primer día con un cable de parcheo plano de 15 m; lo cambié por Cat6 adecuado y desde entonces está en 0x0. Añadí la clave undervolt y los retardos de gateway/children offline como indicaste.
Ordered a 2.4 A af splitter and it’s been up 9 days. Throttled was 0x50005 on the first day with a 15 m flat patch cable, swapped it for proper Cat6 and it’s 0x0 since. Added the undervolt key and the gateway/children offline delays like you said.
- Debes estar registrado para responder a este debate.
Únete a la conversación
Inicia sesión para preguntar y responder, dar me gusta a las publicaciones útiles y marcar la respuesta que resolvió tu problema. Cada aportación suma puntos y niveles.

