View Single Post
misterc's Avatar
Posts: 1,625 | Thanked: 998 times | Joined on Aug 2010
#1317
modified bq27000.sh so that it displays VDQ when in LOOP mode...

to install
(copy & paste {path} to get it to the right directory)
Code:
find /usr -name i2cget
{path}/i2cget
cp bq27000_vqd.txt {path}/bq27000_vdq.sh
chmod 755 {path}/bq27000_vdq.sh
to run & redirect output...
Code:
cd {path}
bq27000_vdq.sh >>/media/mmc/bq27000_vdq.out
bq27000_vdq.sh 60 >>/media/mmc/bq27000_vdq.out
will generate a file with content similar to
LOOPMODE=0
Reading values...........................done.

CSOC: 97 % RSOC: 97 %
Average Current: 202 mA
TTF: 65535 minutes TTE: 454 minutes
NAC: 1531 mAh CACD: 1531 mAh CACT: 1531 mAh
SI: 1 mA STTE: 64365 minutes
MLI: 1028 mA MLTTE: 88 minutes
AR: 0 mA ARTTE: 65535 minutes
Last Measured Discharge: 1574 mAh
Cycle Count since Learning: 0 Total Cycle Count since last full reset: 0
Reported Battery Voltage: 4010 mV
Battery Gauge die Temperature: 30 C
Flags: 0x04
Charge:0 NOACT:0 IMIN:0 CI:0 CALIP:0 VDQ:1 EDV1:0 EDVF: 0
eeprom data:
ILMD=2056 EDVF=3000 EDV1=3248 ISLC=20
DMF=14700 nanoVolt SD=201 thousandths of percent per day
AGELMD=1 TAPER=102 mA
IMLC=1028 mA
LOOPMODE=60
mv RSOC CSOC mA NAC CACD CACT VDQ TTE TEMP EDV1 LOW
22:59 3984 97 97 -242 1530 1530 1530 1 364 30 0
this way, it is easy to let the battery run empty & have all the values saved in a file automatically
Attached Files
File Type: txt bq27200_vdq.txt (6.7 KB, 155 views)
__________________
information is a necessary though no sufficient condition to rationality...

Last edited by misterc; 2012-06-09 at 12:11. Reason: chmod 577 => 755
 

The Following User Says Thank You to misterc For This Useful Post: