Jump to content


Photo

USB Charging Commander

* * * * * 1 votes

  • Please log in to reply
41 replies to this topic

#1
t0mm13b

t0mm13b

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,784 posts
  • Gender:Male
  • Location:Ireland
  • Devices:GT-S8500,Zte Blade,SE ST15i
  • Twitter:@t0mm13b
Hi guys,

Can you please try this and give it a shot, when you install it, it's called USB Charge Commander.

When you select "Disable USB Charging", the charging of the battery becomes disabled. Likewise, "Enable USB Charging" re-enables it - Simple really...

Let me know how it goes?

Will push this out to github ASAP.... Have phun \o/

Thanks! :huh:

Edited: ITs available to ye all in spirit of open source - have fun in browsing the code - might prove to be educational for those learning to program.

Attached Files


Edited by t0mm13b, 03 March 2011 - 07:12 PM.

  • 1
try{ not_laugh; }catch{ FAIL; }finally{ laugh; }

#2
css771

css771

    Enthusiast

  • Members
  • PipPipPip
  • 164 posts
  • Devices:Orange San Francisco/ZTE Blade

Hi guys,

Can you please try this and give it a shot, when you install it, it's called USB Charge Commander.

When you select "Disable USB Charging", the charging of the battery becomes disabled. Likewise, "Enable USB Charging" re-enables it - Simple really...

Let me know how it goes?

Will push this out to github ASAP....

Thanks! :)


Tried it out just now and it works accordingly as reported in Spare Parts.
With USB Charging set to off, the notification area battery icon still appears as though the phone is charging though Spare Parts reports otherwise.
Would be great if this was included in the Settings app, (probably under Applications > Development ?)
And a user may forget that they have turned USB Charging off and later realise it. So maybe if a notification were to be shown that Phone is not be charging, it would be a good idea.

Still, overall great idea :huh:

  • 0

#3
t0mm13b

t0mm13b

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,784 posts
  • Gender:Male
  • Location:Ireland
  • Devices:GT-S8500,Zte Blade,SE ST15i
  • Twitter:@t0mm13b

Tried it out just now and it works accordingly as reported in Spare Parts.
With USB Charging set to off, the notification area battery icon still appears as though the phone is charging though Spare Parts reports otherwise.
Would be great if this was included in the Settings app, (probably under Applications > Development ?)
And a user may forget that they have turned USB Charging off and later realise it. So maybe if a notification were to be shown that Phone is not be charging, it would be a good idea.

Still, overall great idea :huh:


Cheers for the idea... let me work on this more to flesh it out...

Incidentally, the idea came about, it was there on Eclair, under Settings > USB.. when I first got the Blade, I used VillainROM, and noticed the setting was in place to do that job, then it got dropped from the official AOSP trunk! Then I switched over to Modaco ROM Froyo, and it is no longer there....

Don't ask me why.... still I thought it would be nice to get this up and running to compensate! :)

Thanks! :P

Edited by t0mm13b, 28 February 2011 - 02:36 PM.

  • 0
try{ not_laugh; }catch{ FAIL; }finally{ laugh; }

#4
richardkemp

richardkemp

    Newbie

  • Members
  • Pip
  • 23 posts
  • Devices:ZTA Blade, HTC Dream
Fascinating... but what is it for?

  • 0

#5
pellonet

pellonet

    Regular

  • MoDaCo Silver
  • PipPip
  • 120 posts
  • Gender:Male
  • Location:London, UK
  • Devices:San Francisco B05 OLED

Fascinating... but what is it for?


+1
I can't think of a situation where I would need this but would be interested to hear of a scenario where it would be useful.
Thanks anyhow though.

  • 0
Peter
Do Androids dream of electric sheep?

Posted Image

Phone 1: Orange San Francisco B05 OLED Gen 1, SS5
Phone 2: Orange San Francisco B08 TFT Gen 2 (converted), CM7.02
Phone 3: OMC/Skate CM7


#6
t0mm13b

t0mm13b

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,784 posts
  • Gender:Male
  • Location:Ireland
  • Devices:GT-S8500,Zte Blade,SE ST15i
  • Twitter:@t0mm13b

+1
I can't think of a situation where I would need this but would be interested to hear of a scenario where it would be useful.
Thanks anyhow though.


Ok, imagine you are on a train, and there's no power point for your laptop, and you want to transfer files across to the handset and vice versa, instead of draining the battery on the laptop, disable the usb charging on the handset, and copy files across, in that way prolonging the battery on the laptop.

The other situation is that out of concern in the event of messing up or possibly reducing the battery's longevity by constantly plugging in the handset to transfer files (face it, suppose you needed to transfer a package) then unplug the handset (this would be more handier for devs). That would be where it can be used.

