The Following User Says Thank You to quanttrom For This Useful Post: | ||
![]() |
2013-09-11
, 02:54
|
|
Posts: 288 |
Thanked: 175 times |
Joined on Oct 2010
@ Petaling Jaya, Selangor, Malaysia
|
#2
|
![]() |
2013-09-11
, 07:33
|
Posts: 1,431 |
Thanked: 2,630 times |
Joined on Jan 2011
@ Touring
|
#3
|
![]() |
2013-09-11
, 18:19
|
Posts: 31 |
Thanked: 31 times |
Joined on Jan 2013
@ USA
|
#5
|
![]() |
2013-09-12
, 15:51
|
Posts: 50 |
Thanked: 36 times |
Joined on Aug 2010
|
#6
|
![]() |
2013-09-13
, 19:29
|
Posts: 31 |
Thanked: 31 times |
Joined on Jan 2013
@ USA
|
#7
|
I have been battling with weird charging problems on my phone. The phone will show as charging but in fact it will NOT be charging and instead slowly depleting the battery. Finally last weekend I sat down determined to get to the bottom of this. I haven't been able to narrow down exactly why it happens. This is where you guys might be able to help but I am fairly certain I have a solution for the time being.
My current setup involves using the N900 as a motorcycle GPS. The screen is always on, sometimes for hours so constant charger capable of relatively high current draw is absolutely a must.
I inspected and looked at the whole charging system of the motorcycle, everything appeared normal. I purchased a charger capable of 2A @ 5V and tested it. It is in fact capable of delivering the rated current with acceptable voltage drop. I tested it. Everything appeared normal as well. Finally i set my eyes on the N900 because initially I did not believe it was the culprit.
Just to be on the safe side, I shorted the D+ and D- pins of the USB with a solid wire. I don't use the USB port for anything else other than charging. The ground pin on the USB was further connected to the ground plane and finally the VBUS on the USB connector was connected to the fuse with a direct wire connection. I glued everything in place in order to avoid any potential issues due to vibration.
I started looking at low lever I2C scripts capable of reading the charging and gas gauge ICs of the N900.
What I found out is that sometimes the BME will somehow instruct the battery charging chip to limit the charging current at 100mA. This is not adequate to power a screen and CPU intensive application such as GPS.
Through monitoring the current going through the battery gas gauge I was able to narrow down when the phone is actually charging and when it just appears to be charging.
I started out with a script made by jeorg_rw:
http://talk.maemo.org/showpost.php?p=658278
and monitoring the charging current with bq27200.sh script by shadowjk
eventually I realize that no matter what I plugged in I can coax the phone into charging with only a part of jeorg_rw's script:
I run this and I DO keep BME running through the whole ordeal. I have NO idea how this affects BME and BMEs interactions and internals but it does not SEEM to cause any issue. It is entirely possible that BME and this crude I2C interaction can clash and cause unpredictable results.DO NOT do anything you are unsure of...This is at best a "hack" !
The first line sets the max charge voltage and the second one starts the charging process with no current limit..(hmmm)
I created myself a small script that lets me execute this whole ordeal easily every time I plug in a random charger.
/home/user/adjust_current.sh
/usr/share/applications/hildon/adjust_current.desktop
What is funny is, the wall charger will consistently and reliably charge the phone EVERY TIME. Maybe the ID pin is involved somehow, I am not sure and at this point in time I am 100% satisfied with my hackjob solution as it does what I want it to do and I have already spend enough time chasing this.
Do you know what might be causing the charging issues shown above? Is there a proper fix?