5,597,937 Members 38,694 Now Online
XDA Developers Android and Mobile Development Forum

Pogo pin dock

Tip us?
 
silverchris
Old
#1  
Junior Member - OP
Thanks Meter 20
Posts: 28
Join Date: May 2009
Location: Orangeville
Default Pogo pin dock

Has anybody found out what triggers desk mode in the pogo pin dock? I am looking into replicating the functionality without spending 50+ dollars on the original. Also, does anybody have any good photos of the guts of the pogo dock?

Thanks,
Chris
The Following User Says Thank You to silverchris For This Useful Post: [ Click to Expand ]
 
silverchris
Old
#2  
Junior Member - OP
Thanks Meter 20
Posts: 28
Join Date: May 2009
Location: Orangeville
so, after some digging about, it looks like the docking mode is set by the middle pin.

from digging about in the sources, I have found board-tuna-pogo.c which is the file that configures a GPIO pin to be used for the pogo functionality.

It looks like when first connected to a dock, the phone sends a wake up pulse of 100mS, then waits for the dock to respond with a similar pulse back to the phone.
The duration of the pulse is what sets the dock mode.
Here are the times from the sources(times are in mS):
Code:
#define POGO_ID_CARDOCK			100
#define POGO_ID_DESKDOCK		200
Going to try a couple of things to test this on my real phone
The Following 3 Users Say Thank You to silverchris For This Useful Post: [ Click to Expand ]
 
bykr_dude15
Old
#3  
Senior Member
Thanks Meter 12
Posts: 114
Join Date: Aug 2010
how would you get the dock to send a pulse back?
 
silverchris
Old
#4  
Junior Member - OP
Thanks Meter 20
Posts: 28
Join Date: May 2009
Location: Orangeville
Probably with a microcontroller, in my case
 
Matridom
Old
#5  
Senior Member
Thanks Meter 194
Posts: 807
Join Date: Dec 2010
Quote:
Originally Posted by silverchris View Post
Probably with a microcontroller, in my case
Please let us know if you find a way to make it work, I'm not too good with electronics, but i'm no stranger to a soldering iron. I would LOVE to be able to modify my existing car dock to power it with AC charge capabilities.
HTC Desire -> Galaxy S (SGH-T959D) -> Nexus S (GT-I9020A) -> Galaxy Nexus (Takju) -> Galaxy S4 "Google Edition" (i377m)

Other owned android devices:

Galaxy III
Galaxy Nexus
Nook Simple Touch with Glowlight
 
subvertz
Old
#6  
subvertz's Avatar
Senior Member
Thanks Meter 73
Posts: 274
Join Date: Feb 2012
Location: Bergen
Those of us that have built our own car pogo docks are already AC charging. Any of the ROM+kernels with fast charge override will do it. You also need to ensure your 12V source puts out over 500 milliamps. Placing an NFC tag in the dock can perform all the dock shifting functions. See here or here.
Denso TP-100, SE T61z, Moto RAZR V3, Motoi576, Nokia E52, HTC Desire HD, Galaxy Nexus, Nexus 7, Nexus 5
The Following User Says Thank You to subvertz For This Useful Post: [ Click to Expand ]
 
Siege9929
Old
#7  
Junior Member
Thanks Meter 3
Posts: 6
Join Date: Feb 2008
You could probably program an ATTiny flashed with Arduino code to transmit the appropriate response. An 8Pin DIP can be hidden pretty easily and runs on 5vdc. You could even include a car/desk mode toggle, for whatever reason.
The Following User Says Thank You to Siege9929 For This Useful Post: [ Click to Expand ]
 
Matridom
Old
#8  
Senior Member
Thanks Meter 194
Posts: 807
Join Date: Dec 2010
Quote:
Originally Posted by subvertz View Post
Those of us that have built our own car pogo docks are already AC charging. Any of the ROM+kernels with fast charge override will do it. You also need to ensure your 12V source puts out over 500 milliamps. Placing an NFC tag in the dock can perform all the dock shifting functions. See here or here.
the problem with this is that I would no longer be running stock and the ota updates would fail to apply until I flashed back the stock kernel


Sent from my Galaxy Nexus
HTC Desire -> Galaxy S (SGH-T959D) -> Nexus S (GT-I9020A) -> Galaxy Nexus (Takju) -> Galaxy S4 "Google Edition" (i377m)

Other owned android devices:

Galaxy III
Galaxy Nexus
Nook Simple Touch with Glowlight
 
silverchris
Old
#9  
Junior Member - OP
Thanks Meter 20
Posts: 28
Join Date: May 2009
Location: Orangeville
So it looks like the code I was looking at was out of date. The new code is similar but is slightly more complex, allowing for charge current and audio device connection to be transferred from the dock to the phone.

I so far have accidentally put the phone in car dock mode. But I have yet to repeat that.
The Following 2 Users Say Thank You to silverchris For This Useful Post: [ Click to Expand ]
 
soundwire
Old
(Last edited by soundwire; 2nd May 2012 at 02:15 AM.)
#10  
Member
Thanks Meter 25
Posts: 57
Join Date: Jan 2009
Quote:
Originally Posted by silverchris View Post
So it looks like the code I was looking at was out of date. The new code is similar but is slightly more complex, allowing for charge current and audio device connection to be transferred from the dock to the phone.

I so far have accidentally put the phone in car dock mode. But I have yet to repeat that.
I believe this is the current board-tuna-pogo.c file. From what I can tell the phone sends out a 100ms wake up pulse then waits for three responses.

Code:
/* The below constants are in milliseconds */
#define POGO_WAKE_PERIOD                100
#define POGO_ID_PERIOD_TIMEOUT          750
#define POGO_ID_DESKDOCK                50
#define POGO_ID_CARDOCK                 100
#define POGO_ID_CHARGER                 50
#define POGO_ID_USB                     100
#define POGO_ID_AUDIO                   50
#define POGO_ID_NO_AUDIO                100
#define POGO_ENTER_SPDIF_WAIT_PERIOD    100
#define POGO_ID_PERIOD_TOLERANCE        20
#define POGO_DET_DEBOUNCE               80
The first response pulse determines if its a DESKDOCK or CARDOCK , the second response pulse is for AC Fast charging or USB charging , and the third response pulse is for whether there is audio out or not.
Attached Files
File Type: c board-tuna-pogo.c - [Click for QR Code] (17.4 KB, 218 views)

The Following 2 Users Say Thank You to soundwire For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes