Rockbox

Tasklist

FS#11917 - iPod nano 2g charger detection

Attached to Project: Rockbox
Opened by Vencislav Atanasov (user890104) - Tuesday, 01 February 2011, 22:49 GMT
Task Type Bugs
Category Battery/Charging
Status Unconfirmed
Assigned To No-one
Operating System iPod Nano 2G
Severity Low
Priority Normal
Reported Version Release 3.7.1
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

When plugging in an AC USB charger, the ipod shows rockbox's disk mode instead of just changing the "external power" icon. Is it possible to make it detect if a charger is connected, or an usb host (for example, a computer)?

Doing the same test (with the same charger) on an ipod color/4g shows the expected result (not going to usb mode, just a charger icon appears)
This task depends upon

Comment by Gabriel Maia (gbl08ma) - Wednesday, 23 February 2011, 16:09 GMT
I have a dock, which acts as a AC charger, where I connect my iPod Nano 2G. It charges perfectly, without entering disk mode (except if the dock is connected to USB). Strangely, on theme's charger icon is not shown but on the "Rockbox Info" screen it says battery is charging. This thing of the charger icon not appearing is a minor bug I live with.

You can, anyways, block Rockbox from entering disk mode by pressing the Menu key at the same time you insert the charger cable.
Comment by Marcin Bukat (MarcinBukat) - Thursday, 09 June 2011, 19:44 GMT
The problem comes from 1) how we detect usb charger 2) how cheap chargers are made. Basicaly we detect charger by waiting for host to perform usb reset. If reset do not come in particular timeframe we assume that charger is connected. Dumb usb charger has (usually) data lines floating and doesn't perform any action other than provide +5V on power line. There are however some chargers where data lines are pulled down to ground. From device perspective connecting such charger looks like connecting to the host which perform bus reset. Now if device has pullups on data lines strong enough it will behave correctly with such charger in rockbox (ipod video for example), otherwise it will missbehave and enter disk mode (ipod mini for example).
Comment by sakamoto (sakamoto) - Monday, 05 March 2012, 21:36 GMT
@marcin: do you mean that this cannot be fixed? it's very annoying to have the pull the car charger out each time we want to boot rockbox. this bug (?)/feature deserves some attention as it will dramatically increase end-user usability. thanks
Comment by Marcin Bukat (MarcinBukat) - Tuesday, 06 March 2012, 07:00 GMT
Honestly I don't know current status precisely. Bug Torne on IRC. He has my mini1g + dumb charger which exhibits this (mis)behaviour. During last DevCon he had some bright idea how to solve the issue.

Loading...