Git Product home page Git Product logo

chargertest's Introduction

chargerTest

some tools for testing charger

chargingTest.sh

recording the process when charging.

adb push chargingTest.sh /data
adb shell
cd /data
su
chmod a+x chargingTest.sh
./chargingTest.sh > chargingProcess.txt &

chargingShow.py

visualize the file generated by chargingTest.sh

python chargingShow.py

mpower_tools.py

useful tools for analyzing the mbattery log

system requirement

  • python version

python 3.4

  • dependency
matplotlib
re
copy
xlsxwriter
argparse

usage

usage: mpower_tools.py [-h] [-o OUTPUT]
                       [-p {cc,icl,vbus,ulmt,scrn,fstchg,usoc,tsoc,vbat,ibat,usbvltg,dischg,brdtmp,battmp,usbtmp}]
                       [-P {cc,icl,vbus,ulmt,scrn,fstchg,usoc,tsoc,vbat,ibat,usbvltg,dischg,brdtmp,battmp,usbtmp}]
                       [-v]
                       logpath

positional arguments:
  logpath

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        save as excel file
  -p {cc,icl,vbus,ulmt,scrn,fstchg,usoc,tsoc,vbat,ibat,usbvltg,dischg,brdtmp,battmp,usbtmp}, --plot {cc,icl,vbus,ulmt,scrn,fstchg,usoc,tsoc,vbat,ibat,usbvltg,dischg,brdtmp,battmp,usbtmp}
                        plot the given argument sequentially
  -P {cc,icl,vbus,ulmt,scrn,fstchg,usoc,tsoc,vbat,ibat,usbvltg,dischg,brdtmp,battmp,usbtmp}, --PLOT {cc,icl,vbus,ulmt,scrn,fstchg,usoc,tsoc,vbat,ibat,usbvltg,dischg,brdtmp,battmp,usbtmp}
                        plot the given argument by time
  -v, --version         print version

example

save as excel file

python mpower_tools.py ./log -o output.xlsx

save2excel

plot the vbat value sequentially

python mpower_tools.py ./log -p vbat

plotvbatseq

plot the vbat value by time

python mpower_tools.py ./log -P vbat

plotvbatbytime

chargertest's People

Contributors

logic-wei avatar

Watchers

 avatar  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.