coloradocube / balloonsat

COTS balloonsat mission to test the RPi 4 with a battery UPS, a quad camarray, a GPS module, a RockBLOCK module, and a small number of Qwiic sensors
0 stars 5 forks source link

Monitor if RPi is being throttled #47

Open ivogeorg opened 2 years ago

dperry29 commented 2 years ago

Command to check if Rpi is throttled due to low voltage: vcgencmd get_throttled Pi will return: "throttled=0x50005"

Return values from vcgencmd get_throttled

Bit | Hex Value | Meaning -- | -- | -- 0 | 1 | Under-voltage detected 1 | 2 | ARM frequency has been caped 2 | 4 | Currently throttled 3 | 8 | Soft temperature limit is active 16 | 1000 | Under-voltage has occurred 17 | 2000 | ARM frequency capping has occurred 18 | 4000 | Throttling has occurred 19 | 8000 | Soft temperature limit has occurred
ivogeorg commented 2 years ago

Interesting. These commands are polling the Broadcom VideoCore GPU!

ivogeorg commented 2 years ago

Knowledge

  1. https://pypi.org/project/vcgencmd/
  2. https://elinux.org/RPI_vcgencmd_usage
  3. https://en.wikipedia.org/wiki/VideoCore
  4. https://docs.broadcom.com/doc/12358545