Jetson AGX Xavier NX Series
The Jetson AGX Xavier series modules have two 3-channel INA3221 power monitors at I2C addresses 0x40 and 0x41. The sysfs nodes to read for rail names, voltage, current, power, and instantaneous and average current limit are at:
In JetPack4.6 The power consumption can be measured throught the readout value in /sys/bus/i2c/drivers/ina3221x/1-0040/iio:device0. (Reference Link)
Examples
•To read INA3221 at 0x40, the channel-1 rail name, enter the command:
$ cat /sys/bus/i2c/drivers/ina3221x/1-0040/iio:device0/rail_name_1
•To read channel-1 voltage, current, and power, enter the commands:
$ cat /sys/bus/i2c/drivers/ina3221x/1-0040/iio:device0/in_current1_input
$ cat /sys/bus/i2c/drivers/ina3221x/1-0040/iio:device0/in_voltage1_input
$ cat /sys/bus/i2c/drivers/ina3221x/1-0040/iio:device0/in_power1_input
•To read the channel‑1 instantaneous current limit, enter the command:
$ cat /sys/bus/i2c/drivers/ina3221x/1-0040/iio:device0/crit_current_limit_0
But Now in New JetPack 5.0, this directory doesnot exist any more.
How could I measure power consumption through the command line or C program?