Code Monkey home page Code Monkey logo

android-fuel-gauge-uevent-analysis's Introduction

android-fuel-gauge-uevent-analysis

Basic tools to grab battery event file data and to analyze collected traces of such grabs.

This tool is just a proof-of-concept. See the list of limitations below.

To install:

(1) Grab the repository:

git clone [email protected]:phillipstanleymarbell/android-fuel-gauge-uevent-analysis.git

(2) Running 'make install' will copy the script to the Android device currently connected to your workstation via USB. (Be sure to first enable USB debugging on the Android device.)

make install

(3) Run ‘adb shell’ to login to the Android device. Change directory to '/data/local/tmp' (this is where 'make install' copied the logger script to) and launch the script in the background, saving it to the file 'log':

adb shell

shell@angler:/ $ cd /data/local/tmp

shell@angler:/data/local/tmp $ ./fuelGauge.sh > log &

(4) Disconnect the USB debug cable and use the phone or run your tests as usual.

(5) To retrieve the log:

make retrieve

This will retrieve the file '/data/local/tmp/log' from the Android device, and will store the retrieved file in a time-named file within 'Logs/' of the repository root.

(6) To analyze the log, run it through the Mathematica notebook in the Mathematica/ subdirectory of the repository.

Limitations

  • It samples at 1Hz. This has the advantage that it does not induce much system activity.

  • Sampling at 1Hz will however not catch transients, and will be too coarse-grained to be useful in general. You can always rewrite fuelGauge.sh to achieve more- or less-frequent sampling.

  • The analysis tools presently only look at the instantaneous current and voltage samples, and not at the battery state-of-charge.

android-fuel-gauge-uevent-analysis's People

Contributors

phillipstanleymarbell avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.