Yapay zekâ tarafından English dilinden çevrildi ·
Aisha haklı, ben de üretim katında Pi ağ geçitleri çalıştırmaktan birkaç şey eklemek istiyorum.
802.3af/at yazan ve anahtarın (switch) müzakere etmesine izin veren bir splitter alın, asla pasif enjektör kullanmayın. Kablo hattını kontrol edin: uzun ve ince yama kabloları yeterince gerilim düşürür ve Pi kısılır. Bunu Pi’nin kendisinden görebilirsiniz:
$ vcgencmd get_throttled
throttled=0x50005 # bit 0 = under-voltage now, bit 16 = has happened since boot
Bu değeri probe okumalarıyla birlikte Hermetry’ye gönderirim. Ağ geçidi kendi telemetrisini v1/telemetry üzerinden normal bir cihaz olarak raporlayabilir, probeler ise alt öğeler olarak v1/gw/telemetry üzerinde gider. Ardından ağ geçidinin profilinde pi.undervolt == 1 için bir alarm kuralı, SD kart bozulmadan önce besleme kaynağının sınırda olduğunu gösterir.
Ağ geçidi çevrimdışı olduğunda her alt öğenin de onunla birlikte çevrimdışı olduğunu unutmayın. Bu yüzden asıl önemli olan ağ geçidinin çevrimdışı alarmıdır; alt öğelerin çevrimdışı alarmları, gecikmeleri daha uzun değilse yine tetiklenir. Biz ağ geçidi için 300 s, alt öğeler için 900 s kullanıyoruz. Alt öğe davranışı burada anlatılıyor: Ağ geçitleri ve ağ geçidinin arkasındaki cihazlar.
Zaten kullanacağınız SQLite tamponunu da tutun; bir firmware güncellemesi sırasında PoE anahtarının yeniden başlaması 2 dakikalık bir kesintidir.
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.