Despite advances in battery technologies etc, the risk is there anyway by reducing the quality of the battery by plugging/unplugging. And anyway, its a nice feature to have... :huh:

:)

Edited by t0mm13b, 28 February 2011 - 03:26 PM.

  • 0
try{ not_laugh; }catch{ FAIL; }finally{ laugh; }

#7
wbaw

wbaw

    account closed

  • Banned
  • PipPipPipPipPipPip
  • 1,885 posts
  • Gender:Not Telling

the risk is there anyway by reducing the quality of the battery by plugging/unplugging.


There's no risk, in fact it's better for Li-Ion batteries to be charged in this way.

  • 0

#8
PeaNut_HU

PeaNut_HU

    Enthusiast

  • Members
  • PipPipPip
  • 207 posts
  • Location:Hungary
  • Devices:OSF/G1/OLED/3MP/512MB/[G2/TPT]
  • Twitter:@@PeaNut_hu

There's no risk, in fact it's better for Li-Ion batteries to be charged in this way.


Yep, there is no "memory effect" on Li-Ion and Li-Polymer batteries, and it is also always accompanied by a deep-discharge protection circuit.

  • 0

#9
IronDoc

IronDoc

    Addict

  • MoDaCo Silver
  • PipPipPipPipPip
  • 522 posts
  • Devices:Blade
It would mean battery level reporting got worse quicker I guess.
Don't really see much need but a lot of people have been asking for it so it's good that it's there.

  • 0

#10
wondertx

wondertx

    Newbie

  • Members
  • Pip
  • 3 posts

Hi guys,

Can you please try this and give it a shot, when you install it, it's called USB Charge Commander.

When you select "Disable USB Charging", the charging of the battery becomes disabled. Likewise, "Enable USB Charging" re-enables it - Simple really...

Let me know how it goes?

Will push this out to github ASAP.... Have phun \o/

Thanks! :huh:

I think it's really a useful tool, cos I connect the phone via USB from time to time

  • 0

#11
ManMetDeHamer

ManMetDeHamer

    Diehard

  • MoDaCo Silver
  • PipPipPipPip
  • 347 posts
  • Gender:Male
  • Location:Netherlands
  • Devices:ZTE Blade

I think it's really a useful tool, cos I connect the phone via USB from time to time


Edited by ManMetDeHamer, 12 April 2011 - 04:31 PM.

  • 0
Running:
Swedish Snow RLS3
With Nemus launcher!

#12
sm4tik

sm4tik

    Addict

  • Members
  • PipPipPipPipPip
  • 508 posts
  • Gender:Male
  • Location:Jyväskylä
  • Devices:Blade
t0mm13b
now that you're on gen2 CM7 (just finished reading your conversion process :) ) can you please test and see if you get this little helper working as it should? I tried CM7 for a while and found your little app while searching for a universal way to disable usb charging (SS has kallt_kaffe's own tool?), but each time I plugged in usb, every battery indicator I could find told me it was still charging. I've been using usb quite frequently for really short periods and it really bothers me to mess with the battery when it's really not necessary and it would be nice to have a tool like this around!

  • 0

#13
t0mm13b

t0mm13b

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,784 posts
  • Gender:Male
  • Location:Ireland
  • Devices:GT-S8500,Zte Blade,SE ST15i
  • Twitter:@t0mm13b

t0mm13b
now that you're on gen2 CM7 (just finished reading your conversion process :) ) can you please test and see if you get this little helper working as it should? I tried CM7 for a while and found your little app while searching for a universal way to disable usb charging (SS has kallt_kaffe's own tool?), but each time I plugged in usb, every battery indicator I could find told me it was still charging. I've been using usb quite frequently for really short periods and it really bothers me to mess with the battery when it's really not necessary and it would be nice to have a tool like this around!


Thanks sm4tik for the heads up... will check it out :) and update the github repo also :)

  • 0
try{ not_laugh; }catch{ FAIL; }finally{ laugh; }

#14
Dark_Sorcerer

Dark_Sorcerer

    Newbie

  • Members
  • Pip
  • 11 posts

Thanks sm4tik for the heads up... will check it out :o and update the github repo also :mellow:


Hi there,

Is this tool working in CM7? =)

Thanks!

  • 0

#15
kogos

kogos

    Enthusiast

  • Members
  • PipPipPip
  • 179 posts
  • Devices:nexus1, zte blade, galaxy tab
it works in CM7... the only problem is it wont update the status bar icon..

If u disable usb charging with this app, when phone is on USB, status bar shows its charging, and the red led is on, indicating it's charging. However, if u go into settings, u'll see it's on "discharge" state. So, it works, but its just the status bar not updating correcty

  • 0

#16
sm4tik

