This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PPK logging very long periods

Hi.

I'm using the Power Profiler Kit and the PPK desktop application to log the power consumption of my device. This works well for short time spans.

However, I'd also like to log longer periods. Like days or even weeks. For this type of testing the amount of data gets too large quickly.

I edited the python code responsible for the logging so that it accumulates the current measurement values, and only writes these to the log file every ten seconds. I'm still running early tests but this seems to be working for my needs.

I'd also like to record a histogram of the samples, so that I could verify afterwards that 99% of the samples (for example) were less than a certain sleep current threshold. I haven't implemented this yet, but I believe I can manage it. My python skills are limited, so this will most likely fall under the 'ugly hack' category, but it should work for my needs.

So to summarize: I would find it useful to log a long term average current, plus some histogram-like data to verify sleep/awake ratios. I can make something that works for me, but I thought I'd throw the idea out in case others might find it useful too.

Related