Ticket #95 (closed defect: wontfix)

Opened 12 years ago

Last modified 21 months ago

verify charger current and battery temperature reading correctness

Reported by: laforge@… Owned by: michael@…
Priority: high Milestone:
Component: kernel Version: current svn head
Severity: minor Keywords:
Cc: mickey@…, buglog@…, werner@…, jserv@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description


Change History

comment:1 Changed 12 years ago by sean_mosko@…

  • Owner changed from laforge@… to sean_chiang@…
  • Milestone set to Phase 0

Shanghai doesn't have much hardware support here. I'm going to assign this to
Taipei.

[Sean Chiang] If you don't have time please assign this bug to another engineer.

comment:2 Changed 12 years ago by mickey@…

I observe a couple of problems:
1.) charger current always seems to report 0 here, no matter whether mode is
fast_cccv , pre, or idle.
2.) even if I leave the charger on for very long, apm reports no more than 89%

comment:3 Changed 12 years ago by laforge@…

This should be mostly fixed in svn rev. 1518, but it would not hurt to actually
do the measurements and compare the readings given by the pmu driver with what
your lab equiment determines.

comment:4 Changed 12 years ago by alphaone@…

The voltage reading seems to be pretty consistent (I only have cheap measuring
hardware), but the output of /sys/bus/i2c/devices/0-0008/chgcur has too much
fluctuation to be correct.
Generally this doesn't seem to represent the charging current in mA.

Here are some values taken over a short period of time (10 sec)
root@fic-gta01:~$ cat /sys/bus/i2c/devices/0-0008/chgcur
533
root@fic-gta01:~$ cat /sys/bus/i2c/devices/0-0008/chgcur
560
root@fic-gta01:~$ cat /sys/bus/i2c/devices/0-0008/chgcur
346
root@fic-gta01:~$ cat /sys/bus/i2c/devices/0-0008/chgcur
746
root@fic-gta01:~$ cat /sys/bus/i2c/devices/0-0008/chgcur
853
root@fic-gta01:~$ cat /sys/bus/i2c/devices/0-0008/chgcur
1093
root@fic-gta01:~$ cat /sys/bus/i2c/devices/0-0008/chgcur
533

Kernel is uImage-2.6-moko8-r0_0_1584_0-fic-gta01.bin from buildhost
root@fic-gta01:~$ uname -a
Linux fic-gta01 2.6.20.4-moko8 #1 PREEMPT Fri Mar 30 22:10:44 UTC 2007 armv4tl
unknown

comment:5 Changed 12 years ago by mickey@…

  • Cc mickey@… added

comment:6 Changed 12 years ago by mickey@…

* Bug 287 has been marked as a duplicate of this bug. *

comment:7 Changed 12 years ago by laforge@…

  • Cc werner@… added

the level fluctuation can actually be quite normal, given the amount of
non-constant-current consumers. There are a number of DC/DC converters clocked
at high rate, lots of digital consumers that have very dynamic power
requirements, etc.

The ADC value for charger current reading is an instantaneous single sample
reading. I guess it would need some kind of low-pass filtering to get rid of
the transients.

As for the actual value: I have verified the calculations a number of times.
Somebody with a usb current probe (Werner?) should probablt do measurements to
determine if those readings are correct (and we draw too muhc power), or
incorrect (we have some hardware or software problem)

comment:8 Changed 12 years ago by elrond+bugzilla.openmoko.org@…

Model: GTA01Bv03
Kernel: 2.6.21.3-moko10 (I think, r2118)
(if needed, I can test with the latest kernel from buildhost)

for i in seq 200
do

cat chgcur >>/tmp/cur.dat
sleep 1

done

Mean: 1789.915
standard deviation: 169.807
Minimum: 1440.0
Maximum: 2373.0

If these are really mA, we have a problem, at least on Bv03.

If this thing really is kind to my desktop and only gets max 500 mA, I'd guess,
that one has to divide the number from /sys/../chgcur by 5 to get mA.

Is this issue really "minor"?

comment:9 Changed 12 years ago by oe@…

I've compared the displayed current intake w/ an actual measurement of the same.

There is no factor, the displayed values are

  • all way off
  • are bouncing up and down

comment:10 Changed 11 years ago by alphaone@…

Has anyone verified the readings yet?
At least the temperature readings are bogus on my device:
12
9
12
12
12
12
12
12
6
6
12

comment:11 Changed 11 years ago by alphaone@…

Kernel 2.6.22.1-moko10 on a GTA01bv4

comment:12 Changed 11 years ago by alex@…

Patch submitted for #193 can also apply to this one. It allows to read
negative values for chgcur, meaning the drawn current from the battery (if the
measurement is located directly at the battery.)

comment:13 Changed 11 years ago by jserv@…

  • Cc jserv@… added

comment:14 Changed 11 years ago by tick@…

  • Owner changed from sean_chiang@… to willie_chen@…

comment:15 Changed 11 years ago by willie_chen@…

  • Owner changed from willie_chen@… to michael@…

comment:16 Changed 11 years ago by anonymous

  • Milestone Phase 0 deleted

Milestone Phase 0 deleted

comment:17 Changed 11 years ago by andy

  • Status changed from new to closed
  • Resolution set to wontfix

We are no longer working on GTA01, I do not believe anyone will address this issue.

comment:18 Changed 21 months ago by RoberMync

