ON THIS PAGE

  • SystemInformationRVC4
  • Example
  • Reference

SystemInformationRVC4

SystemInformationRVC4 extends SystemInformation with telemetry that is specific to OAK devices based on the RVC4 platform. The SystemLogger node publishes it when an application runs on RVC4 hardware, exposing CPU averages, process-level CPU and memory usage, and expanded temperature sensors for the RVC4 subsystems.Use the message exactly like SystemInformation: subscribe to SystemLogger.out, or forward the data through a MessageGroup to the host. At runtime you can inspect fields such as chipTemperature, ddrMemoryUsage, cpuAvgUsage, and the process-level usage fields to monitor device health.

Example

Python
1import depthai as dai
2
3
4def printSystemInformationRVC4(info: dai.SystemInformationRVC4):
5    m = 1024 * 1024  # MiB
6    print(f"Ddr used / total - {info.ddrMemoryUsage.used / m:.2f} / {info.ddrMemoryUsage.total / m:.2f} MiB")
7    print(f"Average Cpu usage: {info.cpuAvgUsage.average * 100:.2f}%")
8    print(f"Device process usage - Memory: {info.processMemoryUsage / 1024:.2f} MiB, Cpu: {info.processCpuAvgUsage.average * 100:.2f}%")
9
10    t = info.chipTemperature
11    print(f"Chip temperature - average: {t.average:.2f}, cpuss: {t.cpuss:.2f}, gpuss: {t.gpuss:.2f}, mdmss: {t.mdmss:.2f}, video: {t.video:.2f}, ddr: {t.ddr:.2f}, camera: {t.camera:.2f}")
12    print("----------------------------------------")
13
14
15pipeline = dai.Pipeline()
16sysLog = pipeline.create(dai.node.SystemLogger)
17sysLog.setRate(1)
18sysLogQueue = sysLog.out.createOutputQueue(maxSize=4, blocking=False)
19
20pipeline.start()
21while pipeline.isRunning():
22    sysInfo = sysLogQueue.get()
23    printSystemInformationRVC4(sysInfo)

Reference

class

dai::SystemInformationRVC4

#include SystemInformationRVC4.hpp
variable
MemoryInfo ddrMemoryUsage
variable
int64_t processMemoryUsage
variable
CpuUsage cpuAvgUsage
variable
CpuUsage processCpuAvgUsage
variable
std::vector< CpuUsage > cpuUsages
variable
ChipTemperatureRVC4 chipTemperature
function
SystemInformationRVC4()
Construct SystemInformation message.
function
~SystemInformationRVC4()
function
void serialize(std::vector< std::uint8_t > & metadata, DatatypeEnum & datatype)
inline function
DatatypeEnum getDatatype()
function
DEPTHAI_SERIALIZE(SystemInformationRVC4, ddrMemoryUsage, processMemoryUsage, cpuAvgUsage, processCpuAvgUsage, cpuUsages, chipTemperature)

Need assistance?

Head over to Discussion Forum for technical support or any other questions you might have.