Go Back   maemo.org - Talk > Devices > Nokia N900
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #1  
Old 2009-12-23, 17:18
jabawok jabawok is offline
 
Join Date: Nov 2008
Posts: 75
Thanks!: 25
Thanked 125 Times in 35 Posts
Default Solution: N900 Charging from dumb power sources *UPDATED*

I have been wondering for 2 days since I received my N900 why charging seems hit and miss from non-PC based USB ports, for example car cigarette lighter USB adapters and USB Battery packs. Here's the answer and solution.

The Micro USB spec says that power draw should be under 100mA until the phone and connected power source device (ie laptop, computer, etc) can negotiate a higher current. This negotiation happens over the data pins (the center ones in the big USB plug). If the power source is a "dumb" device which is not capable of negotiation (for example the dedicated wall socket charger), the spec says that the data pins (D+, D-) should be shorted - indicating to the phone that it can draw as much power as it needs (up to 1A?)

My problem is that several USB Power sources that I have (a few car cigarette lighter to USB adaptors, and an APC Portable battery), have the center pins open. The phone therefore tries to negotiate with the dumb power source and obviously fails, and hence proceeds to ignore it.

There are a couple of solutions. For cigarette lighter to USB adaptors, you can probably just pull them apart and solder the 2 center pins of the USB socket together on the PCB. Another solution would be to cut your USB to micro USB cable in the middle, short the D+ and D- (usually white and blue wires from memory - check with a multimeter first!) and neatly join/heatshrink the cut. This would render the cable useless for anything except charging from the dumb power source.

In my case I neither wanted to sacrifice a USB cable, nor did I want to short the pins on the USB socket of my portable battery, as I wanted to retain its "passthrough mode", which transparently passes data through from a PC. Shorting the D+ and D- pins would destroy the passthrough mode.

Instead I salvaged a male to female USB part from an old USB hard disk enclosure (the cable that used to provide extra power to the USB hard disk). I cut the power cable off it, and heatshrinked the wires so they won't short. I then carefully soldered the center two conductors together in the USB socket.

Voila - a "Force Dedicated Charging" USB adaptor, for dumb USB power sources.

Attached are photos. (incidentally, taken with the n900 camera in macro mode - stunning. I had to downscale them for the forum, but the originals are here if anyone is interested)

I wouldn't recommend you plug this adaptor into a PC - although it probably would do no harm as the ports are meant to be current limited, but shorting the data pins together will obviously terminate any communication on the USB bus.

UPDATE:
A lot of people have pointed out that the FM transmitter output power is reduced when plugging any sort of charger in (rendering the FM transmitter close to useless). Nokia have implemented this power reduction due to the fact that the charge cable will act as a transmit antenna, which brings the possibility that the transmit power will be well over legal limits.
If you would like to over-ride this power limitation at your own risk, with the possibility that you'll be transmitting at radio power levels over the legal limit, then grab the modified fmtxd binary from here:
http://jacekowski.org/Maemo/FMTXD
or here (zipped, post 8):
http://talk.maemo.org/showthread.php?t=60567

Make sure FM transmitter is off, then copy the new fmtxd to your n900 (root of the mass storage), then run the following in terminal:
Code:
cp /usr/sbin/fmtxd /home/user/MyDocs/fmtxd.original.backup
sudo gainroot
cp /home/user/MyDocs/fmtxd /usr/sbin/
exit
You should now be able to charge as well as simultaneously transmit (possibly illegally) on FM.

UPDATE 2:
Added photo of my current solution (last photo in below series). These weren't hard to find on ebay, (usb male to female adaptor) and the same solder bridge trick was applied. Much neater than original hack.
Attached Images
    

Last edited by jabawok; 2010-09-03 at 08:33. Reason: Update with neater solution picture.
Reply With Quote
  #2  
Old 2009-12-23, 17:28
Laughing Man Laughing Man is offline
 
Join Date: Dec 2007
Posts: 4,556
Thanks!: 558
Thanked 1,624 Times in 956 Posts
Send a message via Skype™ to Laughing Man
Default Re: Solution: N900 Charging from dumb power sources

Is it possible to buy a cable that has the pins shorted? How would they be idenitified?
__________________
Quote:
Originally Posted by ysss View Post
They're maemo and MeeGo...

"Meamo!" sounds like what Zorro would say to catherine zeta jones... after she slaps him for looking at her dirtily...
Reply With Quote
  #3  
Old 2009-12-23, 17:41
jabawok jabawok is offline
 
Join Date: Nov 2008
Posts: 75
Thanks!: 25
Thanked 125 Times in 35 Posts
Default Re: Solution: N900 Charging from dumb power sources

Definitely won't be possible to buy a cable with the pins shorted.

Let me be clear that this cable/adapter is USELESS for transferring data, or for charging from a PC USB port.

The sole purpose of this hack is to force the phone to think that it's plugged into a dedicated charger (which I call a dumb power source).

You only need to think about doing something like this if you have a USB socket which the phone will not charge from (and you want it to).

For everybody else, I recommend you buy dedicated wall chargers and dedicated car chargers - these will already have the D+ and D- pins internally shorted, and never need to transfer data.

Last edited by jabawok; 2009-12-23 at 17:44. Reason: clarity
Reply With Quote
The Following 2 Users Say Thank You to jabawok For This Useful Post:
  #4  