sm4tik

    Addict

  • Members
  • PipPipPipPipPip
  • 508 posts
  • Gender:Male
  • Location:Jyväskylä
  • Devices:Blade

it works in CM7... the only problem is it wont update the status bar icon..

If u disable usb charging with this app, when phone is on USB, status bar shows its charging, and the red led is on, indicating it's charging. However, if u go into settings, u'll see it's on "discharge" state. So, it works, but its just the status bar not updating correcty

I'll give it another go at some point. When I was testing it, it was charging all over the place = battery status, spare parts, etc.. but a lot has changed since :P Good to know it should be working now!

Edit: Tested and working. I was actually using the USBChargeCommander.apk from github earlier, not the one provided in the OP, so that might also be the reason for it not working for me in the first place.

Edited by sm4tik, 20 May 2011 - 08:04 PM.

  • 0

#17
ezablade

ezablade

    Enthusiast

  • MoDaCo Silver
  • PipPipPip
  • 229 posts
  • Gender:Male
  • Location:Sheffield
  • Devices:ZTE Blade/Xperia Ray/Nexus 5,7
I've had a search and can't find an answer, so, here goes. Is there a way to do exactly the opposite to this?

I need to be able to charge without USB data connection kicking in. Two reasons, firstly, it sometimes mounts the SD card and none of the apps run from the card and secondly. admin rights to connect unauthorised hardware to usb ports is disabled at work and I'm pretty sure attempts are logged.... would be nice not to have the various warnings, errors and info pop-ups appearing when connecting my Blade to the work laptop to give the battery a boost after a day of browsing etc when bored!

I know you can buy power olny USB cables, but, these seem to cost 5 times the cost of a data one, which is odd as they do less!

For getting data onto the phone I just use FTP anyway, as this means I don't have to dig the usb cable out at home, where I charge from the mains. Yes, I am too lazy to reach over and unplug from the mains charger, plug into the computer and then switch back again. Also annoys the missus if her phone is charging and I nick the cable and her battery is flat the next morning.

  • 0

#18
p0peye

p0peye

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:qtek 9100

Yep, there is no "memory effect" on Li-Ion and Li-Polymer batteries, and it is also always accompanied by a deep-discharge protection circuit.


I connect the phone to PC and disconnect it 20-30 up to 50x in a day (transfer the data all the time to PC, but have to get out of the office as soon as the phone rings to take the call - or to make one...)

I have heard that the Li-Ion battery don't suffer a "memory effect".

My interpretation of the "mem effect" is that with time, the Li-Ion battery won't provide shorter using time if it is randomly charged (not drained to 5% and then fully charged).

But what about a charging cycles (1000, 2000 cycles?)

How do you count a charging cycle:
- connected/disconnected to the charger, or
- charged (in 1, 2, 10 iterations) from 5% to 100%?

In the first case, I really can see a potential of this app...

Or are you saying that I can connect and disconnect the charger for unlimited times?

Math:
30 x 365 = 10950.
Can a Li-Ion battery stand 10000 charging cycles (in a year)?

Cheers, and THANKS, ezablade, if nothing else for taking time to develop this app :D

  • 0

#19
t0mm13b

t0mm13b

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,784 posts
  • Gender:Male
  • Location:Ireland
  • Devices:GT-S8500,Zte Blade,SE ST15i
  • Twitter:@t0mm13b

I connect the phone to PC and disconnect it 20-30 up to 50x in a day (transfer the data all the time to PC, but have to get out of the office as soon as the phone rings to take the call - or to make one...)

I have heard that the Li-Ion battery don't suffer a "memory effect".

My interpretation of the "mem effect" is that with time, the Li-Ion battery won't provide shorter using time if it is randomly charged (not drained to 5% and then fully charged).

But what about a charging cycles (1000, 2000 cycles?)

How do you count a charging cycle:
- connected/disconnected to the charger, or
- charged (in 1, 2, 10 iterations) from 5% to 100%?

In the first case, I really can see a potential of this app...

Or are you saying that I can connect and disconnect the charger for unlimited times?

Math:
30 x 365 = 10950.
Can a Li-Ion battery stand 10000 charging cycles (in a year)?

Cheers, and THANKS, ezablade, if nothing else for taking time to develop this app :D


Uhhhh let's straighten this out... what's ezablade got to do with the app that I put together? :D

  • 0
try{ not_laugh; }catch{ FAIL; }finally{ laugh; }

#20
xLunchboxXx

xLunchboxXx

    Newbie

  • Members
  • Pip
  • 2 posts
  • Devices:LG Optimus Speed P990
Besides the discussion wheter this tool is useful or not - I just want to say that it doesnt work on my device :)
At least the battery icon is still showing the charging animation...
Is there any experience on the LG P990 from anyone else or a hint?
Before you ask: yes I gave the app root rights =)

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users