Acheter Viagra Nord <a href=http://priligy.ccrpdc.com/where-to-buy-dapoxetine.php>Where To Buy Dapoxetine</a> Worldwide Progesterone Medicine By Money Order Rotherham Como Comprar Cialis Online <a href=http://viag1.xyz/viagra-dosage.php>Viagra Dosage</a> Comprar Cialis Al Mayoreo Vademecum 1 Mg Propecia <a href=http://cytotec.ccrpdc.com/cheap-cytotec-usa.php>Cheap Cytotec Usa</a> Venta De Viagra Sevilla Cheap Cytotec No Prescription <a href=http://kama1.xyz/kamagra-order.php>Kamagra Order</a> Cialis Rezeptfrei Polen Propecia Consecuencias <a href=http://viag1.xyz/generic-viagra-buy.php>Generic Viagra Buy</a> Levitra Bayer Kaufen Zithromax Discount Card <a href=http://zol1.xyz/order-zoloft-in-usa.php>Order Zoloft In Usa</a> Priligy Tijuana Pariet <a href=http://viag1.xyz/viagra-online-stores.php>Viagra Online Stores</a> Zithromax Medication Amoxicillin Resistant Dental <a href=http://viag1.xyz/where-to-buy-viagra.php>Where To Buy Viagra</a> Buying Levitra No Prescription Cheapeast Levaquin Bronchitis No Rx <a href=http://viagra.ccrpdc.com/cheap-viagra-sales.php>Cheap Viagra Sales</a> Cialis Assunzione Cytotec 30mg <a href=http://kama1.xyz/kamagra-jelly-forum.php>Kamagra Jelly Forum</a> Sale Levaquin 250mg Medicine Pharmacy Aberdeen Baclofene Generique <a href=http://cial1.xyz/buy-tadalafil-online.php>Buy Tadalafil Online</a> Discount Legally Pyridium 200mg Worldwide Pills. Mail Order Pyridium 200mg Secure Medication Shipped Ups buy generic accutane online no prescription <a href=http://kama1.xyz/where-to-order-kamagra.php>Where To Order Kamagra</a> Cialis 20mg Lilly Kaufen Nexium Coupons For Seniors <a href=http://antabuse.ccrpdc.com>Buy Antabuse</a> Cialis Hipertension Arterial Next Day Metronidazole Or Flagyl <a href=http://viag1.xyz/order-viagra-pills.php>Order Viagra Pills</a> Online Pharmaceutical Medications Viagra Generique Cialis <a href=http://kama1.xyz/kamagra-online-fast.php>Kamagra Online Fast</a> Vardenafil Bestellen Online Pharmacy Without A Prescription <a href=http://cial1.xyz/ordina-cialis-online.php>Ordina Cialis Online</a> Levitra Film Coated Tablets Propecia Side Effects Sperm Impotence <a href=http://cial1.xyz/cialis-pills.php>Cialis Pills</a> Levitra Generique Forum Best Price For Cialis 5 Mg <a href=http://cial1.xyz/generic-cialis-pricing.php>Generic Cialis Pricing</a> Cialis Viagra Moins Cher Healthy Male Sirius Radio <a href=http://zol1.xyz/generic-zoloft-pricing.php>Generic Zoloft Pricing</a> Tadalafil Soft Tabs Order Plavix <a href=http://kama1.xyz/kamagra-pill.php>Kamagra Pill</a> Suche Viagra Ch Viagra Pillen Preis <a href=http://kama1.xyz/how-to-get-kamagra.php>How To Get Kamagra</a> Amoxicillin Uses Diarrhea Cialis Curativo <a href=http://cial1.xyz/cheap-cialis-20mg.php>Cheap Cialis 20mg</a> Fever While On Amoxil Domperidone New Zealand Pharmacy <a href=http://zol1.xyz/sertralina-generic.php>Sertralina Generic</a> Viagra Pillen Internet Prednisone Back Order <a href=http://zol1.xyz/zoloft-online-usa.php>Zoloft Online Usa</a> Cialis 60 Mg Propecia De 20 Mg <a href=http://zol1.xyz/zoloft-generic-name.php>Zoloft Generic Name</a> Viagra Pillole Propecia Verschreiben <a href=http://prozac.ccrpdc.com/best-prozac-online.php>Best Prozac Online</a> Acheter Dapoxetine Hcl En Ligne Cialis Dosi <a href=http://zol1.xyz/zoloft-fast-delivery.php>Zoloft Fast Delivery</a> Buy Alli Diet Pills Canada Productos Kamagra <a href=http://viag1.xyz/viagra-online-fast.php>Viagra Online Fast</a> Buy Kamagra Uk Review Priligy Rosario <a href=http://cial5mg.xyz/cheap-cialis-20mg.php>Cheap Cialis 20mg</a> Sex Pills For Men Over The Counter Usa No Subscription Pharmacy <a href=http://zol1.xyz/zoloft-implicane.php>Zoloft Implicane</a> Cialis Por Mayor Finax For Sale <a href=http://viagra.ccrpdc.com/map.php>Sildenafil 20mg</a> Giving Amoxicillin 100 Mg To Cats Levitra Rezeptfrei Auf Rechnung <a href=http://viag1.xyz/cost-of-viagra.php>Cost Of Viagra</a> Is Amoxicillin Associated Diarrhea Dose Related Buy Generic Aciclovir Tablets In Uk <a href=http://cial5mg.xyz/ordina-cialis-online.php>Ordina Cialis Online</a> Tadalafil Overnight Kamagra Opiniones Efectos Secundarios <a href=http://kama1.xyz/cheap-generic-kamagra.php>Cheap Generic Kamagra</a> 379 Cailis Amoxicillin Taken With Fluconazole <a href=http://viag1.xyz/low-price-viagra.php>Low Price Viagra</a> Effet Viagra Femme Cephalexin Alcohal <a href=http://kama1.xyz/generic-kamagra-pricing.php>Generic Kamagra Pricing</a> Amoxicillin And Creatine Interactions

Note: See TracTickets for help on using tickets.