Old 2009-12-23, 17:43
fnordianslip's Avatar
fnordianslip fnordianslip is offline
 
Join Date: May 2007
Posts: 670
Thanks!: 607
Thanked 359 Times in 179 Posts
Default Re: Solution: N900 Charging from dumb power sources

Cool. I just opened up my USB charger lighter adapter, and bridged the two inner data terminals as you suggest, and now my N900 will charge from it. Unfortunately, the FM transmitter becomes very weak when connected.

This aspect of the N900 is very lame indeed - it works fine when not charging, but why on earth would I want to flatten the device's battery when I'm listening to it through the car stereo?
__________________
Class .. : Lame hacker & beardy boffin
Humour . : [#######---] Alignment: Apathetic anarchist
Patience : [####------] Weapon(s): My cat, my code.
Agro ... : |#---------] Relic(s) : N900, MacBookPro, NSLU2, N800, SheevaPlug, Eee-901, Core2-Quad, PS3
"In theory, theory and practice are the same. In practice, they're not."
--
Beware of extras-devel.
Reply With Quote
The Following 2 Users Say Thank You to fnordianslip For This Useful Post:
  #5  
Old 2009-12-23, 17:47
jabawok jabawok is offline
 
Join Date: Nov 2008
Posts: 75
Thanks!: 25
Thanked 125 Times in 35 Posts
Default Re: Solution: N900 Charging from dumb power sources

I haven't had a chance to experiment with the FM transmitter yet, but I would assume this is a hardware limitation, possibly to do with grounding or something that occurs which reduces the efficiency of the radio transmitter. It's early days: it'll be interesting to see what hacks people come up with to solve this problem.
UPDATE: told ya! see solution in opening post.

Last edited by jabawok; 2010-09-03 at 07:00. Reason: FM solution found
Reply With Quote
  #6  
Old 2009-12-23, 17:51
go1dfish go1dfish is offline
 
Join Date: Dec 2009
Location: San Diego, CA
Posts: 237
Thanks!: 65
Thanked 157 Times in 75 Posts
Default Re: Solution: N900 Charging from dumb power sources

When I tried using the FM transmitter while plugged into a laptop, the n900 flat out told me that the FM Transmitter couldn't be active while USB is connected.
Reply With Quote
The Following User Says Thank You to go1dfish For This Useful Post:
  #7  
Old 2009-12-23, 17:56
TA-t3 TA-t3 is offline
 
Join Date: Nov 2006
Posts: 3,841
Thanks!: 655
Thanked 1,079 Times in 626 Posts
Default Re: Solution: N900 Charging from dumb power sources

The FM transmitter's most obvious use case would be as an in-car music system, so it's indeed very strange that it won't work right when also connected to a car charger.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
Reply With Quote
  #8  
Old 2009-12-23, 17:57
fnordianslip's Avatar
fnordianslip fnordianslip is offline
 
Join Date: May 2007
Posts: 670
Thanks!: 607
Thanked 359 Times in 179 Posts
Default Re: Solution: N900 Charging from dumb power sources

Quote:
Originally Posted by go1dfish View Post
When I tried using the FM transmitter while plugged into a laptop, the n900 flat out told me that the FM Transmitter couldn't be active while USB is connected.
Sorry for going off topic here.

I've never seen that happen, and I've experimented a fair bit. I can always hear the FM TX on my handheld FM receiver when it is activated. I get about 3 metres range with no USB cable attached and a good fully-quieting signal (no hiss), depending on device and antenna orientation.

When I plug the wall charger, or my newly functional car charger in to the N900, the signal level drops drastically, such that when the N900 and FM radio are right next to each other, the radio still hisses and pops, although I can hear the transmitted signal.
__________________
Class .. : Lame hacker & beardy boffin
Humour . : [#######---] Alignment: Apathetic anarchist
Patience : [####------] Weapon(s): My cat, my code.
Agro ... : |#---------] Relic(s) : N900, MacBookPro, NSLU2, N800, SheevaPlug, Eee-901, Core2-Quad, PS3
"In theory, theory and practice are the same. In practice, they're not."
--
Beware of extras-devel.
Reply With Quote
  #9  
Old 2009-12-23, 18:08
Svengalis Svengalis is offline
 
Join Date: Nov 2009
Posts: 37
Thanks!: 1
Thanked 8 Times in 5 Posts
Default Re: Solution: N900 Charging from dumb power sources

Quote:
Originally Posted by Laughing Man View Post
Is it possible to buy a cable that has the pins shorted? How would they be idenitified?
Yes, these cables exist but they are usually built as 2-into-1, so you can pool the available amperage from two USB ports to power a single device.
Reply With Quote
  #10  
Old 2009-12-23, 18:14
That One Guy That One Guy is offline
 
Join Date: Dec 2009
Location: US
Posts: 377
Thanks!: 18
Thanked 97 Times in 63 Posts
Default Re: Solution: N900 Charging from dumb power sources

You just saved me 30 bucks!

I have one of those 12V Cigarette adapters that has 2 USB ports on it. I could never get to work with my N900.

So, I popped it open, heated up my handy dandy soldering iron, jumped the two center pins on each USB port on the circuit board, re-assembled it, and Vioala! The N900 charges!

Thanks again!
Reply With Quote
The Following 2 Users Say Thank You to That One Guy For This Useful Post:
Reply

Tags
charging, nokia n900


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:45.