Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Sansa USB / charger support
« previous next »
  • Print
Pages: [1]

Author Topic: Sansa USB / charger support  (Read 3944 times)

Offline scharkalvin

  • Member
  • *
  • Posts: 332
Sansa USB / charger support
« on: October 09, 2007, 11:29:17 AM »
I understand that Rockbox does support charging the Sansa E200 via usb, but perhaps
not at full rate compared to the OF.  I also read someplace that the OF won't top off the battery to 100%, while rockbox will.

What happens if I plug the usb cable into a power supply / charger?  I have a home brew ipod charger that is just a 5v regulated power supply.  As per Apples specification, each usb data line is pulled up by a 75k 1% resistor and pulled down by a 49.9k 1% resistor to set the usb current draw at 500ma.  If I plug the Sansa E200 into this supply the OF shows charging, while the rockbox WPS just shows the battery at 100%
(I know that you have to enable display of charging in the wps screen using the correct %sequences and my WPS currently doesn't do this).  But does the software support charging with such a power supply or is it just done in hw and reported by the sw?

Also if running rockbox and I plug the USB cable into my computer a USB icon pops up, but that's it.  I guess this is a place holder for when full USB file transfer support is finally added.
Logged

Offline dedalus

  • Member
  • *
  • Posts: 8
Re: Sansa USB / charger support
« Reply #1 on: October 09, 2007, 09:56:26 PM »
Quote from: scharkalvin on October 09, 2007, 11:29:17 AM
As per Apples specification, each usb data line is pulled up by a 75k 1% resistor and pulled down by a 49.9k 1% resistor to set the usb current draw at 500ma.

What do you mean by data line? You are kind of scaring me. You are aware I hope that you don't even need pins 2 and 3 for a charger? Also, this really needs to be implemented in an RC network to to properly regulate the voltage, and that's just assuming a DC source...

Considering that they sell these things for like 3 USD at Fry's... I can't imagine why you would want to build one.
Logged

Offline scharkalvin

  • Member
  • *
  • Posts: 332
Re: Sansa USB / charger support
« Reply #2 on: October 10, 2007, 07:49:01 AM »
There are 4 wires in the usb cable.  Power, ground, data+ and data-.
When connected to a power source you can leave the data lines floating, or tie them to ground.  In the ipod, Apple uses them to set the charging current.
They expect the data lines to be set at some percentage of the power supply voltage
which the ipod uses to set the maximum current that it can draw from the usb power lines.  Note that a usb device can ask the usb host how much current it may draw.  Since the charger isn't a true usb host, Apple added an A/D converter to the ipod to measure the static voltage on the data lines.  My USB charger device follows the Apple specification to set the max current allowed to 500ma.  (The company I work for builds some iPod compatible hw and we got the specs from Apple).

Why build your own charger?  In my case I had all the parts, I was too lazy to go out and buy one, and I like hacking hardware.
Logged

Offline dedalus

  • Member
  • *
  • Posts: 8
Re: Sansa USB / charger support
« Reply #3 on: October 10, 2007, 08:34:47 PM »
As I understand it, in absence of negotation most bus-powered devices just take as much as they can get, and most USB "chargers" just put out w/e up to even beyond 500mA. The process of providing and intital 100mA current and ramping it up on demand is a concession for a true host.

My wild guess about the sansa is that it would just pull whatever the battery can in absence of pins 2 and 3, and just be utterly confused about/ignore a voltage divider on the data pins if present. That sounds very Apple-specific to me.
Logged

Offline scharkalvin

  • Member
  • *
  • Posts: 332
Re: Sansa USB / charger support
« Reply #4 on: October 11, 2007, 08:10:04 AM »
Quote
My wild guess about the sansa is that it would just pull whatever the battery can in absence of pins 2 and 3, and just be utterly confused about/ignore a voltage divider on the data pins if present. That sounds very Apple-specific to me.

Yes it probably is.  I put the voltage dividers in because I use this charger with my ipods.  It works fine with the sansa too.  I mentioned it here in case anybody wants to build a charger for use with ipods.  Unless you happen to have a female usb connector (from an old pc motherboard cable) and the required ps parts (6v filament xfmr, bridge rectifier, lm7805 regulator, 1000uf 16v capacitor and a small project box) you can probably buy one cheaper.  But us home brew hw freaks wouldn't do it any other way.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Sansa USB / charger support
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.064 seconds with 15 queries.