This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8230 - USB Charging on some players
Attached to Project:
Rockbox
Opened by rbx-Multiplex (rbx-multiplex) - Monday, 26 November 2007, 13:36 GMT+1
Last edited by Frank Gevaerts (fg) - Friday, 16 May 2008, 22:05 GMT+1
Opened by rbx-Multiplex (rbx-multiplex) - Monday, 26 November 2007, 13:36 GMT+1
Last edited by Frank Gevaerts (fg) - Friday, 16 May 2008, 22:05 GMT+1
|
DetailsNeed to add USB charging info to the manual, operation is to press a button while connecting USB - causes player to ignore the USB (not go into USB mode) and just take power. Players and the buttons are (based on code not real knowledge);
RECORDER F1 ONDIO MENU IPOD 4G MENU IRIVER H300 MODE GIGABEAT MENU GIGABEAT S MENU IRIVER H10 RIGHT SANSA E200/C200 SELECT H300 is given as Mode, current builds use Rec but there is an FS to change that. |
This task depends upon
Closed by Frank Gevaerts (fg)
Friday, 16 May 2008, 22:05 GMT+1
Reason for closing: Fixed
Additional comments about closing: The current behaviour is now documented in the manual. Please open a new feature request for behaviour changes
Friday, 16 May 2008, 22:05 GMT+1
Reason for closing: Fixed
Additional comments about closing: The current behaviour is now documented in the manual. Please open a new feature request for behaviour changes
Of course, it'd be slightly more convenient once you know it, since on some players, you plug more often to charge than to connect (probably), but to be consistent with every other msc-capable device in the world, I think the logic should be kept as-is.
1) Have holding *any* button down invert behaviour, rather than any specific button, so that the user can choose for himself what he'd like to hold, based on what won't interrupt things.
2) Add an option, "On USB: Charge, Connect, Ask" in which the user can choose if it defaults to charging, defaults to USB connection, or always puts up a prompt.
There's still a bit of disagreement on this though from some directions.
I also think option 2 would be useful, at least with a Charge or Connect. Not sure an Ask is needed here though.
I like Llorean's suggestion, I have no great feeling about No1, but No2 I rellay like but I suggest that it should not be a new config but an extension of the existing USB charging option (and do we need to add USB connect but don't charge? - tenchinally it completes the set but is it useful?).
1) Is to solve the "different screens have different suitable buttons, as you usually want to pick the least disruptive button." Even if you set the default to "Charge" you obviously will still want to connect *sometimes* and being able to hold a button down while plugging in is simpler than going to the menu and changing it before and after every connection. Hold definitely should be excluded in my opinion, and any other button that doesn't require explicit user interaction (basically, no accidental changed behaviour.) This idea is thanks to LinusN
2) Ask was proposed because some people would rather never have to hold a button down. Basically the idea is that when you plug it in, a pop-up occurs. Charging starts immediately, playback continues, and if you want to connect you agree, otherwise you cancel. Simpler than having to manually pick a setting in the menu for each connect, and solves the problem of having to hold down a button, which people seem to find problematic. I think Zagor suggested the addition of an "Ask" option to a "Charge or Connect" menu. I think "Connect but don't charge" doesn't really serve a purpose, there's never really a reason not to top off a lithium battery, and I'm not even wholly sure you can tell it not to charge.
Now my suggestion for a solution is to implement a simple text box to appear when inserting the usb (this is while having the usb charge by default) saying something along the lines of, "Hold any key while inserting to enter USB mode". Of course this could also be reversed to say the opposite before reverting to disk mode (or even displayed while in it.)
- Always Connect
- Always Charge
- Connect but charge if button pressed
- Charge but connect if button pressed
- Ask (popup like the Radio scan option)
"Charge" which means "Charge, but connect if any button (not including hold) is held down"
"Connect" which means "Connect, but charge if any button (not including hold) is held down"
"Ask"
Always connecting and always charging are essentially redundant.
A) send the USB inserted messge to pause the other treads, put up the USB screen and overlay the query, then act accordingly
B) add a message to be sent to the foreground tasks with are then responsible for doing the query
The first will interrupt the foreground task (WPS, Plugin, Video Playback) they may recover I haven't checked, but it won't be the nice operation I imagined. The second requires lots of bits of code to be modified(every plugin, main menu, WPS etc).
This is also a challenge because you need to be on real hardware, I haven't (quite) given up yet but it's a lot bigger than I imagined...
It would actually be a very nice feature to be able to specify how far to charge a battery. For my own use I would want the battery to always charge to a minimum of 3.85 volts (~50%) with a single override to 4.05 volts (~75%) which is more than sufficient for typical use and a secondary override to go to full charge which I would only rarely do for extended trips. These voltages are approximate for most lithium cells although there are chemistries such as phosphate (lower) and iron cobalt (higher).
To summarize, to best extend the life of lithium cells always keep them between 25% and 75% charged - don't fully charge. Also, keep them cool. The rate of aging dramatically increases as temps rise above room temperature. Regularly leave a fully charged battery inside a hot car and the battery can be ruined in a single summer. Store a half charged battery in your refrigerator and it will last for many, many years. I keep my laptop battery and my mp3 player in the fridge when not in use. The freezer would be slightly better for extended storage of a bare battery but condensation from regularly moving an mp3 player in and out of the freezer could be very bad. Also, a frozen mp3 player is likely unpleasant to grab and use. Finally, a very cold battery will perform poorly until it warms up and high current rates in or out of very cold batteries is also harmful.
If nobody else addresses the charging feature to offer options to maximize the life of lithium batteries, I will eventually do so, but as I'm very new to rockbox development I plan on doing some trivial patches first.
I'm interested in improving charging behaviour for the sansa e200 and just created a patch for charging from USB under rockbox, see
http://www.rockbox.org/tracker/task/8363
It uses a charge current of 300 mA (=0.4C for the 750 mAh sansa e200 battery) and a voltage of 4.0V (the voltage that the original firmware seems to use).
A charge voltage of 3.85 cannot be reached, the sansa e200 charge controller can only set a minimum voltage of 3.9V.