View Single Post
misterc's Avatar
Posts: 1,625 | Thanked: 998 times | Joined on Aug 2010
#1327
Originally Posted by misterc View Post
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_vqd2.txt {path}/bq27000_vdq2.sh
chmod 755 {path}/bq27000_vdq2.sh
to run & redirect output...
Code:
cd {path}
bq27000_vdq2.sh >>/media/mmc/bq27000_vdq2.out
bq27000_vdq2.sh 60 >>/media/mmc/bq27000_vdq2.out
will generate a file with content similar to


this way, it is easy to let the battery run empty & have all the values saved in a file automatically
updated bq27000_vdq.sh
now, called without loop, it will 1st display complete date
2012-jun-09-08:08
Code:
echo "$(date +%Y-%b-%d-%H:%M)"
same steps as previous version to setup / use.
Attached Files
File Type: txt bq27200_vdq2.txt (6.7 KB, 95 views)
__________________
information is a necessary though no sufficient condition to rationality...