Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,729,690 Members 47,788 Now Online
XDA Developers Android and Mobile Development Forum

Battery discharged by Nav app when Phone is connected to car charger

Tip us?
 
Zaphod_b_1
Old
(Last edited by Zaphod_b_1; 26th May 2011 at 07:29 AM.)
#1  
Member - OP
Thanks Meter 13
Posts: 81
Join Date: Dec 2008
Default Battery discharged by Nav app when Phone is connected to car charger

Hi @all,

in the German SGS2 Forum at Pocketpc.ch actually there's an interesting discussion (German language unfortunately) about an issue a user has found out regarding using a navigation app on the SGS2:

It seems that, even if the phone is connected to a car charger, the battery is being discharged while using a navigation app, Navigon 3.6.0. in this case.

As it also looks like that this is not an issue of the car charger (has a max power of 1000mA) - it seems to come from the phone itself because Sammy limits the charging power to 450mA while connected to USB or "misc" chargers and to 650mA for AC chargers. Below you can see a piece of the battery driver sourcecode one of the pocketpc.ch-users posted:

if (enable) { /* Enable charging */
switch (info->cable_type) {
case CABLE_TYPE_USB:
val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
val_chg_current.intval = 450; /* mA */
break;
case CABLE_TYPE_AC:
val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
val_chg_current.intval = 650; /* mA */
break;
case CABLE_TYPE_MISC:
val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
val_chg_current.intval = 450; /* mA */
break;

My questions are now:
1) Can somebody here also confirm this behaviour?
2) Is there a workaround?
3) Would it be possible to compile the driver with new settings (i. e. 750mA) and install it without killing the phone?
4) Other suggestions?

Cheers

Zap

Edit: Using another car charger doesn't seem to help due to the limitation...
 
skibadee
Old
(Last edited by skibadee; 26th May 2011 at 07:37 AM.)
#2  
Senior Member
Thanks Meter 75
Posts: 547
Join Date: Apr 2011
Location: Bristol
It is the charger. I had same issue with a cheap tesco charger. I read about the fact a standard USB is wired differently to Samsung official one. So even if your charger is rated as 1000 it wont use fast charge mode. I got an official one and now it charges not drains in sat navigation. It shows right now as charging AC plugged in my van. With a non Samsung it shows USB.

Hope that helps :)

Sent from my GT-I9100 using XDA Premium App
 
BarryH_GEG
Old
#3  
BarryH_GEG's Avatar
Senior Member
Thanks Meter 4117
Posts: 8,614
Join Date: Jan 2009
Location: Spokane, Washington
I'm using a LG car charger and the battery stays positive also.
 
3waygeek
Old
#4  
Senior Member
Thanks Meter 36
Posts: 747
Join Date: Dec 2004
Location: Duluth, GA
How does info->cable_type get set? Figure that out and you could probably hack your adapter or cable to fool the SGS2 into thinking it's an AC charger. On some other phones, if the two USB data pins (2 & 3 on the USB A connector) are tied together, that tells the phone it's an AC charger.
 
Zaphod_b_1
Old
(Last edited by Zaphod_b_1; 26th May 2011 at 06:20 PM.)
#5  
Member - OP
Thanks Meter 13
Posts: 81
Join Date: Dec 2008
Thanks for your replys. Just to make something clear: I'm not the person who has this problem - I will get my SGS2 next week or so, but since Navigation is one of my main purposes for the phone I was really afraid to get a device unusable therefor. So I originated this thread since I think it is better to get more input than less input.

OK, so it seems that the first try to solve the issue should be changing the charger. After that there's to talk about some hacking ;). I will send an update as soon as there's some news. Is here anybody involved who can compile a driver with updated sourcecode and tell us how to install it? Unfortunately I'm not a Dev.

Suggestion: What about to list all car chargers the phone is working with correctly during Navigation? I think it should be enough to write down the ROM/Firmware/Kernel Version and the brand/type designation of the charger.

Cheers

Zap
 
