Using SmartPower Robustly

Moderators: mdrjr, odroid

Using SmartPower Robustly

Unread postby sl_matrix » Wed Nov 01, 2017 11:52 am

I need to measure system power fluctuations when the Exynos5422 is under different loads.
I will be running PARSEC, with multiple different configurations. Hence, manually using the GUI of SmartPower to record power usage is difficult due to ridiculous time and attention demands.

Therefore, I need something of the sort below (pseudo-code):
1 > call function to begin power record
2 > execute program
3 > call function to end power record
4 > print power usage (b/w lines 3 and 2)

Since a GUI essentially uses similar logic, there must be a way to write code to automate the process and trigger the logs in the XU4. Any help is much appreciated.


P.S.
The SmartPower is the only viable method to measure whole system power consumption (that I know of) in the XU4. Unlike the XU3, there is no integrated power monitor (and certainly no ability to check individual core power utilization).

Currently, I would need to hookup a USB cord to another station and fire up the binary provided here. (The instructions for building on Linux Kernel seem to missing a few steps). The binary is yet to work due to the libqwt.so.6 issue, but that is a separate, irrelevant problem.
sl_matrix
 
Posts: 4
Joined: Sun Oct 15, 2017 12:31 pm
languages_spoken: english
ODROIDs: XU4
ubuntu MATE 16.04 LTS [4.9]

Re: Using SmartPower Robustly

Unread postby odroid » Wed Nov 01, 2017 12:07 pm

Consider adding a couple of command in the Telnet communication code.
https://wiki.odroid.com/accessory/power ... ected_mode
User avatar
odroid
Site Admin
 
Posts: 28292
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Using SmartPower Robustly

Unread postby sl_matrix » Fri Nov 17, 2017 4:53 am

That solution does not run natively on the odroid itself. I cannot log executable power utilization that way.
I need something more along the lines of this.
Unfortunately, the code is not quite working. Is there any other solution that you can think of to measure the power? Having the device just display numbers is not quite useful if I cannot log/peg them to a program.
sl_matrix
 
Posts: 4
Joined: Sun Oct 15, 2017 12:31 pm
languages_spoken: english
ODROIDs: XU4
ubuntu MATE 16.04 LTS [4.9]

Re: Using SmartPower Robustly

Unread postby sl_matrix » Sat Nov 18, 2017 1:25 am

Additionally, on the XU3, I am unable to access the sensors, even after kernel updates from here. If a solution for the XU3 can be provided, that would just as well. The script provided by mdrjr fails at the sensor enabling steps..

update: apparently one of the boards is an XU4 (written on board) BUT > cat /proc/cpuinfo states HARDWARE: ODROID-XU3. That might explain why mdrjr's script was not working. Weird.
sl_matrix
 
Posts: 4
Joined: Sun Oct 15, 2017 12:31 pm
languages_spoken: english
ODROIDs: XU4
ubuntu MATE 16.04 LTS [4.9]

Re: Using SmartPower Robustly

Unread postby odroid » Sat Nov 18, 2017 9:54 am

XU4 board has no on-board voltage-current sensor.
We are sharing XU3 software with XU4.
But XU3 has a totally different PCB design.
http://www.hardkernel.com/main/products ... 0448267127

BTW, did you modify the SmartPower2 firmware source code for Telnet extension?
User avatar
odroid
Site Admin
 
Posts: 28292
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Using SmartPower Robustly

Unread postby edison_gdem » Fri Apr 20, 2018 12:40 am

Hi sl_matrix. Had you get that you wanted? Because I aslo want measure the consument of my Odroid XU4
edison_gdem
 
Posts: 112
Joined: Thu Mar 22, 2018 6:45 pm
languages_spoken: english and spanish
ODROIDs: ODROID-XU4

Re: Using SmartPower Robustly

Unread postby connorimes » Wed Jun 20, 2018 9:35 am

Perhaps better late than never... we've been using the original Smart Power on and off for a number of years. Recently I decided to factor out some of the code into a standalone C library with some binaries to go with it, including a polling utility like the OP was looking for.
I hope you find it useful: https://github.com/energymon/hosp
connorimes
 
Posts: 10
Joined: Tue May 13, 2014 6:47 am
languages_spoken: english
ODROIDs: XU+E
XU3
XU4
Smart Power

Re: Using SmartPower Robustly

Unread postby hominoid » Mon Jun 25, 2018 3:23 am

connorimes wrote:Perhaps better late than never... we've been using the original Smart Power on and off for a number of years. Recently I decided to factor out some of the code into a standalone C library with some binaries to go with it, including a polling utility like the OP was looking for.
I hope you find it useful: https://github.com/energymon/hosp

I haven't had a chance to try it yet but It looks very useful for a future project I want to do, thanks for sharing.
hominoid
 
Posts: 167
Joined: Tue Feb 28, 2017 3:55 am
Location: Lake Superior Basin, USA
languages_spoken: english
ODROIDs: C2, XU4, MC1, N1


Return to Smart Power

Who is online

Users browsing this forum: No registered users and 2 guests