Tenemos pasarelas Pi 4 en pequeñas casetas de bombeo, cada una leyendo un caudalímetro y dos transmisores de presión y enviando los datos a Hermetry. Tres de ellas se reinician en momentos aleatorios, quizá una o dos veces por semana, normalmente por la tarde. No hay ningún patrón en los registros, salvo que los mensajes del kernel anteriores al reinicio a veces mencionan subtensión.
Dos preguntas: ¿cómo sabe realmente el Pi que no recibe suficiente energía, si no hay un ADC en la línea de 5 V que yo sepa? Y ¿puedo llevar ese estado a Hermetry para recibir una alarma antes del reinicio, en lugar de enterarme por un hueco en las gráficas?
We have Pi 4 gateways in small pump kiosks, each reading a flow meter and two pressure transmitters and sending to Hermetry. Three of them reboot at random times, maybe once or twice a week, usually in the afternoon. No pattern in the logs except that kernel messages before the reboot sometimes mention undervoltage.
Two questions: how does the Pi actually know it isn’t getting enough power, there’s no ADC on the 5 V rail that I know of? And can I get that state into Hermetry so I get an alarm before the reboot, instead of finding out from a gap in the charts?