Traduit de English par IA ·
Aisha a raison, et j’ajouterais quelques éléments issus de l’exploitation de passerelles Pi sur un atelier de production.
Achetez un splitter indiquant 802.3af/at et laissant le switch négocier, jamais un injecteur passif. Vérifiez la longueur du câblage : les longs cordons de brassage fins font chuter suffisamment la tension pour que le Pi throttle. Vous pouvez le voir directement sur le Pi :
$ vcgencmd get_throttled
throttled=0x50005 # bit 0 = under-voltage now, bit 16 = has happened since boot
J’enverrais cette valeur à Hermetry avec les relevés des sondes. La passerelle peut remonter sa propre télémétrie sur v1/telemetry comme un appareil normal, tandis que les sondes passent sur v1/gw/telemetry en tant qu’enfants. Une règle d’alarme sur le profil de la passerelle pour pi.undervolt == 1 vous indique alors que l’alimentation est limite avant que la carte SD ne soit corrompue.
Gardez à l’esprit que lorsque la passerelle passe hors ligne, tous ses enfants passent hors ligne avec elle. L’alarme de passerelle hors ligne est donc celle qui compte, et les alarmes hors ligne des enfants se déclencheront aussi, sauf si leur délai est plus long. Nous avons réglé la passerelle à 300 s et les enfants à 900 s. Le comportement des enfants est décrit ici : Passerelles et appareils derrière une passerelle.
Conservez aussi le tampon SQLite que vous utiliseriez de toute façon : un redémarrage du switch PoE pendant une mise à jour du firmware provoque une interruption de 2 minutes.
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.

