-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using recommended PyMonsoon fork returns huge values for current #10
Comments
Hi @odmnk ! |
Hi Luis, Thank you so much for your quick reply! Also thanks a lot for creating Physalia, really makes using the Monsoon a lot easier ;). It is not super urgent as I understand that you want to enjoy your summer holiday as well. The thing is that I'm a MSc student working on my thesis. Part of my thesis is an experiment investigating the effects of certain web performance optimizations on the energy consumption of mobile web apps. To do this I wanted to use the Monsoon. However, if I don't get it work I will probably switch to a software based profiler. I will do some more debugging before I will do that though. I will let you know if I find a fix! Cheers |
Hmm, no luck yet. I created a document describing how to reproduce the issue. I want to share it here before I forget :p. Maybe other people are interested as well.
Note: its important to first install the forked PyMonsoon library,
We can fix this issue by replacing the forked PyMonsoon library with its original version.
We can clearly see a huge difference, 130 mA versus 32625 mA. While this initially solves the issue I now sometimes, but quite frequently, have the problem that the PyMonsoon's getSamples() method returned nr of currents does not match nr of timestamps. This then gives an error in Physalia when calculating the consumed energy:
I have reported that issue here: msoon/PyMonsoon#35 Platform I'm going to do some more debugging but I just wanted to share this here. |
Hello! Is there any duplicate time stamp in the measurement data you get? Can you tell me the solution? The measured data are as follows [0.09065890312194824, 0.09065890312194824, 0.09197115898132324, 0.09197115898132324, 0.09197115898132324, 0.09197115898132324, 0.0930185317993164, 0.0930185317993164, 0.0930185317993164, 0.0930185317993164, 0.0930185317993164, 0.0930185317993164, 0.0930185317993164, 0.0930185317993164] |
To install Physalia the GitHub installation section says to install this fork of PyMonsoon before running
pip install physalia
.However, if I run Physalia using this version of the PyMonsoon library I get measurements that do not make sense. Profiling for 15 seconds gives me an average current of 27882.41 mA. Which is impossible.
If I instead use the original PyMonsoon library in combination with Physalia my average mA for a 15 seconds profiling session is 208.97 mA. This is acceptable.
The problem is that when I use the original PyMonsoon library I sometimes get the following error when using it with Physalia: msoon/PyMonsoon#35
My questions:
Thanks a lot!
The text was updated successfully, but these errors were encountered: