FS#6619 - ipod/H10/Sansa USB charger detection

Attached to Project: Rockbox
Opened by Dave Chapman (linuxstb) - Sunday, 04 February 2007, 15:53 GMT
Task Type Patches
Category Battery/Charging
Status Closed
Assigned To No-one
Operating System PortalPlayer-based
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


The attached patch is based on Barry Wardell's USB debug code in FS #6494 and attempts to correctly distinguish between a USB connection to a PC and a USB connection to an AC adapter. Currently Rockbox thinks they are both a connection to a PC and reboots into disk mode.

It's been tested successfully on an iriver H10 and the following ipods: Color, Video, Nano and 2nd Gen Mini. Test results from other PP targets would be useful before it's committed.
This task depends upon

Closed by  Dave Chapman (linuxstb)
Sunday, 04 February 2007, 21:47 GMT
Reason for closing:  Accepted
Comment by Paul Louden (darkkone) - Sunday, 04 February 2007, 20:41 GMT
Seems to work for e200 as well.

At least:
Plug into PC, get USB logo.
Plug into charger, nothing happens.

So at least it's differentiating them.