rsenden
Old
#6  
Member
Thanks Meter 1
Posts: 36
Join Date: Apr 2006
Location: Rotterdam
Quote:
Originally Posted by 3waygeek View Post
How does info->cable_type get set? Figure that out and you could probably hack your adapter or cable to fool the SGS2 into thinking it's an AC charger. On some other phones, if the two USB data pins (2 & 3 on the USB A connector) are tied together, that tells the phone it's an AC charger.
I was using a Samsung Omnia II before getting the S2, and that one wouldn't even charge at all with a regular micro-USB cable on generic USB wall, car or emergency chargers. Using a modded cable with the USB data pins shorted, the phone will charge on any charger (probably shouldn't connect it to a PC though, as the phone will draw to much current).

I just did a short test with the Galaxy S II together with my generic wall charger. With a regular micro-USB cable it says Charging (USB), with the modded cable it says Charging (AC). So, the same trick still works...
T-Mobile MDA Vario I -> T-Mobile MDA Vario III -> Samsung Omnia II -> Samsung Galaxy S II -> Samsung Galaxy S4 Mini
 
3waygeek
Old
#7  
Senior Member
Thanks Meter 36
Posts: 747
Join Date: Dec 2004
Location: Duluth, GA
Quote:
Originally Posted by rsenden View Post
I just did a short test with the Galaxy S II together with my generic wall charger. With a regular micro-USB cable it says Charging (USB), with the modded cable it says Charging (AC). So, the same trick still works...
Cool; it'd probably be better to make the mod to the charger; that way, you should be able to use any USB cable.
 
RogerPodacter
Old
#8  
Senior Member
Thanks Meter 393
Posts: 5,574
Join Date: Apr 2010
Location: Los Angeles, CA
i've posted this code here already, and yes if someone were to test out a few higher values and compile their own kernel, you may be able to get closer to 950mA or so. i would do it myself when i get the device. my hunch is there was a heat issue so samsung capped it at 650mA. who knows for sure though, it may just be their philosophy of how they want their devices charged. there is some truth to the claim that a slower charge gives more robust voltage stability = better battery life over the long term.

Code:
static int sec_bat_enable_charging_main(struct sec_bat_info *info, bool enable)
{
	struct power_supply *psy = power_supply_get_by_name(info->charger_name);
	union power_supply_propval val_type, val_chg_current, val_topoff;
	int ret;

	if (!psy) {
		dev_err(info->dev, "%s: fail to get charger ps\n", __func__);
		return -ENODEV;
	}

	info->batt_full_status = BATT_NOT_FULL;

	if (enable) {		/* Enable charging */
		switch (info->cable_type) {
		case CABLE_TYPE_USB:
			val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
			val_chg_current.intval = 450;	/* mA */
			break;
		case CABLE_TYPE_AC:
			val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
			val_chg_current.intval = 650;	/* mA */
			break;
		case CABLE_TYPE_MISC:
			val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
			val_chg_current.intval = 450;	/* mA */
			break;
Past projects
Github
My N1 Battery Project

Phone: Nexus 5
ROM: stock rooted
Recovery: CWM Touch
 
SBS_
Old
#9  
Senior Member
Thanks Meter 19
Posts: 506
Join Date: Jul 2007
Location: Bergen
Quote:
Originally Posted by RogerPodacter View Post
i've posted this code here already, and yes if someone were to test out a few higher values and compile their own kernel, you may be able to get closer to 950mA or so. i would do it myself when i get the device. my hunch is there was a heat issue so samsung capped it at 650mA. who knows for sure though, it may just be their philosophy of how they want their devices charged. there is some truth to the claim that a slower charge gives more robust voltage stability = better battery life over the long term.
I'm pretty sure it could be bumped up to 950mA without any issues. As it is right now the phone is downright cold when charging compared to earlier phones I've had.
 
dlwnew
Old
#10  
Member
Thanks Meter 5
Posts: 47
Join Date: Dec 2009
I am using a 2amp usb adapter with an HTC lead which is not a data lead but charge only and this is the best way to use nav and charge, it worked well with my HD2 because with the standard data cable didn't charge while with nav either.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...